The Shelly-1 has a reed switch. It's represented by the status property sw-input, I believe. When I look at the MQTT message, the status of the "input" is shown with the closing and opening of a door. However, the status doesn't change within the plugin.
Any suggestions?
JP
Shelly-1 Reed Switch
-
- Posts: 260
- Joined: Sun Feb 24, 2019 7:09 pm
- Location: Virginia, USA
Re: Shelly-1 Reed Switch
The device state should be changing to follow what is shown by the MQTT messages.
Are the other states for the device being updated? I'd just like to verify that MQTT messages are being correctly processed by checking that the IP address and MAC address are set.
Are the other states for the device being updated? I'd just like to verify that MQTT messages are being correctly processed by checking that the IP address and MAC address are set.
Re: Shelly-1 Reed Switch
i have exactly this setup (a gate rather than garage door but essentially same) and no issues with the plugin.
You definitely have set the switch in detached mode? I guess you must if you're getting the MQTT message generated.
You definitely have set the switch in detached mode? I guess you must if you're getting the MQTT message generated.
Re: Shelly-1 Reed Switch
Yes, every other message is being updated, and I can use the relay to trigger an action. It's just the reed switch (sw_input) not updating.aaronlionsheep wrote:The device state should be changing to follow what is shown by the MQTT messages.
Are the other states for the device being updated? I'd just like to verify that MQTT messages are being correctly processed by checking that the IP address and MAC address are set.
JP
Re: Shelly-1 Reed Switch
I use the Shelly-1 with homebridge and the reed switch output works. So, I think it's configured properly.
JP
JP
-
- Posts: 260
- Joined: Sun Feb 24, 2019 7:09 pm
- Location: Virginia, USA
Re: Shelly-1 Reed Switch
Do you mind confirming the value coming from the Shelly 1 over MQTT? Specifically, is the value from the topicroquej wrote:I use the Shelly-1 with homebridge and the reed switch output works. So, I think it's configured properly.
JP
Code: Select all
shellies/<your_device>/input/0
Re: Shelly-1 Reed Switch
Via MQTT Explorer, shellies/shelly1-98F4ABF2A1ED/inputaaronlionsheep wrote:Do you mind confirming the value coming from the Shelly 1 over MQTT? Specifically, is the value from the topicroquej wrote:I use the Shelly-1 with homebridge and the reed switch output works. So, I think it's configured properly.
JP
a "0" or a "1" when the switch input changes? I'm wondering if a recent Shelly firmware update changed the value they are sending.Code: Select all
shellies/<your_device>/input/0
The relay works from Indigo and all states changes are seen in MQTT Explorer. However, if you look at the relay states:
Side Gate relay (Shelly-1) states firmware-version
Side Gate relay (Shelly-1) states has-firmware-update False
Side Gate relay (Shelly-1) states ip-address
Side Gate relay (Shelly-1) states longpush False
Side Gate relay (Shelly-1) states mac-address
Side Gate relay (Shelly-1) states onOffState False
Side Gate relay (Shelly-1) states online True
Side Gate relay (Shelly-1) states sw-input False
None seem to change when you trigger the relay, which again, works to trigger the Side Gate.
Very confused right now.
This is the MQTT Trigger definition:
- Attachments
-
- Screen Shot 2022-09-03 at 12.07.29 PM.png (111.17 KiB) Viewed 1976 times
-
- Posts: 260
- Joined: Sun Feb 24, 2019 7:09 pm
- Location: Virginia, USA
Re: Shelly-1 Reed Switch
Ah, try deleting that “End” entry. I believe that is only matching on a topic 1 level deep rather than the full topic.roquej wrote:Via MQTT Explorer, shellies/shelly1-98F4ABF2A1ED/inputaaronlionsheep wrote:Do you mind confirming the value coming from the Shelly 1 over MQTT? Specifically, is the value from the topicroquej wrote:I use the Shelly-1 with homebridge and the reed switch output works. So, I think it's configured properly.
JP
a "0" or a "1" when the switch input changes? I'm wondering if a recent Shelly firmware update changed the value they are sending.Code: Select all
shellies/<your_device>/input/0
The relay works from Indigo and all states changes are seen in MQTT Explorer. However, if you look at the relay states:
Side Gate relay (Shelly-1) states firmware-version
Side Gate relay (Shelly-1) states has-firmware-update False
Side Gate relay (Shelly-1) states ip-address
Side Gate relay (Shelly-1) states longpush False
Side Gate relay (Shelly-1) states mac-address
Side Gate relay (Shelly-1) states onOffState False
Side Gate relay (Shelly-1) states online True
Side Gate relay (Shelly-1) states sw-input False
None seem to change when you trigger the relay, which again, works to trigger the Side Gate.
Very confused right now.
This is the MQTT Trigger definition:
Re: Shelly-1 Reed Switch
That did it! Such a simple fix.
Thank you!
JP
Thank you!
JP