Alright, you’re ready to make your first component. AWESOME. Don’t worry, we’ve tried hard to keep it as easy as possible Creating Components
user@server:~$ nano ~/.homeassistant/configuration.yaml
hello_state:
user@server:~$ mkdir ~/.homeassistant/custom_components/
user@server:~$ nano ~/.homeassistant/custom_components/hello_state.py
DOMAIN = 'hello_state'
def setup(hass, config):
hass.states.set('hello.world', 'Paulus')
return True