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.96k stars 4.77k forks source link

Wired light connected to the relay on Sonoff NSPanel does not turn on #18090

Closed smartmatic closed 1 year ago

smartmatic commented 1 year ago

PROBLEM DESCRIPTION

I've replaced a physical light Switch with the NSPanel. Everything works except the the light connected to the relay. It does not turn on once i push the button.

REQUESTED INFORMATION

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

- [ ] If using rules, provide the output of this command: `Backlog Rule1; Rule2; Rule3`:
```lua
  Rules output here:

20:05:37.926 MQT: stat/nspanel_flurog/STATUS = {"Status":{"Module":0,"DeviceName":"Tasmota","FriendlyName":["Tasmota",""],"Topic":"nspanel_flurog","ButtonTopic":"0","Power":0,"PowerOnState":3,"LedState":1,"LedMask":"FFFF","SaveData":1,"SaveState":1,"SwitchTopic":"0","SwitchMode":[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],"ButtonRetain":0,"SwitchRetain":0,"SensorRetain":0,"PowerRetain":0,"InfoRetain":0,"StateRetain":0,"StatusRetain":0}} 20:05:37.935 MQT: stat/nspanel_flurog/STATUS1 = {"StatusPRM":{"Baudrate":115200,"SerialConfig":"8N1","GroupTopic":"tasmotas","OtaUrl":"http://ota.tasmota.com/tasmota32/release/tasmota32-nspanel.bin","RestartReason":"Software reset CPU","Uptime":"0T02:01:47","StartupUTC":"2023-03-02T17:03:50","Sleep":0,"CfgHolder":4617,"BootCount":18,"BCResetTime":"2023-03-01T20:33:34","SaveCount":91}} 20:05:37.942 MQT: stat/nspanel_flurog/STATUS2 = {"StatusFWR":{"Version":"12.4.0.2(nspanel)","BuildDateTime":"2023-03-01T17:03:19","Core":"2_0_7","SDK":"4.4.4.20230218","CpuFrequency":160,"Hardware":"ESP32-D0WD-V3 rev.3","CR":"431/699"}} 20:05:37.948 MQT: stat/nspanel_flurog/STATUS3 = {"StatusLOG":{"SerialLog":2,"WebLog":2,"MqttLog":0,"SysLog":0,"LogHost":"","LogPort":514,"SSId":["Cablenet",""],"TelePeriod":300,"Resolution":"558180C0","SetOption":["00008009","2805C80001000600003C5A0A192800000000","00000080","00006000","00004000","00000000"]}} 20:05:37.972 MQT: stat/nspanel_flurog/STATUS4 = {"StatusMEM":{"ProgramSize":1515,"Free":1364,"Heap":131,"StackLowMark":3,"PsrMax":0,"PsrFree":0,"ProgramFlashSize":4096,"FlashSize":4096,"FlashChipId":"16405E","FlashFrequency":40,"FlashMode":"DIO","Features":["00000809","9F9AD7CF","0015A001","B7F7BFCF","05DA9BC0","E0360DC7","480840D2","20200000","D43C482D","000280B1"],"Drivers":"1,2,3,4,5,7,8,9,10,11,12,14,16,17,20,21,24,26,27,29,34,35,38,50,52,59,60,62,63,66,67,82,86,87,88","Sensors":"1,2,3,5,6,7,8,9,10,11,12,13,14,15,17,18,19,20,21,22,26,31,34,37,39,40,42,43,45,51,52,55,56,58,59,64,66,67,74,85,92,95,98,103,127","I2CDriver":"7,8,9,10,11,12,13,14,15,17,18,20,24,29,31,36,41,42,44,46,48,58,62,69,76,77"}} 20:05:37.985 MQT: stat/nspanel_flurog/STATUS5 = {"StatusNET":{"Hostname":"nspanel-flurog-0332","IPAddress":"192.168.178.164","Gateway":"192.168.178.1","Subnetmask":"255.255.255.0","DNSServer1":"192.168.178.1","DNSServer2":"0.0.0.0","Mac":"40:22:D8:62:E1:4C","IP6Global":"fd0c:2a70:34e8:46b7:4222:d8ff:fe62:e14c","IP6Local":"fe80::4222:d8ff:fe62:e14c","Ethernet":{"Hostname":"","IPAddress":"0.0.0.0","Gateway":"0.0.0.0","Subnetmask":"0.0.0.0","DNSServer1":"192.168.178.1","DNSServer2":"0.0.0.0","Mac":"00:00:00:00:00:00","IP6Global":"","IP6Local":""},"Webserver":2,"HTTP_API":1,"WifiConfig":4,"WifiPower":17.0}} 20:05:37.994 MQT: stat/nspanelflurog/STATUS6 = {"StatusMQT":{"MqttHost":"192.168.178.86","MqttPort":1883,"MqttClientMask":"DVES%06X","MqttClient":"DVES_62E14C","MqttUser":"hamqtt","MqttCount":1,"MAX_PACKET_SIZE":1200,"KEEPALIVE":30,"SOCKET_TIMEOUT":4}} 20:05:38.006 MQT: stat/nspanel_flurog/STATUS7 = {"StatusTIM":{"UTC":"2023-03-02T19:05:37","Local":"2023-03-02T20:05:37","StartDST":"2023-03-26T02:00:00","EndDST":"2023-10-29T03:00:00","Timezone":"+01:00","Sunrise":"07:30","Sunset":"18:33"}} 20:05:38.021 MQT: stat/nspanel_flurog/STATUS10 = {"StatusSNS":{"Time":"2023-03-02T20:05:38","ANALOG":{"Temperature1":23.6},"TempUnit":"C"}} 20:05:38.031 MQT: stat/nspanel_flurog/STATUS11 = {"StatusSTS":{"Time":"2023-03-02T20:05:38","Uptime":"0T02:01:48","UptimeSec":7308,"Heap":129,"SleepMode":"Dynamic","Sleep":0,"LoadAvg":999,"MqttCount":1,"Berry":{"HeapUsed":16,"Objects":239},"POWER1":"OFF","POWER2":"OFF","Wifi":{"AP":1,"SSId":"Cablenet","BSSId":"AC:8B:A9:48:26:3A","Channel":11,"Mode":"11n","RSSI":72,"Signal":-64,"LinkCount":1,"Downtime":"0T00:00:04"}}}

- [x] Set `weblog` to 4 and then, when you experience your issue, provide the output of the Console log:
```lua
  Console output here:

19:59:00.914 MQT: tele/nspanel_flurog/SENSOR = {"Time":"2023-03-02T19:59:00","ANALOG":{"Temperature1":23.9},"TempUnit":"C"}
20:00:00.359 MQT: stat/nspanel_flurog/RESULT = {"CustomSend":"Done"}
20:00:00.411 MQT: stat/nspanel_flurog/RESULT = {"CustomSend":"Done"}
20:01:00.358 MQT: stat/nspanel_flurog/RESULT = {"CustomSend":"Done"}
20:02:00.360 MQT: stat/nspanel_flurog/RESULT = {"CustomSend":"Done"}
20:03:00.358 MQT: stat/nspanel_flurog/RESULT = {"CustomSend":"Done"}
20:04:00.357 MQT: stat/nspanel_flurog/RESULT = {"CustomSend":"Done"}
20:04:00.900 MQT: tele/nspanel_flurog/STATE = {"Time":"2023-03-02T20:04:00","Uptime":"0T02:00:10","UptimeSec":7210,"Heap":134,"SleepMode":"Dynamic","Sleep":0,"LoadAvg":999,"MqttCount":1,"Berry":{"HeapUsed":16,"Objects":239},"POWER1":"OFF","POWER2":"OFF","Wifi":{"AP":1,"SSId":"Cablenet","BSSId":"AC:8B:A9:48:26:3A","Channel":11,"Mode":"11n","RSSI":76,"Signal":-62,"LinkCount":1,"Downtime":"0T00:00:04"}}
20:04:00.916 MQT: tele/nspanel_flurog/SENSOR = {"Time":"2023-03-02T20:04:00","ANALOG":{"Temperature1":23.7},"TempUnit":"C"}
20:05:00.506 MQT: stat/nspanel_flurog/RESULT = {"CustomSend":"Done"}
20:05:37.917 CMD: status 0
20:05:37.926 MQT: stat/nspanel_flurog/STATUS = {"Status":{"Module":0,"DeviceName":"Tasmota","FriendlyName":["Tasmota",""],"Topic":"nspanel_flurog","ButtonTopic":"0","Power":0,"PowerOnState":3,"LedState":1,"LedMask":"FFFF","SaveData":1,"SaveState":1,"SwitchTopic":"0","SwitchMode":[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],"ButtonRetain":0,"SwitchRetain":0,"SensorRetain":0,"PowerRetain":0,"InfoRetain":0,"StateRetain":0,"StatusRetain":0}}
20:05:37.935 MQT: stat/nspanel_flurog/STATUS1 = {"StatusPRM":{"Baudrate":115200,"SerialConfig":"8N1","GroupTopic":"tasmotas","OtaUrl":"http://ota.tasmota.com/tasmota32/release/tasmota32-nspanel.bin","RestartReason":"Software reset CPU","Uptime":"0T02:01:47","StartupUTC":"2023-03-02T17:03:50","Sleep":0,"CfgHolder":4617,"BootCount":18,"BCResetTime":"2023-03-01T20:33:34","SaveCount":91}}
20:05:37.942 MQT: stat/nspanel_flurog/STATUS2 = {"StatusFWR":{"Version":"12.4.0.2(nspanel)","BuildDateTime":"2023-03-01T17:03:19","Core":"2_0_7","SDK":"4.4.4.20230218","CpuFrequency":160,"Hardware":"ESP32-D0WD-V3 rev.3","CR":"431/699"}}
20:05:37.948 MQT: stat/nspanel_flurog/STATUS3 = {"StatusLOG":{"SerialLog":2,"WebLog":2,"MqttLog":0,"SysLog":0,"LogHost":"","LogPort":514,"SSId":["Cablenet",""],"TelePeriod":300,"Resolution":"558180C0","SetOption":["00008009","2805C80001000600003C5A0A192800000000","00000080","00006000","00004000","00000000"]}}
20:05:37.972 MQT: stat/nspanel_flurog/STATUS4 = {"StatusMEM":{"ProgramSize":1515,"Free":1364,"Heap":131,"StackLowMark":3,"PsrMax":0,"PsrFree":0,"ProgramFlashSize":4096,"FlashSize":4096,"FlashChipId":"16405E","FlashFrequency":40,"FlashMode":"DIO","Features":["00000809","9F9AD7CF","0015A001","B7F7BFCF","05DA9BC0","E0360DC7","480840D2","20200000","D43C482D","000280B1"],"Drivers":"1,2,3,4,5,7,8,9,10,11,12,14,16,17,20,21,24,26,27,29,34,35,38,50,52,59,60,62,63,66,67,82,86,87,88","Sensors":"1,2,3,5,6,7,8,9,10,11,12,13,14,15,17,18,19,20,21,22,26,31,34,37,39,40,42,43,45,51,52,55,56,58,59,64,66,67,74,85,92,95,98,103,127","I2CDriver":"7,8,9,10,11,12,13,14,15,17,18,20,24,29,31,36,41,42,44,46,48,58,62,69,76,77"}}
20:05:37.985 MQT: stat/nspanel_flurog/STATUS5 = {"StatusNET":{"Hostname":"nspanel-flurog-0332","IPAddress":"192.168.178.164","Gateway":"192.168.178.1","Subnetmask":"255.255.255.0","DNSServer1":"192.168.178.1","DNSServer2":"0.0.0.0","Mac":"40:22:D8:62:E1:4C","IP6Global":"fd0c:2a70:34e8:46b7:4222:d8ff:fe62:e14c","IP6Local":"fe80::4222:d8ff:fe62:e14c","Ethernet":{"Hostname":"","IPAddress":"0.0.0.0","Gateway":"0.0.0.0","Subnetmask":"0.0.0.0","DNSServer1":"192.168.178.1","DNSServer2":"0.0.0.0","Mac":"00:00:00:00:00:00","IP6Global":"","IP6Local":""},"Webserver":2,"HTTP_API":1,"WifiConfig":4,"WifiPower":17.0}}
20:05:37.994 MQT: stat/nspanel_flurog/STATUS6 = {"StatusMQT":{"MqttHost":"192.168.178.86","MqttPort":1883,"MqttClientMask":"DVES_%06X","MqttClient":"DVES_62E14C","MqttUser":"hamqtt","MqttCount":1,"MAX_PACKET_SIZE":1200,"KEEPALIVE":30,"SOCKET_TIMEOUT":4}}
20:05:38.006 MQT: stat/nspanel_flurog/STATUS7 = {"StatusTIM":{"UTC":"2023-03-02T19:05:37","Local":"2023-03-02T20:05:37","StartDST":"2023-03-26T02:00:00","EndDST":"2023-10-29T03:00:00","Timezone":"+01:00","Sunrise":"07:30","Sunset":"18:33"}}
20:05:38.021 MQT: stat/nspanel_flurog/STATUS10 = {"StatusSNS":{"Time":"2023-03-02T20:05:38","ANALOG":{"Temperature1":23.6},"TempUnit":"C"}}
20:05:38.031 MQT: stat/nspanel_flurog/STATUS11 = {"StatusSTS":{"Time":"2023-03-02T20:05:38","Uptime":"0T02:01:48","UptimeSec":7308,"Heap":129,"SleepMode":"Dynamic","Sleep":0,"LoadAvg":999,"MqttCount":1,"Berry":{"HeapUsed":16,"Objects":239},"POWER1":"OFF","POWER2":"OFF","Wifi":{"AP":1,"SSId":"Cablenet","BSSId":"AC:8B:A9:48:26:3A","Channel":11,"Mode":"11n","RSSI":72,"Signal":-64,"LinkCount":1,"Downtime":"0T00:00:04"}}}
20:06:00.330 MQT: stat/nspanel_flurog/RESULT = {"CustomSend":"Done"}
20:07:00.386 MQT: stat/nspanel_flurog/RESULT = {"CustomSend":"Done"}
20:08:00.381 MQT: stat/nspanel_flurog/RESULT = {"CustomSend":"Done"}
20:09:00.381 MQT: stat/nspanel_flurog/RESULT = {"CustomSend":"Done"}
20:09:00.898 MQT: tele/nspanel_flurog/STATE = {"Time":"2023-03-02T20:09:00","Uptime":"0T02:05:10","UptimeSec":7510,"Heap":128,"SleepMode":"Dynamic","Sleep":0,"LoadAvg":999,"MqttCount":1,"Berry":{"HeapUsed":16,"Objects":239},"POWER1":"OFF","POWER2":"OFF","Wifi":{"AP":1,"SSId":"Cablenet","BSSId":"AC:8B:A9:48:26:3A","Channel":11,"Mode":"11n","RSSI":72,"Signal":-64,"LinkCount":1,"Downtime":"0T00:00:04"}}
20:09:00.914 MQT: tele/nspanel_flurog/SENSOR = {"Time":"2023-03-02T20:09:00","ANALOG":{"Temperature1":23.5},"TempUnit":"C"}
20:10:00.381 MQT: stat/nspanel_flurog/RESULT = {"CustomSend":"Done"}
20:11:00.331 MQT: stat/nspanel_flurog/RESULT = {"CustomSend":"Done"}
20:12:00.386 MQT: stat/nspanel_flurog/RESULT = {"CustomSend":"Done"}
20:12:51.013 CMD: weblog 4
20:12:51.024 MQT: stat/nspanel_flurog/RESULT = {"WebLog":4}
20:12:51.649 CFG: Saved, Count 92, Bytes 4096
20:12:56.741 WIF: Checking connection...
20:13:00.317 SRC: MQTT
20:13:00.319 CMD: Grp 0, Cmd 'CUSTOMSEND', Idx 1, Len 11, Pld -99, Data 'time~20:13~'
20:13:00.334 NXP: payload sent = bytes('55BB0B0074696D657E32303A31337E3D83')
20:13:00.342 MQT: stat/nspanel_flurog/RESULT = {"CustomSend":"Done"}
20:13:12.459 BTN: Button1 multi-press 1
20:13:12.962 SRC: Button
20:13:12.972 MQT: stat/nspanel_flurog/RESULT = {"POWER1":"ON"}
20:13:12.976 MQT: stat/nspanel_flurog/POWER1 = ON
20:13:13.665 CFG: Saved, Count 93, Bytes 4096
20:13:16.740 WIF: Checking connection...
20:13:17.927 BTN: Button2 multi-press 1
20:13:18.430 SRC: Button
20:13:18.439 MQT: stat/nspanel_flurog/RESULT = {"POWER2":"ON"}
20:13:18.442 MQT: stat/nspanel_flurog/POWER2 = ON
20:13:18.688 CFG: Saved, Count 94, Bytes 4096
20:13:24.450 BTN: Button2 multi-press 1
20:13:24.952 SRC: Button
20:13:24.961 MQT: stat/nspanel_flurog/RESULT = {"POWER2":"OFF"}
20:13:24.968 MQT: stat/nspanel_flurog/POWER2 = OFF
20:13:25.644 CFG: Saved, Count 95, Bytes 4096
20:13:29.105 BTN: Button1 multi-press 1
20:13:29.607 SRC: Button
20:13:29.617 MQT: stat/nspanel_flurog/RESULT = {"POWER1":"OFF"}
20:13:29.622 MQT: stat/nspanel_flurog/POWER1 = OFF
20:13:30.665 CFG: Saved, Count 96, Bytes 4096
20:13:36.742 WIF: Checking connection...

TO REPRODUCE

Steps to reproduce the behavior:

EXPECTED BEHAVIOUR

After Push the physical button the light connected to the relay should turn on

SCREENSHOTS

If applicable, add screenshots to help explain your problem.

ADDITIONAL CONTEXT

Add any other context about the problem here.

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

barbudor commented 1 year ago

Please edit and complete the requested information