Hi there,
tried to make an ESPhome internal setup to keep the temperature and humidity at the same time within a given range and had no success.
Now I tried to create a looped automation within HA and outside ESPhome …
alias: Filament klimatisieren (PLA)
trigger:
- platform: state
entity_id: input_boolean.filament_vorwaermen
to: "on"
condition:
- condition: and
conditions:
- condition: or
conditions:
- condition: state
entity_id: input_boolean.beide_filadryer_vorwaermen
state: "on"
- condition: state
entity_id: input_select.filadryerwahl
state: Filadryer 2
- condition: or
conditions:
- condition: state
entity_id: input_select.filamentwahl
state: "PLA (weiß/1.75) : Form Futura"
- condition: state
entity_id: input_select.filamentwahl
state: "PLA (schwarz/1.75) : Form Futura"
- condition: state
entity_id: input_select.filamentwahl
state: "PLA (silber/1.75) : Prusament"
action:
- repeat:
while:
- condition: state
entity_id: input_boolean.filament_vorwaermen
state: "on"
sequence:
- if:
- condition: or
conditions:
- condition: numeric_state
entity_id: sensor.keller_filadryer2_temperatur
below: 45
- condition: numeric_state
entity_id: sensor.keller_filadryer2_luftfeuchtigkeit
above: 30
then:
- service: switch.turn_on
entity_id: switch.keller_filadryer2_heizung
- wait_for_trigger:
- platform: numeric_state
entity_id: sensor.keller_filadryer2_temperatur
above: 45
- platform: numeric_state
entity_id: sensor.keller_filadryer2_luftfeuchtigkeit
below: 30
- service: switch.turn_off
entity_id: switch.keller_filadryer2_heizung
mode: single
… that seems to work…
… but seems also to crash HA:
23-08-02 18:46:34 ERROR (MainThread) [supervisor.homeassistant.api] Error on call http://172.30.32.1:8123/api/config:
23-08-02 18:48:46 WARNING (MainThread) [supervisor.homeassistant.websocket] Connection is closed
23-08-02 18:48:46 ERROR (MainThread) [supervisor.homeassistant.api] Error on call http://172.30.32.1:8123/api/config: [Errno 104] Connection reset by peer
23-08-02 18:48:51 WARNING (MainThread) [supervisor.misc.tasks] Watchdog miss API response from Home Assistant
So far, however, this is only a guess, because this error and associated restart only occur when automation is running, but …
- … how can I prove a definite connection in the logs?
- … where is the error in the code of the automation?
Any help would be highly appreciated!
Thank you all!
Kay