Achronite / energenie-ener314rt

Node module for RaspberryPi energenie ener314-rt board, used by node-red-contrib-energenie-ener314rt
MIT License
4 stars 2 forks source link

Periodic Thermostat commands #34

Closed Achronite closed 8 months ago

Achronite commented 10 months ago

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

Achronite commented 10 months ago

This functionality has been built-in to v.0.7.0, see https://github.com/Achronite/mqtt-energenie-ener314rt/issues/56

Achronite commented 10 months ago

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.