so, ich bin wieder soweit, wie heute morgen. Backup angelegt jetzt möchte ich das so organisieren, wie von Barry Ricoh
empfohlen. Also habe ich die includes erstellt und die dateien da drin. Meine configuration.yaml sieht momentan so aus:
der Abschnitt rest: habe ich so irgendwo rauskopiert, ob das so stimmt weiß ich nicht, den brauche ich vermutlich, weil sonst nichts da von der sollarbatterie und Panelen vorhanden wäre?
sollte ich den Bereich template hier rausnehmen und in die Datei tamplate.yaml speichern?
in der customize.yaml habe ich nichts.
empfohlen. Also habe ich die includes erstellt und die dateien da drin. Meine configuration.yaml sieht momentan so aus:
YAML:
# Loads default set of integrations. Do not remove.
default_config:
automation: !include automations.yaml
script: !include scripts.yaml
scene: !include scenes.yaml
knx: !include include/knx.yaml
template: !include include/template.yaml
cover: !include include/cover.yaml
sensor: !include include/sensors.yaml
group: !include include/group.yaml
homeassistant:
customize: !include customize.yaml
# Load frontend themes from the themes folder
frontend:
themes: !include_dir_merge_named themes
duckdns:
domain: michaelf.duckdns.org
access_token: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
rest:
# Batterie
- resource: http://192.168.0.75:80/api/v2/latestdata
method: GET
headers:
User-Agent: Home Assistant
Content-Type: application/json
Auth-Token: 738011a8-849a-4bd5-941a-36b3f4366389
scan_interval: 30
timeout: 15
sensor:
# Aktuelle Stromproduktion
- name: solar_power_w
value_template: '{{ value_json["Production_W"] }}'
unit_of_measurement: W
device_class: power
# Aktueller Ladestand in %
- name: battery_soc
value_template: '{{ value_json["USOC"] }}'
unit_of_measurement: '%'
device_class: battery
# Aktueller Ladestand in Wh
- 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
# Hausverbrauch
- name: house_consumption
value_template: '{{ value_json["Consumption_W"] }}'
unit_of_measurement: W
device_class: power
# Kapazität der Batterie
- name: battery_capacity
value_template: '{{ value_json["FullChargeCapacity"] }}'
unit_of_measurement: Wh
device_class: energy
# Differenz Erzeugung minus Hausverbrauch = Überschuss
- name: battery_setpoint_w
value_template: '{{ value_json["SetPoint_W"] }}'
unit_of_measurement: W
device_class: power
# Batterieladung
- name: battery_consumption_production_diff
value_template: '{{ value_json["Pac_total_W"] }}'
unit_of_measurement: W
device_class: power
# Netzeinspeisung = Überschuss - Batterieladung
- name: battery_einspeisung_netz
value_template: '{{ (value_json["SetPoint_W"]|float - value_json["Pac_total_W"]|float ) }}'
unit_of_measurement: W
device_class: power
# Zeitstempel
- name: battery_timestamp
value_template: '{{ value_json["Timestamp"] }}'
template:
sensor:
#Sonnen-Batterie
#Stromerzeugung
- name: "batterie_solarproduktion_watt"
unique_id: "batterie_solarproduktion_watt"
unit_of_measurement: "W"
device_class: "power"
state: "{{ states('sensor.batterie_solar_aktuell') | float(0) }}"
der Abschnitt rest: habe ich so irgendwo rauskopiert, ob das so stimmt weiß ich nicht, den brauche ich vermutlich, weil sonst nichts da von der sollarbatterie und Panelen vorhanden wäre?
sollte ich den Bereich template hier rausnehmen und in die Datei tamplate.yaml speichern?
in der customize.yaml habe ich nichts.