Automation fail to restart

Hi

I have a simple automation but doesn’t work properly for some reason. Once the battery level drops below 65 the turn off trigger properly but when battery goes above it doesn’t turn back anymore. I get a became unavailable message. Once I trigger it manually it works fine until it drops again or the day ends. It doesn’t start in the morning either, only manually.

Any ideas?
See screen shots

Hello tikody,

If you don’t share your YAML properly formatted using the </> key in the editor we really cannot help much.
Pictures do not show well here and are like impossible to troubleshoot with.

Sorry meant to do that

alias: Heater on under 20.4
description: ""
triggers:
  - trigger: numeric_state
    entity_id:
      - sensor.thermostat_current_temperature
    below: 20.4
  - trigger: numeric_state
    entity_id:
      - sensor.growatt_spf_x_2_battery_state_of_charge
    above: 65
conditions:
  - condition: time
    after: "06:00:00"
    before: "23:00:00"
actions:
  - type: turn_on
    device_id: 74d659dff82c9de8c34fdb69e4484ead
    entity_id: f0bf8d72f2ef43436c579b956e929898
    domain: switch
mode: single

alias: Heater off a ove 20.6
description: ""
triggers:
  - trigger: numeric_state
    entity_id:
      - sensor.thermostat_current_temperature
    above: 20.6
  - trigger: numeric_state
    entity_id:
      - sensor.growatt_spf_x_2_battery_state_of_charge
    below: 65
conditions: []
actions:
  - type: turn_off
    device_id: 74d659dff82c9de8c34fdb69e4484ead
    entity_id: f0bf8d72f2ef43436c579b956e929898
    domain: switch
mode: single

If it goes above 65 outside of that time condition, it will not register a trigger.

I would consider a single automation that checks for any change of the 2 trigger entities, then a series of choose statements sorting out the possible conditions you want to act on.