AaronLionsheep / ShellyMQTT

IndigoDomo Plugin that interfaces with Shelly devices over MQTT.
MIT License
0 stars 0 forks source link

TRV schedule names are being cleared #140

Closed AaronLionsheep closed 1 year ago

AaronLionsheep commented 1 year ago

It appears there are a few topics that publish information about a thermostat. One appears to possibly not include information about schedules, so the plugin defaults to an empty list.

https://github.com/AaronLionsheep/ShellyMQTT/blob/d0c6659acc40f33cd2e629f88bdb7a9ec0d28123/ShellyMQTT.indigoPlugin/Contents/Server%20Plugin/Devices/Shelly_TRV.py#L120

I think the default should be changed to None, and when a None value is read (the TRV should ways produce a list), the internal list should be left unchanged. If the TRV has its schedules cleared, then it would report an empty list which would then be replace in indigo.