Shelly Detached Switch

Posted on
Sun Apr 19, 2020 4:21 pm
Colly offline
Posts: 471
Joined: Jan 16, 2016
Location: Ireland

Shelly Detached Switch

Hi Aaron (and Joe - didn't want to post in 2 places but I'm sure you'll have the answer too),
Looking for some guidance on how I can setup up a device to capture the status of a detached switch. The Shelly 1 (in this case) SW can be used in detached mode and I can see it in MQTT Explorer. Whats the most efficient way to create a device to mirror the detached switch state?
Colly

Posted on
Sun Apr 19, 2020 6:09 pm
aaronlionsheep offline
Posts: 192
Joined: Feb 24, 2019
Location: Virginia, USA

Re: Shelly Detached Switch

I'm not sure I fully understand what you are trying to do, but you can put the Shelly 1 switch in "Detached" mode. This would disable the switch from front rolling the relay in the device.

Also, the Shelly 1 device in Indigo (with my plugin) has a state of "sw-input" which reports a true or false value to indicate the state of the switch.

Are you looking to create a separate device that simply indicates if this switch is opened or closed (reflecting the state value of sw-input)?

Posted on
Sun Apr 19, 2020 6:20 pm
FlyingDiver offline
User avatar
Posts: 6444
Joined: Jun 07, 2014
Location: Southwest Florida, USA

Re: Shelly Detached Switch

Colly wrote:
Hi Aaron (and Joe - didn't want to post in 2 places but I'm sure you'll have the answer too),
Looking for some guidance on how I can setup up a device to capture the status of a detached switch. The Shelly 1 (in this case) SW can be used in detached mode and I can see it in MQTT Explorer. Whats the most efficient way to create a device to mirror the detached switch state?
Colly


Show the Explorer report on the message it's sending, and describe exactly what behavior you're looking to model.

joe (aka FlyingDiver)
my plugins: http://forums.indigodomo.com/viewforum.php?f=177

Posted on
Tue Apr 21, 2020 2:57 pm
Colly offline
Posts: 471
Joined: Jan 16, 2016
Location: Ireland

Re: Shelly Detached Switch

aaronlionsheep wrote:
Also, the Shelly 1 device in Indigo (with my plugin) has a state of "sw-input" which reports a true or false value to indicate the state of the switch.

I somehow missed this the other night... I must've stupidly looked at the Broker device instead of your plugin device.
aaronlionsheep wrote:
Are you looking to create a separate device that simply indicates if this switch is opened or closed (reflecting the state value of sw-input)?

Yes that's what I'm doing and can easily sort it now.
FlyingDiver wrote:
Show the Explorer report on the message it's sending, and describe exactly what behavior you're looking to model.

As above, sorted now and caused by my own confusion.
Thanks to both for reaching out.

Posted on
Tue Apr 21, 2020 3:12 pm
aaronlionsheep offline
Posts: 192
Joined: Feb 24, 2019
Location: Virginia, USA

Re: Shelly Detached Switch

Colly wrote:
aaronlionsheep wrote:
Are you looking to create a separate device that simply indicates if this switch is opened or closed (reflecting the state value of sw-input)?

Yes that's what I'm doing and can easily sort it now.


I think Masquerade can be used to create a device based on the state value. I hadn't thought about this case where the switch is in a detached mode. It appears that a lot of the Shelly devices support a detached switch (where the internal relay does not follow the switch).

I could make another device in the plugin, maybe called "Detached Switch", that is simply an on/off sensor. You would configure the main device in Indigo normally, and then you could create a "Detached Switch" device that you simply configure as linked to a master device. The config ui simply gives you a list of the other devices you have already created and you select the "master" device. This is the same methodology used for the temperature and humidity add-on devices.

Posted on
Tue Apr 21, 2020 3:24 pm
Colly offline
Posts: 471
Joined: Jan 16, 2016
Location: Ireland

Re: Shelly Detached Switch

I'm happy enough to work around and wouldn't expect you to go making changes. BTW the plugin is working great and more devices on the way.. One thing to note when using the switch in detached mode is it've very sensitive, as in a few volts will activate it, nothing near the line voltage, which in my case is 230 V. I also got an explanation from Shelly on why I was seeing voltage on the SW contact even though nothing was connected to it. See link for more info - https://www.facebook.com/notes/shelly-s ... 509330303/

Posted on
Tue Apr 21, 2020 3:38 pm
aaronlionsheep offline
Posts: 192
Joined: Feb 24, 2019
Location: Virginia, USA

Re: Shelly Detached Switch

Colly wrote:
I'm happy enough to work around and wouldn't expect you to go making changes. BTW the plugin is working great and more devices on the way.. One thing to note when using the switch in detached mode is it've very sensitive, as in a few volts will activate it, nothing near the line voltage, which in my case is 230 V. I also got an explanation from Shelly on why I was seeing voltage on the SW contact even though nothing was connected to it. See link for more info - https://www.facebook.com/notes/shelly-s ... 509330303/


Thanks for the link to that information - this has been a a talking point in the household...

I will make note of this new type of device. I won't rush to get it added, but I will add it to my list of ideas. I've seen some "teaser" links on a Shelly EU forum that looks like they are adding a few more lightbulbs (white and RGB), a Shelly I3 (3-input device?), a battery-powered button, and a Dimmer (not sure if this is new or not). If the API is consistent, then these devices should be easily added to the plugin 8)

Posted on
Tue Apr 21, 2020 3:41 pm
Colly offline
Posts: 471
Joined: Jan 16, 2016
Location: Ireland

Re: Shelly Detached Switch

aaronlionsheep wrote:
If the API is consistent, then these devices should be easily added to the plugin 8)
Sounds good.

Posted on
Wed May 20, 2020 5:06 pm
aaronlionsheep offline
Posts: 192
Joined: Feb 24, 2019
Location: Virginia, USA

Re: Shelly Detached Switch

aaronlionsheep wrote:
Colly wrote:
aaronlionsheep wrote:
Are you looking to create a separate device that simply indicates if this switch is opened or closed (reflecting the state value of sw-input)?

Yes that's what I'm doing and can easily sort it now.


I think Masquerade can be used to create a device based on the state value. I hadn't thought about this case where the switch is in a detached mode. It appears that a lot of the Shelly devices support a detached switch (where the internal relay does not follow the switch).

I could make another device in the plugin, maybe called "Detached Switch", that is simply an on/off sensor. You would configure the main device in Indigo normally, and then you could create a "Detached Switch" device that you simply configure as linked to a master device. The config ui simply gives you a list of the other devices you have already created and you select the "master" device. This is the same methodology used for the temperature and humidity add-on devices.


In the latest release, 0.1.0, there is now a "Shelly Detached Switch" device which adds this exact functionality within the plugin. This can be linked with a Shelly 1, Shelly 1PM, Shelly 2.5, Shelly 4Pro, or Shelly Dimmer.

Page 1 of 1

Who is online

Users browsing this forum: No registered users and 1 guest