I want to add a sensor from REST API to home assistant. I have added the following config to the sensors:
array and configuration.yaml. Config validation passes, but i cant see the sensor in HA. Also I found nothing in the logs.
Anybody see what could be the probem here? The API configuration is correct, I am using the same method to get the data into Zabbix
- platform: rest
resource: https://192.168.120.90/redfish/v1/Chassis/1/Power
method: GET
headers:
Content-Type: application/json
Authorization: Basic xxxxxxxxxxxxx
json_attributes_path: PowerControl[0].PowerConsumedWatts
unit_of_measurement: 'W'
unique_id: sensor.smc-nas_power
name: "SMC NAS Power consumption"
unit_of_measurement: 'W'