child devices not updating after trigger altered

Posted on
Wed Jul 22, 2020 4:11 pm
agame offline
Posts: 514
Joined: Jul 13, 2017
Location: Melbourne, Australia

child devices not updating after trigger altered

I recently added some more Shelly devices and decided to introduce some device specific triggers rather than the generic 'Shellies' I'd set my devices up with originally. (I was seeing some queuing errors in the log).

This has seemed to work fine except for one Shelly1 device that has 3 temp probes attached, and is in detached switch mode - whilst the child devices report status being online, I realised the status wasn't actually updating (I could see the correct states on MQTT Explorer).

Creating new child devices for the probes and detached switch has fixed the problem, so this is FYI. ( I'm guessing the message-type for the child devices already created isn't updating when changed on the parent device.)

Posted on
Wed Jul 22, 2020 5:36 pm
agame offline
Posts: 514
Joined: Jul 13, 2017
Location: Melbourne, Australia

Re: child devices not updating after trigger altered

minor update: a better workaround turns out to be changing the device definition on the child device to another (random) device type, and then back.

Posted on
Sat Jul 25, 2020 8:01 am
aaronlionsheep offline
Posts: 260
Joined: Feb 24, 2019
Location: Virginia, USA

Re: child devices not updating after trigger altered

Good catch, and nice workaround.

I believe this is related to a "larger" bug that I have a fix for. In the meantime, another workaround might be to toggle the "Device Comm" checkbox for the child devices. You should see the device stop and start respectively in the Indigo log and this should cause the child devices to get the updated data from the "parent" device.

Posted on
Sun Jul 26, 2020 10:56 pm
agame offline
Posts: 514
Joined: Jul 13, 2017
Location: Melbourne, Australia

Re: child devices not updating after trigger altered

aaronlionsheep wrote:
..., another workaround might be to toggle the "Device Comm" checkbox for the child devices. ..


even easier! I will try that net time.
I must say with logging switched on for debugging, slightly disconcerting how chatty those shelly devices are!

Posted on
Sun Jul 26, 2020 11:15 pm
aaronlionsheep offline
Posts: 260
Joined: Feb 24, 2019
Location: Virginia, USA

Re: child devices not updating after trigger altered

agame wrote:
aaronlionsheep wrote:
..., another workaround might be to toggle the "Device Comm" checkbox for the child devices. ..


even easier! I will try that net time.
I must say with logging switched on for debugging, slightly disconcerting how chatty those shelly devices are!


There isn't anything to worry about there as that is what MQTT is designed for. The intro paragraph on MQTT.org says it all. An we are on a high speed network compared to dial up!

If you are truly worried about the amount of traffic, you can configure the individual shelly devices (through the Shelly web interface) to report at a lower frequency. The default is a status update, regardless of data changes, every 30 seconds.

There are 17 Shellies (not all are always online and reporting as some are battery operated) and 27 indigo devices in total in our household. No issues or any signs of increased load. The MQTT broker (ActiveMQ running on the Mini hosting Indigo) sips CPU cycles and uses around 0-2% CPU. There is a terminal window monitoring all indigo MQTT traffic and that thing flies!

Code: Select all
   ShellyMQTT                      Shelly devices connected to ActiveMQ (27)
   ShellyMQTT                         +-------------------------------------------+-----------------+-------------------------------------------+-------------------------------------------+------------------+-------------------------------------+
   ShellyMQTT                         | Name                                      |   IP Address    | MQTT Address                              |                Host Device                | Update Available |          Current Firmware           |   
   ShellyMQTT                         +-------------------------------------------+-----------------+-------------------------------------------+-------------------------------------------+------------------+-------------------------------------+
   ShellyMQTT                       1 | Aaron's Bedroom Lamp                      |  192.168.2.17   | shellies/ShellyBulbDuo-D0CF67             |                    N/A                    |       Yes        |   20200320-123338/v1.6.2@514044b4   | 1
   ShellyMQTT                       2 | Air Compressor Purge                      |  192.168.2.20   | shellies/shelly1-B8F69F                   |                    N/A                    |       Yes        |   20200320-123430/v1.6.2@514044b4   | 2
   ShellyMQTT                       3 | Back Deck Door                            |  192.168.2.34   |                                           |                 Shelly #4                 |                  |                                     | 3
   ShellyMQTT                       4 | Basement French Door                      |  192.168.2.33   |                                           |                 Shelly #3                 |                  |                                     | 4
   ShellyMQTT                       5 | Basement Temperature/Humidity             |  192.168.2.28   |                                           |           Driveway Alarm Shelly           |                  |                                     | 5
   ShellyMQTT                       6 | Car Lift Drop Light                       |  192.168.2.24   | shellies/shellyrgbw2-6F3A8C               |                    N/A                    |       Yes        |   20200309-104453/v1.6.0@43056d58   | 6
   ShellyMQTT                       7 | Car Lift Ramp Lights                      |  192.168.2.24   | shellies/shellyrgbw2-6F3A8C               |                    N/A                    |       Yes        |   20200309-104453/v1.6.0@43056d58   | 7
   ShellyMQTT                       8 | Door and Window 2                         |  192.168.2.23   | shellies/shellydw-98F4ABF3B8C5            |                    N/A                    |        No        |   20200625-102424/v1.7.3@2aa0993a   | 8
   ShellyMQTT                       9 | Driveway Alarm Shelly                     |  192.168.2.28   | shellies/shelly1-500291ED28F6             |                    N/A                    |       Yes        |   20200320-123430/v1.6.2@514044b4   | 9
   ShellyMQTT                      10 | Driveway Vehicle Detection                |  192.168.2.28   |                                           |           Driveway Alarm Shelly           |                  |                                     | 10
   ShellyMQTT                      11 | Garage Door Control Shelly                |  192.168.2.26   | shellies/shelly1-500291ED28F7             |                    N/A                    |       Yes        |   20200320-123430/v1.6.2@514044b4   | 11
   ShellyMQTT                      12 | Garage Door Sensor Contact Shelly         |  192.168.2.26   |                                           |         Garage Door Control Shelly        |                  |                                     | 12
   ShellyMQTT                      13 | Garage Temperature and Humidity           |  192.168.2.26   |                                           |         Garage Door Control Shelly        |                  |                                     | 13
   ShellyMQTT                      14 | Landscape Lighting                        |  192.168.2.19   | shellies/shelly1pm-B98153                 |                    N/A                    |       Yes        |   20200312-124223/v1.6.1@112262fd   | 14
   ShellyMQTT                      15 | Landscape Lighting Outdoor Temperature    |  192.168.2.19   |                                           |             Landscape Lighting            |                  |                                     | 15
   ShellyMQTT                      16 | Mail Box                                  |  192.168.2.32   |                                           |                 Shelly #2                 |                  |                                     | 16
   ShellyMQTT                      17 | Refrigerator Probe                        |  192.168.2.27   | shellies/shellyht-E0100C                  |                    N/A                    |        No        |   20200625-102341/v1.7.3@2aa0993a   | 17
   ShellyMQTT                      18 | Shed Door                                 |  192.168.2.21   | shellies/shellydw-98F4ABF3B492            |                    N/A                    |        No        |   20200625-102424/v1.7.3@2aa0993a   | 18
   ShellyMQTT                      19 | Shelly #1                                 |  192.168.2.29   | shellies/shelly1-500291EDB800             |                    N/A                    |       Yes        |   20200320-123430/v1.6.2@514044b4   | 19
   ShellyMQTT                      20 | Shelly #2                                 |  192.168.2.32   | shellies/shelly1-500291ED2A66             |                    N/A                    |        No        |   20200601-122823/v1.7.0@d7961837   | 20
   ShellyMQTT                      21 | Shelly #3                                 |  192.168.2.33   | shellies/shelly1-500291ED2EB6             |                    N/A                    |        No        |   20200601-122823/v1.7.0@d7961837   | 21
   ShellyMQTT                      22 | Shelly #4                                 |  192.168.2.34   | shellies/shelly1-500291EDB8E4             |                    N/A                    |        No        |   20200601-122823/v1.7.0@d7961837   | 22
   ShellyMQTT                      23 | Shelly 1PM Wall Plug                      |  192.168.2.18   | shellies/shelly1pm-B9825D                 |                    N/A                    |        No        |   20200312-124223/v1.6.1@112262fd   | 23
   ShellyMQTT                      24 | Water Softner Tank Status                 |  192.168.2.20   |                                           |            Air Compressor Purge           |                  |                                     | 24
   ShellyMQTT                      25 | Well Pump                                 |  192.168.2.29   |                                           |                 Shelly #1                 |                  |                                     | 25
   ShellyMQTT                      26 | White Button                              |  192.168.2.22   | shellies/shelly1pm-B914C3                 |                    N/A                    |       Yes        |   20200312-124223/v1.6.1@112262fd   | 26
   ShellyMQTT                      27 | Workshop Lights                           |  192.168.2.10   | shellies/shellyswitch25-76D77A            |                    N/A                    |       Yes        |   20200309-104051/v1.6.0@43056d58   | 27
   ShellyMQTT                         +-------------------------------------------+-----------------+-------------------------------------------+-------------------------------------------+------------------+-------------------------------------+


Page 1 of 1

Who is online

Users browsing this forum: No registered users and 1 guest