Multiple Set Level Sent to Device - Tasmota

If you have "weblog 4" you would see things like this in the log:

03:48:58 SRC: WebCommand from 192.168.10.2
03:48:58 CMD: Group 0, Index 1, Command "POWER", Data "0"
03:48:58 TYA: Send "55aa0006000501010001000d"
03:48:58 RSL: RESULT = {"POWER1":"OFF"}
03:48:58 RSL: POWER1 = OFF

That way you would know exactly what issued the command.

I have weblog 4 set.
But I need to setup a syslog server on my pc to capture the log.

Should not be needed, open the Tasmota console, make sure that you have set "weblog 4", turn off the light and trigger your rule. You should then have all you need.

I am not clear about triggering the rule.
Wouldn't I have to change the rule trigger to say a specific time to get it to run?

Or wait until sunset?

Set a simpler trigger just temporarily, like a motion sensor. Or set a time just a few minutes away. The trigger doesn't matter, it's the actions you need to test.

Use the same rule and juts change the time or create a new one?

Same rule, new trigger.

08:24:52 {"TuyaReceived":{"Data":"55AA000000010101","Cmnd":0,"CmndData":"01"}}
08:24:52 TYA: Heartbeat
08:24:59 HTP: Command
08:24:59 SRC: WebCommand from 192.168.1.50
08:24:59 CMD: Group 0, Index 1, Command "DIMMER", Data "65"
08:24:59 SRC: Light
08:24:59 TYA: Send dim value=79 (id=3)
08:24:59 TYA: Send "55aa00060008030200040000004f65"
08:24:59 TYA: Send "55aa0006000501010001010e"
08:25:00 RSL: tasmota/tele/STATE = {"Time":"2020-07-26T08:24:59","Uptime":"2T19:33:16","UptimeSec":243196,"Heap":25,"SleepMode":"Dynamic","Sleep":10,"LoadAvg":23,"MqttCount":0,"POWER":"ON","Dimmer":65,"Fade":"OFF","Speed":20,"LedTable":"ON","Wifi":{"AP":1,"SSId":"KRAUSHOUSE","BSSId":"60:38:E0:77:F0:FA","Channel":11,"RSSI":100,"Signal":-46,"LinkCount":1,"Downtime":"0T00:00:06"}}
08:25:00 RSL: tasmota/stat/RESULT = {"POWER":"ON","Dimmer":65}
08:25:00 {"TuyaReceived":{"Data":"55AA00070008030200040000005067","Cmnd":7,"CmndData":"0302000400000050","DpType2Id3":80,"3":{"DpId":3,"DpIdType":2,"DpIdData":"00000050"}}}
08:25:00 TYA: fnId=21 is set for dpId=3
08:25:00 TYA: RX Dim State=80
08:25:00 SRC: Switch
08:25:00 CMD: Group 0, Index 3, Command "DIMMER", Data "31"
08:25:00 RSL: tasmota/tele/STATE = {"Time":"2020-07-26T08:25:00","Uptime":"2T19:33:17","UptimeSec":243197,"Heap":25,"SleepMode":"Dynamic","Sleep":10,"LoadAvg":23,"MqttCount":0,"POWER":"ON","Dimmer":31,"Fade":"OFF","Speed":20,"LedTable":"ON","Wifi":{"AP":1,"SSId":"KRAUSHOUSE","BSSId":"60:38:E0:77:F0:FA","Channel":11,"RSSI":100,"Signal":-46,"LinkCount":1,"Downtime":"0T00:00:06"}}
08:25:00 TYA: Send dim skipped value=11
08:25:00 RSL: tasmota/stat/RESULT = {"POWER":"ON","Dimmer":31}
08:25:00 {"TuyaReceived":{"Data":"55AA0007000501010001010F","Cmnd":7,"CmndData":"0101000101","DpType1Id1":1,"1":{"DpId":1,"DpIdType":1,"DpIdData":"01"}}}
08:25:00 TYA: fnId=11 is set for dpId=1
08:25:00 TYA: RX Relay-1 --> MCU State: On Current State:On
08:25:00 CFG: Saved to flash at F6, Count 572, Bytes 4096
08:25:01 WIF: Checking connection...
08:25:03 TYA: Send "55aa00000000ff"
08:25:03 {"TuyaReceived":{"Data":"55AA000000010101","Cmnd":0,"CmndData":"01"}}
08:25:03 TYA: Heartbeat
08:25:14 TYA: Send "55aa00000000ff"
08:25:14 {"TuyaReceived":{"Data":"55AA000000010101","Cmnd":0,"CmndData":"01"}}
08:25:14 TYA: Heartbeat
08:25:21 WIF: Checking connection...
08:25:25 TYA: Send "55aa00000000ff"
08:25:25 {"TuyaReceived":{"Data":"55AA000000010101","Cmnd":0,"CmndData":"01"}}
08:25:25 TYA: Heartbeat

It's the secondary chip inside the Tasmota device that returns 31. The issue you have is with the configuration of the TuyaMCU. The issue is not inside HE. I'll look and see if there is an easy fix.

EDIT:

What is your DimmerRange set to?

25,254

It could be that these are not within the correct range, follow the instructions for obtaining the min and max values (heading Dimming Range):
https://tasmota.github.io/docs/TuyaMCU/

I made a mistake
40,254
I followed the instructions when I originally set it up.

Have you changed any of the other Tuya Setoptions as well? When you installed this device, did you run the "reset 5" command as instructed?

yes

To which question?

This is what i did

GPIO13 TuyaRx 108
GPIO15 TuyaTx 107
TuyaMCU 21,3 - Dimming
dimmerrange40,254

Ok, run these three commands in the Tasmota console and give me the logs:

dimmer 0
dimmer 50
dimmer 100

08:50:57 CMD: dimmer 0
08:50:57 SRC: WebConsole from 192.168.1.133
08:50:57 CMD: Group 0, Index 1, Command "DIMMER", Data "0"
08:50:57 RSL: tasmota/tele/STATE = {"Time":"2020-07-26T08:50:57","Uptime":"2T19:59:14","UptimeSec":244754,"Heap":25,"SleepMode":"Dynamic","Sleep":50,"LoadAvg":19,"MqttCount":0,"POWER":"OFF","Dimmer":0,"Fade":"OFF","Speed":20,"LedTable":"ON","Wifi":{"AP":1,"SSId":"KRAUSHOUSE","BSSId":"60:38:E0:77:F0:FA","Channel":11,"RSSI":100,"Signal":-46,"LinkCount":1,"Downtime":"0T00:00:06"}}
08:50:57 RSL: tasmota/stat/RESULT = {"POWER":"OFF","Dimmer":0}
08:50:57 TYA: Send dim skipped value=0
08:50:58 CFG: Saved to flash at F4, Count 574, Bytes 4096
08:51:01 WIF: Checking connection...
08:51:05 TYA: Send "55aa00000000ff"
08:51:05 {"TuyaReceived":{"Data":"55AA000000010101","Cmnd":0,"CmndData":"01"}}
08:51:05 TYA: Heartbeat
08:51:16 TYA: Send "55aa00000000ff"
08:51:16 {"TuyaReceived":{"Data":"55AA000000010101","Cmnd":0,"CmndData":"01"}}
08:51:16 TYA: Heartbeat
08:51:21 WIF: Checking connection...
08:51:27 CMD: dimmer 0
08:51:27 SRC: WebConsole from 192.168.1.133
08:51:27 CMD: Group 0, Index 1, Command "DIMMER", Data "0"
08:51:27 RSL: tasmota/tele/STATE = {"Time":"2020-07-26T08:51:27","Uptime":"2T19:59:44","UptimeSec":244784,"Heap":25,"SleepMode":"Dynamic","Sleep":50,"LoadAvg":19,"MqttCount":0,"POWER":"OFF","Dimmer":0,"Fade":"OFF","Speed":20,"LedTable":"ON","Wifi":{"AP":1,"SSId":"KRAUSHOUSE","BSSId":"60:38:E0:77:F0:FA","Channel":11,"RSSI":100,"Signal":-46,"LinkCount":1,"Downtime":"0T00:00:06"}}
08:51:27 RSL: tasmota/stat/RESULT = {"POWER":"OFF","Dimmer":0}
08:51:27 TYA: Send dim skipped value=0
08:51:27 TYA: Send "55aa00000000ff"
08:51:27 {"TuyaReceived":{"Data":"55AA000000010101","Cmnd":0,"CmndData":"01"}}
08:51:27 TYA: Heartbeat
08:51:34 CMD: dimmer 50
08:51:34 SRC: WebConsole from 192.168.1.133
08:51:34 CMD: Group 0, Index 1, Command "DIMMER", Data "50"
08:51:34 SRC: Light
08:51:34 TYA: Send dim value=40 (id=3)
08:51:34 TYA: Send "55aa0006000803020004000000283e"
08:51:34 TYA: Send "55aa0006000501010001010e"
08:51:34 RSL: tasmota/tele/STATE = {"Time":"2020-07-26T08:51:34","Uptime":"2T19:59:51","UptimeSec":244791,"Heap":25,"SleepMode":"Dynamic","Sleep":10,"LoadAvg":19,"MqttCount":0,"POWER":"ON","Dimmer":50,"Fade":"OFF","Speed":20,"LedTable":"ON","Wifi":{"AP":1,"SSId":"KRAUSHOUSE","BSSId":"60:38:E0:77:F0:FA","Channel":11,"RSSI":100,"Signal":-46,"LinkCount":1,"Downtime":"0T00:00:06"}}
08:51:34 RSL: tasmota/stat/RESULT = {"POWER":"ON","Dimmer":50}
08:51:34 {"TuyaReceived":{"Data":"55AA0007000803020004000000283F","Cmnd":7,"CmndData":"0302000400000028","DpType2Id3":40,"3":{"DpId":3,"DpIdType":2,"DpIdData":"00000028"}}}
08:51:34 TYA: fnId=21 is set for dpId=3
08:51:34 TYA: RX Dim State=40
08:51:34 SRC: Switch
08:51:34 CMD: Group 0, Index 3, Command "DIMMER", Data "16"
08:51:34 RSL: tasmota/tele/STATE = {"Time":"2020-07-26T08:51:34","Uptime":"2T19:59:51","UptimeSec":244791,"Heap":26,"SleepMode":"Dynamic","Sleep":10,"LoadAvg":19,"MqttCount":0,"POWER":"ON","Dimmer":16,"Fade":"OFF","Speed":20,"LedTable":"ON","Wifi":{"AP":1,"SSId":"KRAUSHOUSE","BSSId":"60:38:E0:77:F0:FA","Channel":11,"RSSI":100,"Signal":-46,"LinkCount":1,"Downtime":"0T00:00:06"}}
08:51:34 TYA: Send dim skipped value=2
08:51:34 RSL: tasmota/stat/RESULT = {"POWER":"ON","Dimmer":16}
08:51:34 {"TuyaReceived":{"Data":"55AA0007000501010001010F","Cmnd":7,"CmndData":"0101000101","DpType1Id1":1,"1":{"DpId":1,"DpIdType":1,"DpIdData":"01"}}}
08:51:34 TYA: fnId=11 is set for dpId=1
08:51:34 TYA: RX Relay-1 --> MCU State: On Current State:On
08:51:35 CFG: Saved to flash at FB, Count 575, Bytes 4096
08:51:38 TYA: Send "55aa00000000ff"
08:51:38 {"TuyaReceived":{"Data":"55AA000000010101","Cmnd":0,"CmndData":"01"}}
08:51:38 TYA: Heartbeat
08:51:40 CMD: dimmer 100
08:51:40 SRC: WebConsole from 192.168.1.133
08:51:40 CMD: Group 0, Index 1, Command "DIMMER", Data "100"
08:51:41 RSL: tasmota/tele/STATE = {"Time":"2020-07-26T08:51:40","Uptime":"2T19:59:57","UptimeSec":244797,"Heap":25,"SleepMode":"Dynamic","Sleep":10,"LoadAvg":99,"MqttCount":0,"POWER":"ON","Dimmer":100,"Fade":"OFF","Speed":20,"LedTable":"ON","Wifi":{"AP":1,"SSId":"KRAUSHOUSE","BSSId":"60:38:E0:77:F0:FA","Channel":11,"RSSI":100,"Signal":-46,"LinkCount":1,"Downtime":"0T00:00:06"}}
08:51:41 RSL: tasmota/stat/RESULT = {"POWER":"ON","Dimmer":100}
08:51:41 TYA: Send dim value=255 (id=3)
08:51:41 TYA: Send "55aa0006000803020004000000ff15"
08:51:41 {"TuyaReceived":{"Data":"55AA0007000803020004000000FF16","Cmnd":7,"CmndData":"03020004000000FF","DpType2Id3":255,"3":{"DpId":3,"DpIdType":2,"DpIdData":"000000FF"}}}
08:51:41 TYA: fnId=21 is set for dpId=3
08:51:41 TYA: RX Dim State=255
08:51:41 CFG: Saved to flash at FA, Count 576, Bytes 4096
08:51:42 WIF: Checking connection...
08:51:49 TYA: Send "55aa00000000ff"
08:51:49 {"TuyaReceived":{"Data":"55AA000000010101","Cmnd":0,"CmndData":"01"}}
08:51:49 TYA: Heartbeat
08:51:56 RSL: tasmota/tele/STATE = {"Time":"2020-07-26T08:51:56","Uptime":"2T20:00:13","UptimeS

Also run "dimmer 10", this is not converted correctly and I don't have a device like this so have to think about where this goes wrong.

09:01:31 CMD: dimmer 0
09:01:31 SRC: WebConsole from 192.168.1.133
09:01:31 CMD: Group 0, Index 1, Command "DIMMER", Data "0"
09:01:31 RSL: tasmota/tele/STATE = {"Time":"2020-07-26T09:01:31","Uptime":"2T20:09:48","UptimeSec":245388,"Heap":25,"SleepMode":"Dynamic","Sleep":50,"LoadAvg":19,"MqttCount":0,"POWER":"OFF","Dimmer":0,"Fade":"OFF","Speed":20,"LedTable":"ON","Wifi":{"AP":1,"SSId":"KRAUSHOUSE","BSSId":"60:38:E0:77:F0:FA","Channel":11,"RSSI":100,"Signal":-47,"LinkCount":1,"Downtime":"0T00:00:06"}}
09:01:31 RSL: tasmota/stat/RESULT = {"POWER":"OFF","Dimmer":0}
09:01:31 TYA: Send dim skipped value=0
09:01:32 TYA: Send "55aa00000000ff"
09:01:32 {"TuyaReceived":{"Data":"55AA000000010101","Cmnd":0,"CmndData":"01"}}
09:01:32 TYA: Heartbeat
09:01:34 CMD: dimmer 10
09:01:34 SRC: WebConsole from 192.168.1.133
09:01:34 CMD: Group 0, Index 1, Command "DIMMER", Data "10"
09:01:34 SRC: Light
09:01:34 TYA: Send dim value=40 (id=3)
09:01:34 TYA: Send "55aa0006000803020004000000283e"
09:01:34 TYA: Send "55aa0006000501010001010e"
09:01:34 RSL: tasmota/tele/STATE = {"Time":"2020-07-26T09:01:34","Uptime":"2T20:09:51","UptimeSec":245391,"Heap":25,"SleepMode":"Dynamic","Sleep":10,"LoadAvg":19,"MqttCount":0,"POWER":"ON","Dimmer":10,"Fade":"OFF","Speed":20,"LedTable":"ON","Wifi":{"AP":1,"SSId":"KRAUSHOUSE","BSSId":"60:38:E0:77:F0:FA","Channel":11,"RSSI":100,"Signal":-46,"LinkCount":1,"Downtime":"0T00:00:06"}}
09:01:34 RSL: tasmota/stat/RESULT = {"POWER":"ON","Dimmer":10}
09:01:35 {"TuyaReceived":{"Data":"55AA0007000803020004000000283F","Cmnd":7,"CmndData":"0302000400000028","DpType2Id3":40,"3":{"DpId":3,"DpIdType":2,"DpIdData":"00000028"}}}
09:01:35 TYA: fnId=21 is set for dpId=3
09:01:35 TYA: RX Dim State=40
09:01:35 SRC: Switch
09:01:35 CMD: Group 0, Index 3, Command "DIMMER", Data "16"
09:01:35 RSL: tasmota/tele/STATE = {"Time":"2020-07-26T09:01:35","Uptime":"2T20:09:52","UptimeSec":245392,"Heap":26,"SleepMode":"Dynamic","Sleep":10,"LoadAvg":19,"MqttCount":0,"POWER":"ON","Dimmer":16,"Fade":"OFF","Speed":20,"LedTable":"ON","Wifi":{"AP":1,"SSId":"KRAUSHOUSE","BSSId":"60:38:E0:77:F0:FA","Channel":11,"RSSI":100,"Signal":-46,"LinkCount":1,"Downtime":"0T00:00:06"}}
09:01:35 TYA: Send dim skipped value=2
09:01:35 RSL: tasmota/stat/RESULT = {"POWER":"ON","Dimmer":16}
09:01:35 {"TuyaReceived":{"Data":"55AA0007000501010001010F","Cmnd":7,"CmndData":"0101000101","DpType1Id1":1,"1":{"DpId":1,"DpIdType":1,"DpIdData":"01"}}}
09:01:35 TYA: fnId=11 is set for dpId=1
09:01:35 TYA: RX Relay-1 --> MCU State: On Current State:On
09:01:35 CFG: Saved to flash at F4, Count 582, Bytes 4096
09:01:39 CMD: dimmer 50
09:01:39 SRC: WebConsole from 192.168.1.133
09:01:39 CMD: Group 0, Index 1, Command "DIMMER", Data "50 "
09:01:39 RSL: tasmota/tele/STATE = {"Time":"2020-07-26T09:01:39","Uptime":"2T20:09:56","UptimeSec":245396,"Heap":25,"SleepMode":"Dynamic","Sleep":10,"LoadAvg":103,"MqttCount":0,"POWER":"ON","Dimmer":50,"Fade":"OFF","Speed":20,"LedTable":"ON","Wifi":{"AP":1,"SSId":"KRAUSHOUSE","BSSId":"60:38:E0:77:F0:FA","Channel":11,"RSSI":100,"Signal":-46,"LinkCount":1,"Downtime":"0T00:00:06"}}
09:01:39 RSL: tasmota/stat/RESULT = {"POWER":"ON","Dimmer":50}
09:01:39 TYA: Send dim value=40 (id=3)
09:01:39 TYA: Send "55aa0006000803020004000000283e"
09:01:39 {"TuyaReceived":{"Data":"55AA0007000803020004000000283F","Cmnd":7,"CmndData":"0302000400000028","DpType2Id3":40,"3":{"DpId":3,"DpIdType":2,"DpIdData":"00000028"}}}
09:01:39 TYA: fnId=21 is set for dpId=3
09:01:39 TYA: RX Dim State=40
09:01:40 CFG: Saved to flash at FB, Count 583, Bytes 4096
09:01:43 TYA: Send "55aa00000000ff"
09:01:43 {"TuyaReceived":{"Data":"55AA000000010101","Cmnd":0,"CmndData":"01"}}
09:01:43 TYA: Heartbeat
09:01:43 CMD: dimmer 100
09:01:43 SRC: WebConsole from 192.168.1.133
09:01:43 CMD: Group 0, Index 1, Command "DIMMER", Data "100"
09:01:44 RSL: tasmota/tele/STATE = {"Time":"2020-07-26T09:01:43","Uptime":"2T20:10:00","UptimeSec":245400,"Heap":25,"SleepMode":"Dynamic","Sleep":10,"LoadAvg":99,"MqttCount":0,"POWER":"ON","Dimmer":100,"Fade":"OFF","Speed":20,"LedTable":"ON","Wifi":{"AP":1,"SSId":"KRAUSHOUSE","BSSId":"60:38:E0:77:F0:FA","Channel":11,"RSSI":100,"Signal":-47,"LinkCount":1,"Downtime":"0T00:00:06"}}
09:01:44 RSL: tasmota/stat/RESULT = {"POWER":"ON","Dimmer":100}
09:01:44 TYA: Send dim value=255 (id=3)
09:01:44 TYA: Send "55aa0006000803020004000000ff15"
09:01:44 {"TuyaReceived":{"Data":"55AA0007000803020004000000FF16","Cmnd":7,"CmndData":"03020004000000FF","DpType2Id3":255,"3":{"DpId":3,"DpIdType":2,"DpIdData":"000000FF"}}}
09:01:44 TYA: fnId=21 is set for dpId=3
09:01:44 TYA: RX Dim State=255
09:01:44 CFG: Saved to flash at FA, Count 584, Bytes 4096