etrv2mqtt icon indicating copy to clipboard operation
etrv2mqtt copied to clipboard

Enhancement: Allow changing settings, time and schedules?

Open fragger42 opened this issue 4 years ago • 2 comments

Is it possible to enhance etrv2mqtt to allow full functionality of the app? Currently etrv2mqtt is kind of limited to only set the temperature in manual mode and display some values.

As far as I can see there are the following more possibilities:

  • settings: Allow changing between heating modes (manuel etc.), vacation periods etc.
  • schedules: The thermostats allow setting schedules that run independently on them so you have some kind of autonomity from your smarthome system
  • current time: When you change the batteries, time is lost and needs to be reset. Currently, you need to connect with the Danfoss app to set the time as there is no other possibility to do so.

settings and time seems to be implemented already in cli of libetrv (at least for display but probably it works the same as with temperature?). For the schedule I think there is already something in it (schedule.py) but it looks incomplete to me?

fragger42 avatar Jan 17 '21 15:01 fragger42

etrv2mqtt is just a protocol translator between Home assistant autodiscovery and libetrv. From the description it sounds like libetrv has to be updated first. Then it would be good idea that someone would test it since I don't have those devices anymore. I'm also not sure that HA has those functionalities within autodiscovered thermostat object.

keton avatar Jan 17 '21 16:01 keton

I could test it, that's no problem and I can also program a bit in python but I'm not sure how it would be implemented correctly.

I'm actually using etrv2mqtt with Openhab as this also works fine and MQTT is kind of universal. Autodiscovery doesn't work in Openhab because the MQTT binding of Openhab hasn't implemented a mapping for the Climate control but manually adding the etrvs works very good.

Settings and Time is already available in libetrv with an example for reading (writing would need tests but I don't see why it should not work), I edited my start post a few times and you were a bit too fast I think ;)

fragger42 avatar Jan 18 '21 15:01 fragger42