DomiStyle / esphome-panasonic-ac

Open source alternative for Panasonic air condition wifi adapters that works locally without the Comfort Cloud
MIT License
226 stars 58 forks source link

Reduce status update rate to change only #110

Closed autoSteve closed 6 months ago

autoSteve commented 8 months ago

Status updates are acquired every five seconds by default. When MQTT is enabled, this results in updates of the same values (whether changed or not) every five seconds.

If anything is subscribed to the Panasonic topics then it will receive mostly identical values every five seconds, wasting cycles when there are unchanged values.

This proposed merge will only send udpates (for all status values) if any one value in the status update changes, resulting in far less MQTT activity, and less processing for subscribers.

autoSteve commented 8 months ago

Re. #62. I finally got around to it...