Skip to content

Latest commit

 

History

History
30 lines (21 loc) · 617 Bytes

Hello.md

File metadata and controls

30 lines (21 loc) · 617 Bytes

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.yaml
hello_state:

Custom Component 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