
Well I'm sitting here getting my butt kicked by a raspberry pi, docker, home assistant, basically the whole lot. For someone that's been building windows machines for people for 27 years now its sad feeling this inept but we are where we are.
Please note. The most I know about APIs is how to spell it. Please explain it like I'm 5 and spend much of my day sucking on my toe.
Anyway, my brother helped me get some of the cloud data into HA with the following inserted into my configuration.yaml using the below
# Example configuration.yaml entry Inv Temps
rest:
scan_interval: 60
resource: https://api.givenergy.cloud/v1/inverter/CE2105xxxx/system-data/latest
headers:
Authorization: Bearer stupidly long api key here
Content-Type: application/json
Accept: application/json
sensor:
- name: "CE2105xxxx Inv Temp"
device_class: temperature
unit_of_measurement: "°C"
value_template: "{{ value_json.data.inverter.temperature }}"
This is all well and good but I have 3 inverters that I want to monitor. If I just copy this block 3 times and make changes, sensors start disappearing. I'd like to add these sensors into a sensors.yaml, however I can't even do something as simple as that on my own.
HA's config validation spits out the following
Invalid config for [sensor]: required key not provided @ data['platform']. Got None. (See /config/configuration.yaml, line 8).
line 8 being the one directly above my "sensor: !include sensors.yaml" line in configuration.yaml
Help me Obi Wan Kenobi, you're my only hope before I throw it all out of the window
Don't get me started on givtcp. That's a different argument I'll have with myself in time.