Thanks for the super swift response and apologies I should have been clearer.
Yes, it’s only possible to have a single external switch on the Shelly 1.
I have the reed switch set up as a contact sensor on the garage door. When the door is in the closed position the reed switch is activated/on, and when it opens contact is broken and it’s off. The main output of the Shelly acts like a momentary switch to raise and lower the garage door. I have the Shelly in ‘detached’ mode so the output of the external switch does not automatically trigger the relay.
As there are multiple ways for me to open and close the door (manual button, RF controller, Shelly) the sensor and the relay need to operate independently.
The Shelly is definitely getting the signal correctly as I can see the coloured indicator changing in the Shelly App.
I assume the Shelly will need to make calls to SmartThings hub based on the ‘External Switch’ or ‘Sensor’ outputs within the I/O settings?
Thanks that was very helpful. It made me realize that I was mistakenly looking at the ‘inputs’ status element instead of the ‘ext_switch’ element. Although the documentation doesn’t explicitly say it, I will assume the value of ext_switch.0.input is 0 if off and 1 if on.
I’m open to doing this, just need to find the time to focus on it! It’s a whole different interface so it’s a complete rewrite of that part of the driver code. You would need the CLI to be able to run logs for me. Once I find some time to focus on it, I’ll direct message you.
Hello - Sorry you are having problems. First, have you confirmed that the device itself is configured properly (through the Shelly mobile app) for each of the channels? e.g.:
Operation mode = Relay
Power On Default = SWITCH
Button Type = Toggle Switch
Also, go into “I/O Actions” under Settings in the Shelly mobile app and confirm that for both the Button on and Button off URLs that they are Enabled and that you see a URL there for each containing your hub IP address. This is how the device notifies the Edge driver of button state changes. Be sure not to accidently change the URLs here.
If all of that looks OK, then the next step will require that you have the SmartThings CLI so we can see what the logs are telling us.
This update will be installed automatically to your hub.
Summary of changes:
Auto refresh: changing the frequency will now take effect immediately (previous version required you to turn auto refresh off and back on again)
R1 devices: new device Settings option to show open/close on dashboard instead of on/off (useful when device is controlling a door); input1 field added and available for automation conditions. Note that a new device will need to be created to use these new features.
R25 devices: new device Settings option to create secondary SmartThings device for channel 2 relay (@Damianeq ). Note that the main device will continue to show both channel 1 and channel 2 info; the secondary device will show only channel 2-specific info (switch, power, energy consumption). Note also that the refresh buttons on both devices refresh both channels/devices. If you no longer want to use the secondary device, first turn the option OFF in device Settings and then you can delete the secondary device.
Great work with the driver, very much appreciated
I am trying to use it with my Shelly i3 as momentary switches, but it seems that Smartthings is only receiving the messages from the i3 when i hit the refresh button in the Smartthings app.