hatasmota
hatasmota copied to clipboard
Add support for using tasmota's native wakeup feature
Tasmota has a native wakeup feature. Currently this is only accessible via a light effect which doesn't actually work since HA always turns on the light before applying an effect, which negates the wake up effect since it turns on to full brightness (or whatever the brightness was before it was turned off). This feature allows me to implement a custom tasmota wake_up service which I'm busy with here. See https://tasmota.github.io/docs/Commands/#light for details:
Wakeup: Start wake up sequence from OFF to stored Dimmer value0..100 = Start wake up sequence from OFF to provided Dimmer value WakeupDuration: 1..3000 = set wake up duration in seconds
Unfortunately WakeupDuration has to be set prior to calling Wakeup. It would be great if this was another parameter part of Wakeup so that it could easily be added as another parameter in the HA tasmota service, although I guess this could be implemented with Backlog.
Let me know what you think.
The change as such looks good, but how do you suggest to integrate it in Home Assistant? Would you give Tasmota lights a custom service call for wake up?