arendst / Tasmota

Alternative firmware for ESP8266 and ESP32 based devices with easy configuration using webUI, OTA updates, automation using timers or rules, expandability and entirely local control over MQTT, HTTP, Serial or KNX. Full documentation at
https://tasmota.github.io/docs
GNU General Public License v3.0
21.78k stars 4.73k forks source link

Wakeup does not dimm all dimmers on H801 #14468

Closed kreutpet closed 2 years ago

kreutpet commented 2 years ago

PROBLEM DESCRIPTION

I am using a H801 to control the lights of an aquarium. In the morning i want to wakeup the white lights in the smooth way. I have been struggling to get a reliable wakeup on H801, see also here (https://github.com/arendst/Tasmota/issues/14295) The Wakeup is successfully triggered by a timer in the morning but the Dimmer2 (white LED) is remaining on value 0 while the Dimmer1 (color LED) is showing the intended behavior and increases the dimmer value to the target value.

Interesting is that in rare cases this seems to work. I could not see any difference in the per-conditions. In the log you can see the last state message from the log. In the last days all wake ups failed do change dimmer2 values.

REQUESTED INFORMATION

Make sure your have performed every step and checked the applicable boxes before submitting your issue. Thank you!

TO REPRODUCE

Steps to reproduce the behavior:

  1. SetOption15 1 and SetOption37 128 (this will set control on both dimmers)
  2. The dimmer2 is been smoothly dimmed out by 2nd timer "Backlog Speed2 40;POWER2 OFF" which make Dimmer2 -> 0
  3. Wakeup 60 -> Only Dimmer1 value is changing

EXPECTED BEHAVIOUR

A clear and concise description of what you expected to happen.

There possible 2 way for the expected behavior when the wakeup is triggered :

  1. the all dimmer will follow the wakup command
  2. there would be an option in the wakeup command to define which dimmer shall follow the wakeup : wakup Dimmer1 60

SCREENSHOTS

If applicable, add screenshots to help explain your problem.

NA

ADDITIONAL CONTEXT

Add any other context about the problem here.

Issue may get additional info here https://github.com/arendst/Tasmota/issues/14295

(Please, remember to close the issue when the problem has been addressed)

sfromis commented 2 years ago

As I understand it, wakeup does not work on two dimmer channels at the same time. Changing that would be an enhancement suggestion, not reporting an issue to be fixed. As things are now, you could use rules to get close to the same effect as wakeup. Maybe your observation about white being included was based on not having split into separate RGB and white lights.

kreutpet commented 2 years ago

i looked into https://github.com/arendst/Tasmota/blob/d6fc62e3769dc1655cce63445f08d933a6289ad2/tasmota/xdrv_04_light.ino to understand how the wakeup is working. To my understanding the dimmer of RGB and white should be controlled both. The only thing is see is that with rule 2 the dimmer2 have value0 before rule1 triggers the wakeup. I am still trying to trace in the code if the dimmer2 is not included as it value 0. i will tr to set the dimmer2 before wakeup to value 1 to see if it is then included.

07:17:16.936 CMD: Dimmer2 1 07:17:16.947 MQT: stat/aquarium/DIMMER = {"POWER1":"OFF","Dimmer1":70,"POWER2":"ON","Dimmer2":1,"Color":"0000B30200","HSBColor":"240,100,70","White":1,"CT":153,"Channel":[0,0,70,1,0]} 07:17:28.370 CMD: power2 off 07:17:28.377 MQT: stat/aquarium/POWER2 = {"POWER2":"OFF"} 07:17:28.381 MQT: stat/aquarium/POWER2 = OFF 07:17:32.894 CMD: state 07:17:32.904 MQT: stat/aquarium/STATE = {"Time":"2022-01-17T07:17:32","Uptime":"3T22:05:45","UptimeSec":338745,"Heap":25,"SleepMode":"Normal","Sleep":0,"LoadAvg":999,"MqttCount":46,"POWER1":"OFF","Dimmer1":70,"POWER2":"OFF","Dimmer2":1,"Color":"0000B30200","HSBColor":"240,100,70","White":1,"CT":153,"Channel":[0,0,70,1,0],"Scheme":0,"Fade":"ON","Speed":1,"LedTable":"ON","Wifi":{"AP":1,"SSId":"kiot","BSSId":"60:A4:4C:68:82:0B","Channel":13,"Mode":"11n","RSSI":52,"Signal":-74,"LinkCount":13,"Downtime":"0T00:01:11"}}

kreutpet commented 2 years ago

just to mention the SetOption37 is 128

kreutpet commented 2 years ago

here the log from the wakeup with dimmer2 not 0 before the wakeup it shows that the dimmer2 is now changing it's value. is that the intended behavior? See also my comments on expected behavior

10:00:00.621 RUL: CLOCK#TIMER=1 performs "Backlog Wakeup 60;POWER2 ON;POWER1 OFF"
10:00:00.682 MQT: stat/aquarium/POWER1 = {"POWER1":"ON"}
10:00:00.685 MQT: stat/aquarium/POWER1 = ON
10:00:00.688 MQT: stat/aquarium/WAKEUP = {"Wakeup":"Started"}
10:00:00.881 MQT: stat/aquarium/POWER2 = {"POWER2":"ON"}
10:00:00.885 MQT: stat/aquarium/POWER2 = ON
10:00:01.082 MQT: stat/aquarium/POWER1 = {"POWER1":"OFF"}
10:00:01.086 MQT: stat/aquarium/POWER1 = OFF
10:02:13.618 MQT: tele/aquarium/STATE = {"Time":"2022-01-17T10:02:13","Uptime":"4T00:50:26","UptimeSec":348626,"Heap":27,"SleepMode":"Normal","Sleep":0,"LoadAvg":999,"MqttCount":46,"POWER1":"OFF","Dimmer1":8,"POWER2":"ON","Dimmer2":8,"Color":"0000161600","HSBColor":"240,100,8","White":8,"CT":153,"Channel":[0,0,8,8,0],"Scheme":1,"Fade":"ON","Speed":1,"LedTable":"ON","Wifi":{"AP":1,"SSId":"kiot","BSSId":"60:A4:4C:68:82:0B","Channel":13,"Mode":"11n","RSSI":58,"Signal":-71,"LinkCount":13,"Downtime":"0T00:01:11"}}
10:02:13.628 MQT: tele/aquarium/SENSOR = {"Time":"2022-01-17T10:02:13","DS18B20-1":{"Id":"3C01F096889E","Temperature":24.9},"DS18B20-2":{"Id":"3C01F096D865","Temperature":24.7},"AM2301":{"Temperature":null,"Humidity":null,"DewPoint":null},"TempUnit":"C"}
10:07:13.617 MQT: tele/aquarium/STATE = {"Time":"2022-01-17T10:07:13","Uptime":"4T00:55:26","UptimeSec":348926,"Heap":27,"SleepMode":"Normal","Sleep":0,"LoadAvg":999,"MqttCount":46,"POWER1":"OFF","Dimmer1":29,"POWER2":"ON","Dimmer2":29,"Color":"00004A4A00","HSBColor":"240,100,29","White":29,"CT":153,"Channel":[0,0,29,29,0],"Scheme":1,"Fade":"ON","Speed":1,"LedTable":"ON","Wifi":{"AP":1,"SSId":"kiot","BSSId":"60:A4:4C:68:82:0B","Channel":13,"Mode":"11n","RSSI":56,"Signal":-72,"LinkCount":13,"Downtime":"0T00:01:11"}}
10:07:13.627 MQT: tele/aquarium/SENSOR = {"Time":"2022-01-17T10:07:13","DS18B20-1":{"Id":"3C01F096889E","Temperature":24.9},"DS18B20-2":{"Id":"3C01F096D865","Temperature":24.7},"AM2301":{"Temperature":null,"Humidity":null,"DewPoint":null},"TempUnit":"C"}
10:12:13.618 MQT: tele/aquarium/STATE = {"Time":"2022-01-17T10:12:13","Uptime":"4T01:00:26","UptimeSec":349226,"Heap":27,"SleepMode":"Normal","Sleep":0,"LoadAvg":999,"MqttCount":46,"POWER1":"OFF","Dimmer1":49,"POWER2":"ON","Dimmer2":49,"Color":"00007D7D00","HSBColor":"240,100,49","White":49,"CT":153,"Channel":[0,0,49,49,0],"Scheme":1,"Fade":"ON","Speed":1,"LedTable":"ON","Wifi":{"AP":1,"SSId":"kiot","BSSId":"60:A4:4C:68:82:0B","Channel":13,"Mode":"11n","RSSI":56,"Signal":-72,"LinkCount":13,"Downtime":"0T00:01:11"}}
10:12:13.627 MQT: tele/aquarium/SENSOR = {"Time":"2022-01-17T10:12:13","DS18B20-1":{"Id":"3C01F096889E","Temperature":24.9},"DS18B20-2":{"Id":"3C01F096D865","Temperature":24.7},"AM2301":{"Temperature":null,"Humidity":null,"DewPoint":null},"TempUnit":"C"}
Chiller2019 commented 2 years ago

My H801 hang up after 15minutes, idk why.

ascillato commented 2 years ago

@Chiller2019

Hi, as your problem is different to this thread, if you need assistance, please use the discord chat or open a new issue with the template fully completed. thanks.

github-actions[bot] commented 2 years ago

This issue has been automatically marked as stale because it hasn't any activity in last few weeks. It will be closed if no further activity occurs. Thank you for your contributions.

github-actions[bot] commented 2 years ago

This issue was automatically closed because of being stale. Feel free to open a new one if you still experience this problem.