#How to get my automation work correctly

1 messages · Page 1 of 1 (latest)

untold hornet
#

I have an automation which should switch a shelly plug on battery SOC. Belw 30% it shoudl switch on, above 80% it shoudl switch off. As easy as that - but I don't see my automation switching on.. what can be the reason?

alias: Wandtablet Ladenautomatik
triggers:
  - entity_id: sensor.dein_batterie_sensor
    above: 80
    id: Ausschalten
    trigger: numeric_state
  - entity_id: sensor.dein_batterie_sensor
    below: 30
    id: Einschalten
    trigger: numeric_state
actions:
  - choose:
      - conditions:
          - condition: trigger
            id: Einschalten
        sequence:
          - target:
              entity_id: switch.deine_steckdose
            action: switch.turn_on
            data: {}
      - conditions:
          - condition: trigger
            id: Ausschalten
        sequence:
          - target:
              entity_id: switch.deine_steckdose
            action: switch.turn_off
            data: {}
mode: single
kindred terrace
#

Please format it properly

chilly flumeBOT
#

To format your text as code, enter three backticks on the first line, press Enter for a new line, paste your code, press Enter again for another new line, and lastly three more backticks.
```yaml
example: here
```
Don't forget you can edit your post rather than repeatedly posting the same thing.

stone shore
#
untold hornet
#

Isn't that exactly what my yaml does (should do) as well? As you can see in my SOC battery trace the SOC drops below 20%, but it doesn't fire ( one would see an increase in SOC then).