Hello,
i’m trying to configure my deebot robot with mqtt using the Node-Red integration in HA. The problem is that i get many values within the same payload that i can’t split and so i’m not able to create entities for each value.
This is what i get from mqtt:
That’s the full message from mqtt:
{"type":"MoppingSystemInfo","value":{"cleanStatus":"stop","cleanInfo":{"level":2},"waterInfo":{"enabled":false,"level":2}}}
{"type":"CurrentUsedCustomAreaValues","value":""}
{"type":"CurrentUsedSpotAreas","value":""}
{"type":"CleanReport","value":"stop"}
{"type":"ChargeState","value":"charging"}
{"type":"SleepStatus","value":"1"}
{"type":"LifeSpan","value":{"filter":83.93,"side_brush":-0.42,"main_brush":51.92}}
{"type":"BatteryInfo","value":100,"unit":"%"}
And that’s how i try to edit configuration.yaml but it’s not working.
mqtt:
sensor:
- name: "filter_left"
state_topic: "vacuum/sensors"
unit_of_measurement: ""
value_template: "{{ value_json['value']['Lifespan']['value']}}"
- name: "sidebrush"
state_topic: "vacuum/sensors"
unit_of_measurement: ""
value_template: "{{ value_json['value']['BatteryInfo']['value']}}"
Thanks in advance to everyone will help.