Thanks for the reply but just cannot get it to send back to espRFLinkMQTT:
This is in espRFLinkMQTT when using the physical thermostat so RFLink is seeing it and espRFLinkMQTT is seeing it
Switching Off:
Raw Data: 20;F0;X2D;ID=000c74e;SWITCH=00;CMD=ON;RC=00fe;S=01;EXT=Tybox;BAT=OK;
MQTT Topic: rflink/X2D-000c74e
MQTT JSON: {SWITCH:00,CMD:ON,SWITCH00:ON,RC:00fe,S:01,EXT:Tybox,BAT:OK}|
Switching On:
Raw Data: 20;EF;X2D;ID=000c74e;SWITCH=00;CMD=ON;RC=1cfe;S=0c;EXT=Tybox;BAT=OK;
MQTT Topic: rflink/X2D-000c74e
MQTT JSON: {SWITCH:00,CMD:ON,SWITCH00:ON,RC:1cfe,S:0c,EXT:Tybox,BAT:OK}
I then get the following in HA when I listen to rflink/#
Message 3 received on rflink/X2D-000c74e at 19:01:
{“SWITCH”:“00”,“CMD”:“ON”,“SWITCH00”:“ON”,“RC”:1cfe,“S”:0c,“EXT”:Tybox,“BAT”:“OK”}
20;32;X2D;ID=000c74e;SWITCH=00;CMD=ON;RC=1cfe;S=0c;EXT=Tybox;BAT=OK;
Message 2 received on rflink/X2D-000c74e at 19:01:
{“SWITCH”:“00”,“CMD”:“ON”,“SWITCH00”:“ON”,“RC”:00fe,“S”:01,“EXT”:Tybox,“BAT”:“OK”}
20;32;X2D;ID=000c74e;SWITCH=00;CMD=ON;RC=00fe;S=0c;EXT=Tybox;BAT=OK;
So, HA is seeing the MQTT coming into it
The only bits that change when using the physical thermostat is the part after 20; and is totally random and then “RC”:00cfe to “RC”:1cfe and back again which is how I figured which is the on/off above
This is my switch
- platform: template
switches:
esprfmqtt_switch1:
friendly_name : espRFLinkMQTT Switch1
value_template: "{{ is_state('sensor.mqttswitch1', 'on') }}"
turn_on:
- service: mqtt.publish
data:
payload: '20;32;X2D;ID=000c74e;SWITCH=00;CMD=ON;RC=1cfe;S=0c;EXT=Tybox;BAT=OK;'
topic: rflink/cmd
- service: mqtt.publish
data:
payload: '{"SWITCH":"00","CMD":"ON","SWITCH00":"ON","RC":1cfe,"S":0c,"EXT":Tybox,"BAT":"OK"}'
topic: 'rflink/X2D-000c74e'
turn_off:
- service: mqtt.publish
data:
payload: '20;32;X2D;ID=000c74e;SWITCH=00;CMD=ON;RC=00fe;S=0c;EXT=Tybox;BAT=OK;'
topic: rflink/cmd
- service: mqtt.publish
data:
payload: '{"SWITCH":"00","CMD":"ON","SWITCH00":"ON","RC":00fe,"S":01,"EXT":Tybox,"BAT":"OK"}'
topic: 'rflink/X2D-000c74e'
unique_id: 286e7551-0e78-4527-b8dd-34085ddcd740
I can see the message being sent in HA but does not seem to get to espRFLinkMQTT as I get nothing on the Home or Live Data pages
I am sure its to do with the payload but cannot figure it out
Many thanks