Hello
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.yamlhello_state:Custom Component Hello State
user@server:~$ mkdir ~/.homeassistant/custom_components/user@server:~$ nano ~/.homeassistant/custom_components/hello_state.pyDOMAIN = 'hello_state'
def setup(hass, config):
hass.states.set('hello.world', 'Paulus')
return TrueLast updated