#Error handling

1 messages · Page 1 of 1 (latest)

pastel dragon
#

I have automation to turn on power and light once vibration is detected under desk.

The devices are selected through my room devices, I.e all power switches in my room.
I unplugged one for some reason from the socket, and now all sorts of automations silently fail, I.e power plug step is right before light step and so the light step doesn't get executed.

Isn't the whole point of selecting devices by location intended to solve the whole need to meddle with what device is available, just pick all you can?
Also why stop running the rest of the script if one step is "partially" run (it was able to power on one out of two sockets, but the target was the room, so it achieved what was needed, all are turned off )

whole tapir
#

Without being able to have a look at the automation (YAML code) we can only guess what's going wrong

pastel dragon
#
alias: xyz
description: ""
triggers:
  - type: vibration
    device_id: 123
    entity_id: 456
    domain: binary_sensor
    trigger: device
conditions:
  - condition: time
    after: input_datetime.bedtime
    before: input_datetime.wakeup
actions:
  - action: switch.turn_off
    metadata: {}
    data: {}
    target:
      area_id: me
  - action: light.turn_off
    metadata: {}
    data: {}
    target:
      area_id: me
mode: single
#

In traces view the action.light.turn_off doesn't even get executed since one of power switches from "me" area_id has been unplugged

fervent ospreyBOT
#

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.

pastel dragon
#

Finally after some time the trace mentions "failed to send request: device did not respond" (!)

#

But should it even care about that?