I had the V0.7 openmqttgateway.bin file flashed to the sonoff RF Bridge for a while now and every time i press a 433mhz keyfob the mqtt broker would give the read out:
home/OpenMQTTGateway/version
0.7
home/OpenMQTTGateway/SRFBtoMQTT/Raw
2C06014A042E4BDAB2
home/OpenMQTTGateway/SRFBtoMQTT
4971186
home/OpenMQTTGateway/SRFBtoMQTT/Tsyn
1127
home/OpenMQTTGateway/SRFBtoMQTT/Thigh
330
home/OpenMQTTGateway/SRFBtoMQTT/Tlow
1070
So it was very simple for Home Assistant to read the data needed (4971186) and perform the requested action in my case send a test message to my phone using simplepush app.
the home assistant code in automation.yaml looks like this:
- id: '1567803474042'
alias: System TEST
trigger:
- payload: '4971186'
platform: mqtt
topic: home/OpenMQTTGateway/SRFBtoMQTT
condition: []
action:
- data:
message: System TEST
service: notify.nosandroid
This works…
it also works for my shed door being openned, the front door bell being pressed etc. Which then in turn i have different actions like google say commands for a caller at front door.
Anyway, i digress.
I then upgraded the firmware of the RF Bridge to 0.9.3 because if the power is disconnected from the v0.7 it might reconnect to the network and might allow recieved data to be read… so it is a bit twitchy.
I was really hoping to upgrade the firmware but now since i have done it the broker now recieves the data as:
home/OpenMQTTGateway/version
v0.9.3
home/OpenMQTTGateway/SRFBtoMQTT
{"raw":"2BE8014A042E4BDAB2","delay":1124,"val_Tlow":330,"val_Thigh":1070,"value":4971186}
now due to this all being written to one line, the H.A will no longer recognise the payload command to activate the actions.
How do i get the single line readouts that were happening on 0.7 version? (without going back to 0.7 lol)
the only bits i have installed are mqtt.fx and then the web UI for the rfbridge OMG and H.A lovelace UI.
please help.