AaronLionsheep / ShellyMQTT

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

Greedy message types #127

Closed AaronLionsheep closed 2 years ago

AaronLionsheep commented 2 years ago

https://github.com/AaronLionsheep/ShellyMQTT/blob/5530112976963eb8cb394c8eefc070edb34eb9eb/ShellyMQTT.indigoPlugin/Contents/Server%20Plugin/plugin.py#L286-L291

All triggers are examined to find any defined message types that triggers define. This is fine, except discovered message types are added to the message_types variable. This is used to determine if the plugin will fetch messages from that type. This was causing the plugin to steal messages that had a message type not used by any devices for the plugin.

https://github.com/AaronLionsheep/ShellyMQTT/blob/5530112976963eb8cb394c8eefc070edb34eb9eb/ShellyMQTT.indigoPlugin/Contents/Server%20Plugin/plugin.py#L690-L704