HI.
i’ve been trying to set a socket that i bought to control a fan, the socket is RF controlled, have On and Off codes.
i’ve been following your explanation to Klagio but still no luck, i created a switch like you did and also made the changes in the RF bridge but no respond when i press the switch in HA.
can you please have a look at my settings, what am i’m doing wrong?
sorry for the long log, i thought it might be helpful
23:47:38 CMD: SetOption28 ON
23:47:38 MQT: stat/bridge5/RESULT = {“SetOption28”:“ON”}
23:48:09 CMD: rule1 on
23:48:09 MQT: stat/bridge5/RESULT = {“Rule1”:“ON”,“Once”:“OFF”,“StopOnError”:“OFF”,“Free”:431,“Rules”:“on RfReceived#data do publish stat/bridge5/RESULT {“RfCode”:”%value%“} endon”}
23:49:13 CMD: rule on RfReceived#data do publish stat/bridge5/RESULT {“RfCode”:“%value%”} endon
23:49:13 MQT: stat/bridge5/RESULT = {“Rule1”:“ON”,“Once”:“OFF”,“StopOnError”:“OFF”,“Free”:431,“Rules”:“on RfReceived#data do publish stat/bridge5/RESULT {“RfCode”:”%value%“} endon”}
0:00:00 APP: Set Baudrate to 19200
00:00:00 Project sonoff Sonoff Version 6.4.1.9(sonoff)-2_4_2
00:00:00 WIF: Connecting to AP1 productionwifi in mode 11N as bridge5-0237…
00:00:04 WIF: Connected
00:00:04 HTP: Web server active on bridge5-0237 with IP address 192.168.10.147
00:00:05 RSL: stat/bridge5/STATUS = {“Status”:{“Module”:25,“FriendlyName”:[“Sonoff”],“Topic”:“bridge5”,“ButtonTopic”:“0”,“Power”:0,“PowerOnState”:3,“LedState”:1,“SaveData”:1,“SaveState”:1,“SwitchTopic”:“0”,“SwitchMode”:[0,0,0,0,0,0,0,0],“ButtonRetain”:0,“SwitchRetain”:0,“SensorRetain”:0,“PowerRetain”:0}}
00:00:05 RSL: stat/bridge5/STATUS1 = {“StatusPRM”:{“Baudrate”:19200,“GroupTopic”:“sonoffs”,“OtaUrl”:“http://thehackbox.org/tasmota/release/sonoff.bin",“RestartReason”:"Software/System restart”,“Uptime”:“0T00:00:04”,“StartupUTC”:“”,“Sleep”:50,“BootCount”:11,“SaveCount”:38,“SaveAddress”:“F6000”}}
00:00:05 RSL: stat/bridge5/STATUS2 = {“StatusFWR”:{“Version”:“6.4.1.9(sonoff)”,“BuildDateTime”:“2019-01-18T17:41:58”,“Boot”:6,“Core”:“2_4_2”,“SDK”:“2.2.1(cfd48f3)”}}
00:00:05 RSL: stat/bridge5/STATUS3 = {“StatusLOG”:{“SerialLog”:2,“WebLog”:2,“SysLog”:0,“LogHost”:“”,“LogPort”:514,“SSId”:[“productionwifi”,“”],“TelePeriod”:300,“SetOption”:[“10008009”,“558180C0”,“00000000”]}}
00:00:05 RSL: stat/bridge5/STATUS4 = {“StatusMEM”:{“ProgramSize”:523,“Free”:480,“Heap”:26,“ProgramFlashSize”:1024,“FlashSize”:1024,“FlashChipId”:“144051”,“FlashMode”:3,“Features”:[“00000809”,“0FDAE794”,“240383A0”,“23B617CE”,“00003BC0”]}}
00:00:05 RSL: stat/bridge5/STATUS5 = {“StatusNET”:{“Hostname”:“bridge5-0237”,“IPAddress”:“192.168.10.147”,“Gateway”:“192.168.10.252”,“Subnetmask”:“255.255.255.0”,“DNSServer”:“119.29.29.29”,“Mac”:“84:0D:8E:42:C0:ED”,“Webserver”:2,“WifiConfig”:4}}
00:00:05 RSL: stat/bridge5/STATUS6 = {“StatusMQT”:{“MqttHost”:“192.168.10.6”,“MqttPort”:1883,“MqttClientMask”:“DVES_%06X”,“MqttClient”:“DVES_42C0ED”,“MqttUser”:“tzachi1”,“MqttType”:1,“MAX_PACKET_SIZE”:1000,“KEEPALIVE”:15}}
00:00:05 RSL: stat/bridge5/STATUS7 = {“StatusTIM”:{“UTC”:“Thu Jan 01 00:00:05 1970”,“Local”:“Thu Jan 01 00:00:05 1970”,“StartDST”:“Thu Jan 01 00:00:00 1970”,“EndDST”:“Thu Jan 01 00:00:00 1970”,“Timezone”:“+00:00”,“Sunrise”:“22:52”,“Sunset”:“09:02”}}
00:00:05 RSL: stat/bridge5/STATUS10 = {“StatusSNS”:{“Time”:“1970-01-01T00:00:05”}}
00:00:05 RSL: stat/bridge5/STATUS11 = {“StatusSTS”:{“Time”:“1970-01-01T00:00:05”,“Uptime”:“0T00:00:04”,“Vcc”:3.483,“SleepMode”:“Dynamic”,“Sleep”:50,“LoadAvg”:19,“Wifi”:{“AP”:1,“SSId”:“productionwifi”,“BSSId”:“D8:15:0D:D7:E0:C2”,“Channel”:6,“RSSI”:54}}}
00:00:07 MQT: Attempting connection…
00:00:07 MQT: Connected
00:00:07 MQT: tele/bridge5/LWT = Online (retained)
00:00:07 MQT: cmnd/bridge5/POWER =
00:00:07 MQT: tele/bridge5/INFO1 = {“Module”:“Sonoff Bridge”,“Version”:“6.4.1.9(sonoff)”,“FallbackTopic”:“cmnd/DVES_42C0ED_fb/”,“GroupTopic”:“sonoffs”}
00:00:07 MQT: tele/bridge5/INFO2 = {“WebServerMode”:“Admin”,“Hostname”:“bridge5-0237”,“IPAddress”:“192.168.10.147”}
00:00:07 MQT: tele/bridge5/INFO3 = {“RestartReason”:“Software/System restart”}
00:00:08 MQT: stat/bridge5/STATUS = {“Status”:{“Module”:25,“FriendlyName”:[“Sonoff”],“Topic”:“bridge5”,“ButtonTopic”:“0”,“Power”:0,“PowerOnState”:3,“LedState”:1,“SaveData”:1,“SaveState”:1,“SwitchTopic”:“0”,“SwitchMode”:[0,0,0,0,0,0,0,0],“ButtonRetain”:0,“SwitchRetain”:0,“SensorRetain”:0,“PowerRetain”:0}}
00:00:08 MQT: stat/bridge5/STATUS1 = {“StatusPRM”:{“Baudrate”:19200,“GroupTopic”:“sonoffs”,“OtaUrl”:“http://thehackbox.org/tasmota/release/sonoff.bin",“RestartReason”:"Software/System restart”,“Uptime”:“0T00:00:06”,“StartupUTC”:“”,“Sleep”:50,“BootCount”:11,“SaveCount”:38,“SaveAddress”:“F6000”}}
00:00:08 MQT: stat/bridge5/STATUS2 = {“StatusFWR”:{“Version”:“6.4.1.9(sonoff)”,“BuildDateTime”:“2019-01-18T17:41:58”,“Boot”:6,“Core”:“2_4_2”,“SDK”:“2.2.1(cfd48f3)”}}
00:00:08 MQT: stat/bridge5/STATUS3 = {“StatusLOG”:{“SerialLog”:2,“WebLog”:2,“SysLog”:0,“LogHost”:“”,“LogPort”:514,“SSId”:[“productionwifi”,“”],“TelePeriod”:300,“SetOption”:[“10008009”,“558180C0”,“00000000”]}}
00:00:08 MQT: stat/bridge5/STATUS4 = {“StatusMEM”:{“ProgramSize”:523,“Free”:480,“Heap”:24,“ProgramFlashSize”:1024,“FlashSize”:1024,“FlashChipId”:“144051”,“FlashMode”:3,“Features”:[“00000809”,“0FDAE794”,“240383A0”,“23B617CE”,“00003BC0”]}}
00:00:08 MQT: stat/bridge5/STATUS5 = {“StatusNET”:{“Hostname”:“bridge5-0237”,“IPAddress”:“192.168.10.147”,“Gateway”:“192.168.10.252”,“Subnetmask”:“255.255.255.0”,“DNSServer”:“119.29.29.29”,“Mac”:“84:0D:8E:42:C0:ED”,“Webserver”:2,“WifiConfig”:4}}
00:00:09 MQT: stat/bridge5/STATUS6 = {“StatusMQT”:{“MqttHost”:“192.168.10.6”,“MqttPort”:1883,“MqttClientMask”:“DVES_%06X”,“MqttClient”:“DVES_42C0ED”,“MqttUser”:“tzachi1”,“MqttType”:1,“MAX_PACKET_SIZE”:1000,“KEEPALIVE”:15}}
00:00:09 MQT: stat/bridge5/STATUS7 = {“StatusTIM”:{“UTC”:“Thu Jan 01 00:00:09 1970”,“Local”:“Thu Jan 01 00:00:09 1970”,“StartDST”:“Thu Jan 01 00:00:00 1970”,“EndDST”:“Thu Jan 01 00:00:00 1970”,“Timezone”:“+00:00”,“Sunrise”:“22:52”,“Sunset”:“09:02”}}
00:00:09 MQT: stat/bridge5/STATUS10 = {“StatusSNS”:{“Time”:“1970-01-01T00:00:09”}}
00:00:09 MQT: stat/bridge5/STATUS11 = {“StatusSTS”:{“Time”:“1970-01-01T00:00:09”,“Uptime”:“0T00:00:06”,“Vcc”:3.486,“SleepMode”:“Dynamic”,“Sleep”:50,“LoadAvg”:56,“Wifi”:{“AP”:1,“SSId”:“productionwifi”,“BSSId”:“D8:15:0D:D7:E0:C2”,“Channel”:6,“RSSI”:52}}}
00:00:12 MQT: stat/bridge5/STATUS = {“Status”:{“Module”:25,“FriendlyName”:[“Sonoff”],“Topic”:“bridge5”,“ButtonTopic”:“0”,“Power”:0,“PowerOnState”:3,“LedState”:1,“SaveData”:1,“SaveState”:1,“SwitchTopic”:“0”,“SwitchMode”:[0,0,0,0,0,0,0,0],“ButtonRetain”:0,“SwitchRetain”:0,“SensorRetain”:0,“PowerRetain”:0}}
00:00:12 MQT: stat/bridge5/STATUS1 = {“StatusPRM”:{“Baudrate”:19200,“GroupTopic”:“sonoffs”,“OtaUrl”:“http://thehackbox.org/tasmota/release/sonoff.bin",“RestartReason”:"Software/System restart”,“Uptime”:“0T00:00:09”,“StartupUTC”:“”,“Sleep”:50,“BootCount”:11,“SaveCount”:38,“SaveAddress”:“F6000”}}
00:00:12 MQT: stat/bridge5/STATUS2 = {“StatusFWR”:{“Version”:“6.4.1.9(sonoff)”,“BuildDateTime”:“2019-01-18T17:41:58”,“Boot”:6,“Core”:“2_4_2”,“SDK”:“2.2.1(cfd48f3)”}}
00:00:12 MQT: stat/bridge5/STATUS3 = {“StatusLOG”:{“SerialLog”:2,“WebLog”:2,“SysLog”:0,“LogHost”:“”,“LogPort”:514,“SSId”:[“productionwifi”,“”],“TelePeriod”:300,“SetOption”:[“10008009”,“558180C0”,“00000000”]}}
00:00:12 MQT: stat/bridge5/STATUS4 = {“StatusMEM”:{“ProgramSize”:523,“Free”:480,“Heap”:23,“ProgramFlashSize”:1024,“FlashSize”:1024,“FlashChipId”:“144051”,“FlashMode”:3,“Features”:[“00000809”,“0FDAE794”,“240383A0”,“23B617CE”,“00003BC0”]}}
00:00:12 MQT: stat/bridge5/STATUS5 = {“StatusNET”:{“Hostname”:“bridge5-0237”,“IPAddress”:“192.168.10.147”,“Gateway”:“192.168.10.252”,“Subnetmask”:“255.255.255.0”,“DNSServer”:“119.29.29.29”,“Mac”:“84:0D:8E:42:C0:ED”,“Webserver”:2,“WifiConfig”:4}}
00:00:12 MQT: stat/bridge5/STATUS6 = {“StatusMQT”:{“MqttHost”:“192.168.10.6”,“MqttPort”:1883,“MqttClientMask”:“DVES_%06X”,“MqttClient”:“DVES_42C0ED”,“MqttUser”:“tzachi1”,“MqttType”:1,“MAX_PACKET_SIZE”:1000,“KEEPALIVE”:15}}
23:44:33 MQT: stat/bridge5/STATUS7 = {“StatusTIM”:{“UTC”:“Thu Jan 01 00:00:12 1970”,“Local”:“Thu Jan 01 00:00:12 1970”,“StartDST”:“Thu Jan 01 00:00:00 1970”,“EndDST”:“Thu Jan 01 00:00:00 1970”,“Timezone”:“+00:00”,“Sunrise”:“22:52”,“Sunset”:“09:02”}}
23:44:33 MQT: stat/bridge5/STATUS10 = {“StatusSNS”:{“Time”:“2019-04-08T23:44:33”}}
23:44:33 MQT: stat/bridge5/STATUS11 = {“StatusSTS”:{“Time”:“2019-04-08T23:44:33”,“Uptime”:“0T00:00:10”,“Vcc”:3.486,“SleepMode”:“Dynamic”,“Sleep”:50,“LoadAvg”:19,“Wifi”:{“AP”:1,“SSId”:“productionwifi”,“BSSId”:“D8:15:0D:D7:E0:C2”,“Channel”:6,“RSSI”:52}}}
23:44:38 MQT: stat/bridge5/STATUS4 = {“StatusMEM”:{“ProgramSize”:523,“Free”:480,“Heap”:23,“ProgramFlashSize”:1024,“FlashSize”:1024,“FlashChipId”:“144051”,“FlashMode”:3,“Features”:[“00000809”,“0FDAE794”,“240383A0”,“23B617CE”,“00003BC0”]}}
23:44:38 MQT: stat/bridge5/STATUS5 = {“StatusNET”:{“Hostname”:“bridge5-0237”,“IPAddress”:“192.168.10.147”,“Gateway”:“192.168.10.252”,“Subnetmask”:“255.255.255.0”,“DNSServer”:“119.29.29.29”,“Mac”:“84:0D:8E:42:C0:ED”,“Webserver”:2,“WifiConfig”:4}}
23:44:38 MQT: stat/bridge5/STATUS6 = {“StatusMQT”:{“MqttHost”:“192.168.10.6”,“MqttPort”:1883,“MqttClientMask”:“DVES_%06X”,“MqttClient”:“DVES_42C0ED”,“MqttUser”:“tzachi1”,“MqttType”:1,“MAX_PACKET_SIZE”:1000,“KEEPALIVE”:15}}
23:44:38 MQT: stat/bridge5/STATUS7 = {“StatusTIM”:{“UTC”:“Mon Apr 08 15:44:38 2019”,“Local”:“Mon Apr 08 23:44:38 2019”,“StartDST”:“Sun Mar 31 02:00:00 2019”,“EndDST”:“Sun Oct 27 03:00:00 2019”,“Timezone”:“+08:00”,“Sunrise”:“05:34”,“Sunset”:“18:17”}}
23:44:38 MQT: stat/bridge5/STATUS10 = {“StatusSNS”:{“Time”:“2019-04-08T23:44:38”}}
23:44:38 MQT: stat/bridge5/STATUS11 = {“StatusSTS”:{“Time”:“2019-04-08T23:44:38”,“Uptime”:“0T00:00:15”,“Vcc”:3.486,“SleepMode”:“Dynamic”,“Sleep”:50,“LoadAvg”:19,“Wifi”:{“AP”:1,“SSId”:“productionwifi”,“BSSId”:“D8:15:0D:D7:E0:C2”,“Channel”:6,“RSSI”:52}}}
23:44:38 MQT: tele/bridge5/STATE = {“Time”:“2019-04-08T23:44:38”,“Uptime”:“0T00:00:15”,“Vcc”:3.484,“SleepMode”:“Dynamic”,“Sleep”:50,“LoadAvg”:19,“Wifi”:{“AP”:1,“SSId”:“productionwifi”,“BSSId”:“D8:15:0D:D7:E0:C2”,“Channel”:6,“RSSI”:52}}
23:44:39 MQT: stat/bridge5/STATUS = {“Status”:{“Module”:25,“FriendlyName”:[“Sonoff”],“Topic”:“bridge5”,“ButtonTopic”:“0”,“Power”:0,“PowerOnState”:3,“LedState”:1,“SaveData”:1,“SaveState”:1,“SwitchTopic”:“0”,“SwitchMode”:[0,0,0,0,0,0,0,0],“ButtonRetain”:0,“SwitchRetain”:0,“SensorRetain”:0,“PowerRetain”:0}}
23:44:39 MQT: stat/bridge5/STATUS1 = {“StatusPRM”:{“Baudrate”:19200,“GroupTopic”:“sonoffs”,“OtaUrl”:“http://thehackbox.org/tasmota/release/sonoff.bin",“RestartReason”:"Software/System restart”,“Uptime”:“0T00:00:16”,“StartupUTC”:“2019-04-08T15:44:23”,“Sleep”:50,“BootCount”:12,“SaveCount”:39,“SaveAddress”:“F5000”}}
23:44:40 MQT: stat/bridge5/STATUS2 = {“StatusFWR”:{“Version”:“6.4.1.9(sonoff)”,“BuildDateTime”:“2019-01-18T17:41:58”,“Boot”:6,“Core”:“2_4_2”,“SDK”:“2.2.1(cfd48f3)”}}
23:44:40 MQT: stat/bridge5/STATUS3 = {“StatusLOG”:{“SerialLog”:2,“WebLog”:2,“SysLog”:0,“LogHost”:“”,“LogPort”:514,“SSId”:[“productionwifi”,“”],“TelePeriod”:300,“SetOption”:[“10008009”,“558180C0”,“00000000”]}}
23:44:40 MQT: stat/bridge5/STATUS4 = {“StatusMEM”:{“ProgramSize”:523,“Free”:480,“Heap”:23,“ProgramFlashSize”:1024,“FlashSize”:1024,“FlashChipId”:“144051”,“FlashMode”:3,“Features”:[“00000809”,“0FDAE794”,“240383A0”,“23B617CE”,“00003BC0”]}}
23:44:40 MQT: stat/bridge5/STATUS5 = {“StatusNET”:{“Hostname”:“bridge5-0237”,“IPAddress”:“192.168.10.147”,“Gateway”:“192.168.10.252”,“Subnetmask”:“255.255.255.0”,“DNSServer”:“119.29.29.29”,“Mac”:“84:0D:8E:42:C0:ED”,“Webserver”:2,“WifiConfig”:4}}
23:44:40 MQT: stat/bridge5/STATUS6 = {“StatusMQT”:{“MqttHost”:“192.168.10.6”,“MqttPort”:1883,“MqttClientMask”:“DVES_%06X”,“MqttClient”:“DVES_42C0ED”,“MqttUser”:“tzachi1”,“MqttType”:1,“MAX_PACKET_SIZE”:1000,“KEEPALIVE”:15}}
23:44:40 MQT: stat/bridge5/STATUS7 = {“StatusTIM”:{“UTC”:“Mon Apr 08 15:44:40 2019”,“Local”:“Mon Apr 08 23:44:40 2019”,“StartDST”:“Sun Mar 31 02:00:00 2019”,“EndDST”:“Sun Oct 27 03:00:00 2019”,“Timezone”:“+08:00”,“Sunrise”:“05:34”,“Sunset”:“18:17”}}
23:44:40 MQT: stat/bridge5/STATUS10 = {“StatusSNS”:{“Time”:“2019-04-08T23:44:40”}}
platform: mqtt
name: “Switch rf test”
command_topic: “cmnd/bridge5/RfCode”
payload_on: “948984”
payload_off: “948988”
state_topic: “stat/bridge5/RESULT”
value_template: ‘{{ value_json.RfCode }}’
state_on: “948984”
state_off: “948988”
retain: false
qos: 1