Closed Achronite closed 8 months ago
This functionality has been built-in to v.0.7.0, see https://github.com/Achronite/mqtt-energenie-ener314rt/issues/56
In hindsight I think that every 2 minutes to get data is too regular, and may be draining the batteries. This needs to be increased to at least every 5 minutes.
It seems that the MiHome Thermostat, when running without a MiHome gateway, does not send out any telemetry data; it only sends out a WAKEUP message.
From analysing traces, it seems that the MiHome gateway repeatedly sends out a THERMOSTAT_MODE command to obtain the extra data.
This change would be to add automated functionality to send a THERMOSTAT_MODE request when no outstanding cached commands are waiting to be sent.
Thoughts: If we capture any changes to the thermostat mode and store this in the memory of the monitoring thread; it can then be used. This will also prevent issues of overriding any requests from a MiHome gateway.
Attn: @drowl