JanM321 / esphome-lg-controller

Wired controller for LG HVAC units using ESPHome and ESP32

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Add sleep timer feature

JanM321 opened this issue · comments

I just added some documentation for sleep timers (and similar settings) to protocol.md. We could add a sleep timer feature with a variable number of minutes.

Home Assistant automations can be used for timers, but at least in cooling mode the sleep timer function exposes some features that can't otherwise be enabled, such as an extra low fan mode. There's some discussion in ollo69/ha-smartthinq-sensors#182

I think the HA ThinQ integration uses a service for this. We could do something similar to send the reservation type + number of minutes to the AC in the next few messages.

If anyone is interested in this, let me know and I can look into it when I have some time.

This turned out to be a little more complicated than I expected, because the controller has to maintain the timer for this and turn off the AC if it reaches 0.

I tested this locally, also with the ThinQ app, and it seems to work well.