Hi!
I have a remote device that I’ve configured to send me status information in a JSON string via MQTT. I’d like to parse selected fields to HA entity state but am not clear on how this maps. I have played in the Jijnja templates section so have a loose comprehension on structure, but I don’t understand how this maps to an entity value. For example:
The JSON could be: {"status": "active", "unnecessary_field", "value", "network_speed": 400, "unnecessary_field_2": "value2", "current_processes": 125}
etc.
I’d like to create an entity (eg “server 1”) and then populate state. Is it something like:
- platform: mqtt
name: "server1 Network speed"
state_topic: remote/server1
value_template: "{{ value_json.network_speed }}"
?
TIA.