I’ve just purchased my first Shelly 1 (I’ve been using Sonoff so far). I have added the ShellyforHASS integration via HACS, and managed to get the device to show up. It correctly changes its state in HA when I use the Shelly app, but when I toggle the switch on HA, the relay doesn’t respond. The switch goes back to “off” after a few seconds.
What am I doing wrong?
The Shelly is on the latest firmware (20211109-124958/v1.11.7-g682a0db).
I do not know “shelly for HASS” but why don’t you use the shelly integration of Home Assistant…
I have a lot of shelly’s (1PM and EM) and it is working just fine.
To help you on “shelly for HASS”, I recommend you share your configuration related to the shelly’s…
What version of Home Assistant are you running? Like @browetd mentioned, the Shelly 1 can be auto-discovered by Home Assistant without a lot (any?) configuration.
I don’t use the official integration because, AFAIK, it uses polling to get the device state, which adds a big delay (up to 30 secs) before the state is updated in HA.
as mentionned by @nickrout , the update is done via push (and not pull) but you need to have the latest firmware (at least 1.1.0) + you have to change some parameters on the shelly to put it in Unicast mode (it is very easy (add ip address + port of HA, see the doc), no need to flash the shelly)… Having done that, you do not need the cloud (except if you want to change the shelly state with the app) and the equipment is working flawlessly… I have installed about 20 of them without any issues on two different HA instances (HassOS).