Achronite / mqtt-energenie-ener314rt

MQTT interface for Energenie ENER314-RT add-on board for the Raspberry Pi, designed for use by Home Assistant.
MIT License
13 stars 5 forks source link

Add support for Thermostatic Radiator Valves #2

Closed Achronite closed 1 year ago

Achronite commented 1 year ago

Allow commands to be passed to eTRV, utilising the command caching as applicable.

Achronite commented 1 year ago

Now added to code, also includes MQTT discovery.

README still requires updating.

@dansgalaxy, @genestealer

genestealer commented 1 year ago

Have you looked into setting up a regular repeating query to ask the eTRV's for their battery voltage (once a day) and to excises their valves (weekly)?

I think I may implement it via a automation from home assistant, but........... There is a chance the two commands may overwrite another "more important" command, such as Set_Temp,.

Perhaps we need a way to queue commands for a eTRV and only certain commands (set temp, set valve state, etc) can overwrite each other.

genestealer commented 1 year ago

* certain commands (set temp, set valve state, etc) can overwrite each other. What I mean is, two set_temp's will overwrite each over, but a a set_valve's command will not overwrite the set_temp, rather, it will be queued.

Achronite commented 1 year ago

Updated the README - but basically only 1 COMMAND can be cached/queued for each TRV, including a Temperature change.

Achronite commented 1 year ago

Have you looked into setting up a regular repeating query to ask the eTRV's for their battery voltage (once a day) and to excises their valves (weekly)?

Could do... DIAGNOSTICS would be a good one to call periodically; I could probably work out when to do this when other commands are done to avoid overwriting the users commands (say when retries reaches 0).

I can't remember if VOLTAGE gets auto reported anyway...

Achronite commented 1 year ago

Created an issue to investigate periodic reporting Achronite/energenie-ener314rt#31