Advertisement
Guest User

Untitled

a guest
Mar 18th, 2019
106
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.66 KB | None | 0 0
  1. # Support for The Shelly Wifi switch.
  2.  
  3. 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.
  4.  
  5. usage example:
  6.  
  7. ```
  8. switch:
  9. - platform: shelly
  10. switches:
  11. shelly_switch:
  12. path: /relay/0 (optional, defaults to /relay/0)
  13. host: 10.0.0.219
  14. username: admin
  15. password: admin
  16. ```
  17.  
  18. Path is optional and defaults to '/relay/0'. If you have the 2-relay Shelly for the second one use /relay/1.
  19. 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