Quantcast
Channel: Configuration - Home Assistant Community
Viewing all articles
Browse latest Browse all 96121

Create 1 sensor reading son

$
0
0

@poudenes wrote:

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"

Posts: 2

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 96121

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>