Hallo,
ich versuche meine Solaranlage zu optimieren.
Dabei habe ich eine Automation erstellt. Ich gebe zu, ich habe mit ChatGPT zur Hilfe genommen.
Allerdings habe ich folgenden Fehler und komme einfach nicht weiter:
Automation ist nicht verfügbar
Auslöser:expected float for dictionary value @ data[‘below’]
Anbei meine Automation. Hat jemand einen Ansatz für mich?
LG ![]()
trigger:
- platform: numeric_state
entity_id: sensor.battery_level
above: "{{ (states('input_number.soc_on') | float(30)) }}" # Sicherstellen, dass der Wert als float interpretiert wird
for: "00:05:00"
- platform: state
entity_id: binary_sensor.pv_schwach
to: "on"
for: "00:10:00"
condition:
- condition: state
entity_id: binary_sensor.pv_schwach
state: "on"
- condition: template
value_template: >
{{ states('sensor.battery_level') | float > (states('input_number.soc_on') | float(30)) }}
- condition: or
conditions:
- condition: state
entity_id: input_boolean.heizstab_schwacher_tag_modus
state: "on"
- condition: template
value_template: "{{ not states('input_boolean.heizstab_schwacher_tag_modus') in ['off'] }}"
- condition: or
conditions:
- condition: state
entity_id: binary_sensor.netzimport_zu_hoch
state: "off"
- condition: template
value_template: "{{ not states('binary_sensor.netzimport_zu_hoch') in ['on'] }}"
