I’ve flashed a sonoff rf bridge with tasmota following @DrZzs excellent videos, I’ve created a Home Assistant User for mqtt, which I’ve entered into the config of the rf bridge.
Looking at the bridge’s console, I can see the sensor events being generated.
It shows like this:
15:14:38 MQT: tele/rfbridge/RESULT = {"RfReceived":{"Sync":14110,"Low":480,"High":1380,"Data":"12345E","RfKey":"None"}}
15:14:54 MQT: tele/rfbridge/RESULT = {"RfReceived":{"Sync":14040,"Low":480,"High":1390,"Data":"12345A","RfKey":"None"}}
15:15:04 APP: Serial logging disabled
15:15:19 MQT: tele/rfbridge/STATE = {"Time":"2019-06-03T15:15:18","Uptime":"0T00:10:19","Vcc":3.141,"SleepMode":"Dynamic","Sleep":50,"LoadAvg":28,"Wifi":{"AP":1,"SSId":"SSID","BSSId":"","Channel":1,"RSSI":100,"LinkCount":1,"Downtime":"0T00:00:04"}}
15:15:47 MQT: tele/rfbridge/RESULT = {"RfReceived":{"Sync":14060,"Low":480,"High":1380,"Data":"12345E","RfKey":"None"}}
15:15:53 MQT: tele/rfbridge/RESULT = {"RfReceived":{"Sync":14100,"Low":480,"High":1390,"Data":"12345A","RfKey":"None"}}
For me as an unexperienced, that looks ok.
Looking in Mosquitto log (not quiet logs)
1559571293: |-- mosquitto_auth_acl_check(..., client id not available, homeassistant, tele/rfbridge/RESULT, MOSQ_ACL_READ)
1559571293: |-- aclcheck(homeassistant, tele/rfbridge/RESULT, 1) CACHEDAUTH: 0
1559571318: |-- mosquitto_auth_acl_check(..., client id not available, usermqtt, tele/rfbridge/STATE, MOSQ_ACL_WRITE)
1559571318: |-- url=http://127.0.0.1:8080/superuser
1559571318: |-- data=username=usermqtt&password=&topic=&acc=-1&clientid=
1559571318: |-- aclcheck(usermqtt, tele/rfbridge/STATE, 2) SUPERUSER=Y by http
1559571318: |-- Cached [E38221D75E70ACACA6850D2A744F72719044E46F] for (client id not available,usermqtt,2)
1559571347: |-- mosquitto_auth_acl_check(..., client id not available, usermqtt, tele/rfbridge/RESULT, MOSQ_ACL_WRITE)
1559571347: |-- aclcheck(usermqtt, tele/rfbridge/RESULT, 2) CACHEDAUTH: 0
1559571347: |-- mosquitto_auth_acl_check(..., client id not available, homeassistant, tele/rfbridge/RESULT, MOSQ_ACL_READ)
1559571347: |-- aclcheck(homeassistant, tele/rfbridge/RESULT, 1) CACHEDAUTH: 0
1559571353: |-- mosquitto_auth_acl_check(..., client id not available, usermqtt, tele/rfbridge/RESULT, MOSQ_ACL_WRITE)
1559571353: |-- aclcheck(usermqtt, tele/rfbridge/RESULT, 2) CACHEDAUTH: 0
1559571353: |-- mosquitto_auth_acl_check(..., client id not available, homeassistant, tele/rfbridge/RESULT, MOSQ_ACL_READ)
1559571353: |-- aclcheck(homeassistant, tele/rfbridge/RESULT, 1) CACHEDAUTH: 0
Again, as a completely inexperienced mqtt user, I think this looks ok, not really sure about the ‘cliend it not available’ thing.
So I made some binary sensors:
- platform: mqtt
state_topic: “tele/rfbridge/RESULT”
name: “Entré dør”
value_template: ‘{{value_json.RFReceived.Data}}’
payload_on: “12345A”
payload_off: “12345E”
device_class: door
qos: 1
But I don’t see the state change in Home Assistant? Can anybody enlighten the dimwitted?