Hello,
i have an esp32 with tasmota sending mqtt data to home assistant.
Home assisstant receive 2 type or strings:
10:08:40.337 MQT: tele/BatteryMonitor/RESULT = {"SSerialReceived":":R51=1,\n:r51=1,27,3000,2000,0,0,0,100,0,0,3040,100,100,100,0,0,1,\r\n"}
10:08:40.716 MQT: tele/BatteryMonitor/RESULT = {"SSerialReceived":":R50=1,\n:r50=1,243,2532,1450,77914,272348,302933,166440,129,0,99,0,334,2518,\r\n"}
I only need the R50 string and the 51 only gives me problems when home assistant process it.
This is the configuration i use to handle the mqtt (ther are other 4 sensors after this one)
- trigger:
- platform: mqtt
topic: tele/BatteryMonitor/RESULT
encoding: ""
sensor:
- name: BatteryMonitor-Temperatura
unit_of_measurement: "°C"
state: "{{ (trigger.payload.split(',')[9] | float-100) }}"
How can i configure it to only tank in consideration the R50 string and not the R51?