I am new to the Home Assistant community. If this thread is in the wrong category, i am thankful for move it to the right one or post a Link to an existing thread.
My Problem is the following:
My parents have bought a PV-System with a battery system. Unfortunately i no integration for the inverter (Kostal PIKO) and the battery (Sonnen) available. They are manged by a proprietary system witch has no connection to Home Assistant. In the Internet i found the work of others to get the information of the inverter and battery.
When i copied the solution right in my configuration.yaml file it worked. Then i moved the API-Token in the secrets.yaml file and it still worked. But to keep every independent input clean and organized i wanted to move every component in its own yaml file. i.e. âinverters.yamlâ. With its current Power, daly energy production etc.
The last working configuration.yaml file:
# Loads default set of integrations. Do not remove.
default_config:
# Load frontend themes from the themes folder
frontend:
themes: !include_dir_merge_named themes
automation: !include automations.yaml
script: !include scripts.yaml
scene: !include scenes.yaml
# Battery sensors:
rest:
- resource: http://192.168.1.113:80/api/v2/latestdata
method: GET
headers:
User-Agent: Home Assistant
Content-Type: application/json
Auth-Token: secret! SonnenBatterie_API_AUTH_Token
scan_interval: 1
timeout: 60
sensor:
- name: solar_power_w
value_template: '{{ value_json["Production_W"] }}'
unit_of_measurement: W
device_class: power
- name: battery_soc
value_template: '{{ value_json["USOC"] }}'
unit_of_measurement: "%"
device_class: battery
- name: battery_consumption_production_diff
value_template: '{{ value_json["Pac_total_W"] }}'
unit_of_measurement: W
device_class: power
- name: house_consumption
value_template: '{{ value_json["Consumption_W"] }}'
unit_of_measurement: W
device_class: power
- name: battery_capacity
value_template: '{{ value_json["FullChargeCapacity"] }}'
unit_of_measurement: Wh
device_class: energy
- name: battery_soc_energy
value_template: '{{ (value_json["USOC"]|float / 100 * value_json["FullChargeCapacity"]|float)|round(0)|int }}'
unit_of_measurement: Wh
device_class: energy
Then i copied every thing from # Battery sensors: down into the sonnenbatteries.yaml and added the following line under scene: !include scenes.yaml
sonnenbatterie: !include sonnenbatteries.yaml
When i check my configuration with the Devtool i get following error message:
Integration error: sonnenbatterie - Integration âsonnenbatterieâ not found.
I am grateful for any help advise. Have a nice Week.
Adrian