Hi ALl,
Im trying to add this Json info into 1 REST Sensor.
Probably something wrong with "json_attributes_path: "$[0]"
part. But I don’t know what.
I only get now the version number.
{
"firmware": "milight-hub",
"version": "1.10.5",
"ip_address": "192.168.100.70",
"reset_reason": "Software/System restart",
"variant": "nodemcuv2",
"free_heap": 15072,
"arduino_version": "2_4_2",
"queue_stats": {
"length": 0,
"dropped_packets": 51
}
}
###########################################################################################
#
# SENSOR REST
#
# https://www.home-assistant.io/integrations/rest/
#
###########################################################################################
---
platform: rest
resource: http://192.168.100.70/about
name: "Milight About"
value_template: "{{ value_json.version }}"
json_attributes_path: "$[0]"
json_attributes:
- "firmware"
- "version"
- "ip_address"
- "reset_reason"
- "variant"
- "free_heap"
- "arduino_version"