Follow along with the video below to see how to install our site as a web app on your home screen.
Anmerkung: This feature may not be available in some browsers.
alias: Solarsteuerung
description: ""
trigger:
- platform: state
entity_id:
- sensor.esp_test1
condition: null
action:
- service: >-
{% set hysterese = states('input_number.hysterese') %} {% set solar =
states('sensor.esp_test1')|float(0) %} {% set pool =
states('sensor.1_wire_hub_temperature')|float(0) %} {% if solar == pool %}
switch.turn_off {% elif hysterese + solar > pool %} switch.turn_on {%
endif %}
data: {}
target:
entity_id: switch.solar_pumpe
mode: single
alias: Solarsteuerung
description: ""
trigger:
- platform: state
entity_id:
- sensor.esp_test1
- input_number.hysterese
- sensor.1_wire_hub_temperature
condition: null
action:
- service: >-
{% set hysterese = states('input_number.hysterese') %} {% set solar =
states('sensor.esp_test1')|float(0) %} {% set pool =
states('sensor.1_wire_hub_temperature')|float(0) %} {% if solar <= pool %}
switch.turn_off {% elif hysterese + solar > pool %} switch.turn_on {%
endif %}
data: {}
target:
entity_id: switch.solar_pumpe
mode: single
alias: Solarsteuerung
mode: single
trigger:
- platform: numeric_state
entity_id: sensor.esp_test1
value_template: "{{ state.state - states('sensor.1_wire_hub_temperature')|float(0) }}"
above: 5
id: An
- platform: numeric_state
entity_id: sensor.esp_test1
value_template: "{{ state.state - states('sensor.1_wire_hub_temperature')|float(0) - 0.1 }}"
id: Aus
for:
hours: 0
minutes: 5
seconds: 0
below: 0
condition: []
action:
- choose:
- conditions:
- condition: trigger
id: An
sequence:
- service: switch.turn_on
data: {}
target:
entity_id: switch.solar_pumpe
- conditions:
- condition: trigger
id: Aus
sequence:
- service: switch.turn_off
data: {}
target:
entity_id: switch.solar_pumpe
alias: Solarsteuerung
trigger:
- platform: numeric_state
entity_id: sensor.esp_test1
value_template: "{{ state.state - states('sensor.1_wire_hub_temperature')|float(0) }}"
above: 5
id: An
- platform: numeric_state
entity_id: sensor.esp_test1
value_template: "{{ state.state - states('sensor.1_wire_hub_temperature')|float(0) - 0.1 }}"
id: Aus
for:
hours: 0
minutes: 5
seconds: 0
below: 0
condition: []
action:
- choose:
- conditions:
- condition: trigger
id: An
sequence:
- service: switch.turn_on
data: {}
target:
entity_id: switch.solar_pumpe
- conditions:
- condition: trigger
id: Aus
sequence:
- service: switch.turn_off
data: {}
target:
entity_id: switch.solar_pumpe
mode: single
das ist keine Frage, sondern eine potentielle Fehlerkorrektur. Du rechnest Plus.hysterese - solar?
{% if solar == pool %}
switch.turn_off
{% elif hysterese + solar > pool %}
switch.turn_on
{% endif %}
alias: Solarsteuerung
trigger:
- platform: state
entity_id:
- sensor.1_wire_hub_temperature
- platform: state
entity_id:
- sensor.esp_2_pool
condition:
- condition: template
value_template: >-
{{ states('sensor.1_wire_hub_temperature')|float(10) >
((states('sensor.esp_2_pool')|float(10)) +
(states('input_number.hysterese'))|float(5)) }}
- condition: time
after: "08:30:00"
before: "19:00:00"
weekday:
- mon
- tue
- wed
- thu
- fri
- sat
- sun
- condition: state
entity_id: input_boolean.poolmaster
state: "on"
action:
- service: switch.turn_on
data: {}
target:
entity_id: switch.solar_pumpe
- delay:
hours: 0
minutes: 3
seconds: 0
milliseconds: 0
- service: switch.turn_off
data: {}
target:
entity_id: switch.solar_pumpe
mode: single