CoMPaTech / esphome_c1101

ESPHome approach on ITHO EcoFan control through 868 MHz ESP8266 for https://www.home-assistant.io
24 stars 5 forks source link

timing countdown #4

Open mories76 opened 4 years ago

mories76 commented 4 years ago

Hi, This work like a charm, very easy compared to espeasy. Do you have any thoughts on the countdown ? I was thinking of a timer in HA. But after the timer finishes in HA it would send a command ' fan low', which seems redundant because the fan is probably already low because of it's own internal timers. So I think the timer should be on the ESP, when the timer is done it should send the status low to HA, without transmitting the message to the fan. I thought of using esphome scripts to combine a delay action and a lambda action. But unfortunately I don't have that much experience to figure that out.

CoMPaTech commented 4 years ago

Apologies for the delay - the old timer just counted down roughly to what the device did. But you could just make an automation in HA to manually set the fan to low. Using https://www.home-assistant.io/integrations/timer/ for instance. Your suggestion on doing it in the ESP makes sense as well, but I'll have to find some playing time to check the lambda functions as well. I'll leave it open for when I have some time on my hands.