Ok updated Shelly Switch Relay aka Shelly-as-a-Switch and fixed the emeter bug for the EM3. Version 3.0.8
Hello,
I have purchased some Shelly1s and they are working as expected using the HE build in driver. Only one of them is giving me headache.
When using the physically attached switch I can hear the relais opening/closing, same for the virtual switches on the HE Shelly Devices page. But the "Current State" of the switch remains "off" and would not change.
I have tried several different Shelly firmewares; deleted and readded the Shelly to HE and did a factory reset of the device. Still the "Current state" wouldn't change.
Did someone come accross something similar? Or am I just unlucky and this one Shelly unit is somehow broken? Any ideas are very much welcome!
Kind regards
Can you give us a printscreen of the I/O URL actions in the shelly
- OUTPUT SWITCHED ON URL
- OUTPUT SWITCHED OFF URL
Good spot! Both "OUTPUT SWITCHED ON URL" and "OUTPUT SWITCHED OFF URL" were unchecked and empty. I copied across the URLs from another Shelly1 and now it's working fine.
Thanks alot!
Could you copy the URL's please? I still have to refresh to see the exact state.
What driver do you use, the system or user driver?
System driver.
You can fill them all manual, but normally the URL's should saved automatic when you save the device in Hubitat, If they are not saved automatically, I presume there is something wrong. Be sure you use the latest hub firmware
Those are all the URL's you should see in the shelly after the config:
BUTTON SWITCHED ON URL: n/a
BUTTON SWITCHED OFF URL: http://x.x.x.x:39501/button/0/released/
BUTTON LONG PRESSED URL: http://x.x.x.x:39501/button/0/held/
BUTTON SHORT PRESSED URL: http://x.x.x.x:39501/button/0/pushed/
OUTPUT SWITCHED ON URL: http://x.x.x.x:39501/switch/0/on/
OUTPUT SWITCHED OFF URL: http://x.x.x.x:39501/switch/0/off/
Thanks for your help, Bruno and joldrack! I've installed version 2.25.125 from 2.25.119. But URL's are not saved automatically, even after restarting HE. Do I have to do some kind of an upgrade in HE?
So I am installing OUTPUT SWITCHED ON URL: http://x.x.x.x:39501/switch/0/on/
OUTPUT SWITCHED OFF URL: http://x.x.x.x:39501/switch/0/off/ in each Shelly switch and that works fine. I appriciate if you could give me a hint how to do that automatically!
Carlo
@mike.maxwell should know. My guess: try Configure on the Shelly virtual device after you have updated the Hubitat firmware.
Url's are saved when you save the parent device. Maybe you need to save it more than once. Be sure you are using the correct ip address, username and password. Of course you need to see first the child device.
Maybe you can delete it and create it again
I passed them all on manually and that works fine. Thanks for help!
I have few of Sehlly devices connected to HE and all of them work perfectly except of RGBW dimmers. Im not able to get device state update to HE when RGBW device is operated by switch or from Shelly app. I tested system driver, user drivers etc. but no sucess. All URLs in RGBW device filled the same way as for other devices, but no response in HE. Any idea how to solve this?
Don't have a RGBW but I think there is no support in a system driver.
You can use the user driver, but the intention of this driver going to be one way, from Hubitat to device, no update of the status in the other direction.
Maybe if you work with Maker API? Check this post to get some inspiration.
If you use Shelly RGBW in for example rule machine you need to add turn on after set color.....
Maker Api works perfectly. Thanx for idea.
Its not this case, I needed synchro from device to HE which was not happening.
Just one question towards developers of this integration. Comparing to Homey and Home Assitant, integration of Shelly products seems to be different and not so responsive. What is causing this difference? E.g. my Shelly EM3 needs to be refreshed manualy to provide power readings. Or change of IP needs to be done manualy (its automated in Homey). This is not critics, but curiosity whether there is some limitation for HE.
One more remark. None of them (Homey, HA) is using response URL as soon as I noticed.
Did you manage to get updated readings for 3em?
I just have values from beginning
No, you have to refresh reading to get the present values. I used RM flr regular refresh, but it was consuming quite a resources. Now I have virtual button that triggers the refresh of values once pushed.
However in HA those values are refreahed automatically.