Hi Guys
Looking for idea how to parse rolling json file, the json file look like this:
<response><b0> Salt Level </b0><b1> 3.4 g/</b1></response>
then 5 second later
<response><b0> Saturday </b0><b1> 08 49</b1></response>
then 5 second later
<response><b0> Pool Chlorinat</b0><b1>or 20% </b1></response>
then 5 second later
<response><b0> Heater1 </b0><b1> Auto Con</b1></response>
then 5 second later
<response><b0> Pool Temp 27Ć</b0><b1>C </b1></response>
and so on
<response><b0> Air Temp 16Ć</b0><b1>C </b1></response>
I just need to catch salt level value, I successfully get data like this:
sensor:
- name: "JSON Pool Keypad Status"
json_attributes:
- b0
- b1
value_template: "OK"
json_attributes_path: "$.response"
force_update: true
- name: Title
value_template: "{{ value_json.response.b0 }}"
- name: Value
value_template: "{{ value_json.response.b1 }}"
but Iām unable to isolate my salt level value, any clue?