Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Support for The Shelly Wifi switch.
- Save the below file inside ".homeassistant/custom_components/shelly" as switch.py (create the folders if not present), create an empty __init__.py file in that folder too, and restart HASS.
- usage example:
- ```
- switch:
- - platform: shelly
- switches:
- shelly_switch:
- path: /relay/0 (optional, defaults to /relay/0)
- host: 10.0.0.219
- username: admin
- password: admin
- ```
- Path is optional and defaults to '/relay/0'. If you have the 2-relay Shelly for the second one use /relay/1.
- Username & Password are optional. Use only if you have enabled authentication from the shelly web interface.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement