The script just stops when these scenes can’t activate. Anyone have any ideas on what I can try.
I’d check out
Without your YAML it’s hard to evaluate, but at first glance you need a secondary action when it fails.
Thank you so much for your reply. Here’s the complete script. Are any of the continue on error’s right? It doesn’t anything about a secondary action in the doc. Is that the next action? It looks to me I’m just setting a boolean within the action that is failing and then it will continue on.
Thank you for taking the time to reply and look.
Rich
sequence:
- type: turn_off
continue_on_error: true
device_id: 1d67bf7da857313dc78350224ea02223
entity_id: switch.primary_bedroom_wall_switch2
domain: switch
- type: turn_off
continue_on_error: true
device_id: e8a0ad94ec29e7ad7ca0f9da49c6ac93
entity_id: light.signify_netherlands_b_v_lca007_huelight_3
domain: light
- type: turn_off
continue_on_error: true
device_id: eae58a6194bf6b2f9613be3b3d91ffa7
entity_id: light.entrance_hallway_light
domain: light
- type: turn_off
continue_on_error: true
device_id: ab95fe1d908ba2e5b01f7ab56847ea94
entity_id: light.chandelier_2
domain: light
- type: turn_off
continue_on_error: true
device_id: 5176837c78000946c0413594ce57ce1d
entity_id: light.upstairs_hall_light
domain: light
- continue_on_error: true
data: {}
target:
entity_id:
- scene.kitchen_off
- scene.basement_off
- scene.family_room_off
action: scene.turn_on
- type: turn_off
continue_on_error: true
device_id: ac1c90deacdd0e7dc13bad3f150b85d4
entity_id: light.jenny_night_stand_light_level_light_color_on_off
domain: light
- type: turn_off
continue_on_error: true
device_id: 200450bc847939ad1fabf41976c32148
entity_id: 25af89fa41a218b4e854f0d2ec0e4560
domain: light
- type: turn_off
continue_on_error: true
device_id: ea082379eff378b2e86dc67d1a22dd8b
entity_id: light.shell_light
domain: light
- type: turn_off
continue_on_error: true
device_id: 160cf890e3576e381bd7ff077df9a065
entity_id: light.shower_light_2
domain: light
- type: turn_off
continue_on_error: true
device_id: 5176837c78000946c0413594ce57ce1d
entity_id: light.upstairs_hall_light
domain: light
- type: turn_off
continue_on_error: true
device_id: 686c55f9c2d8b91b4e33b5b8e3ad4ecf
entity_id: switch.jennys_dresser_on_off
domain: switch
- type: turn_off
continue_on_error: true
device_id: d4b0dceb5dae3b681373bab835182d06
entity_id: switch.sitting_room_closet
domain: switch
- type: turn_off
continue_on_error: true
device_id: 46e5e1dd2f2100e6c35b2582a01ec7e7
entity_id: light.dining_room_window_light
domain: light
- type: turn_off
continue_on_error: true
device_id: ab95fe1d908ba2e5b01f7ab56847ea94
entity_id: light.chandelier_2
domain: light
- type: turn_off
continue_on_error: true
device_id: eae58a6194bf6b2f9613be3b3d91ffa7
entity_id: light.entrance_hallway_light
domain: light
- continue_on_error: true
data: {}
target:
entity_id: light.desk_backlights
action: light.turn_off
- continue_on_error: true
data: {}
target:
entity_id: light.family_room_lights
action: light.turn_off
- type: turn_off
continue_on_error: true
device_id: a3b52a07646ea597c812c27ef5bb19be
entity_id: light.jasco_products_43080_light
domain: light
- type: turn_off
continue_on_error: true
device_id: 4ebaa58d406f1d9664dea79a05651e73
entity_id: 99caf14af09f5cb74302813571301108
domain: light
- continue_on_error: true
data: {}
target:
entity_id: light.lamp_by_brown_couch2_4
action: light.turn_off
- continue_on_error: true
data: {}
target:
entity_id: light.dresden_elektronik_conbee_ii_family_room_cans_zb
action: light.turn_off
- continue_on_error: true
metadata: {}
data: {}
target:
entity_id: light.cabinet_lights
action: light.turn_off
- continue_on_error: true
metadata: {}
data: {}
target:
entity_id: light.garage_overhead_light_basic
action: light.turn_off
- continue_on_error: true
metadata: {}
data: {}
target:
entity_id:
- switch.garage_worklight2
action: switch.turn_off
- type: turn_off
device_id: fe0342a4f77db24cf011c6ae739d28c8
entity_id: a4225fd1375882c77a69c81d328e9e87
domain: remote
continue_on_error: true
- type: turn_off
device_id: 4edb1be0369c9f7f5a7782c0fe25dd1f
entity_id: 6b736c9aaf05eb3ecd7891435cbac500
domain: switch
continue_on_error: true
- type: turn_off
device_id: 5ec289afae93feb2e5045281d035b5a5
entity_id: 94c8c2c76ec03ac96f9d841115e3f5e7
domain: switch
continue_on_error: true
mode: single
alias: Goto bed
icon: mdi:bed
From the docs…
The example below shows the continue_on_error
set on the first action. If it encounters an error; it will continue to the next action.
- alias: "If this one fails..."
continue_on_error: true
action: notify.super_unreliable_service_provider
data:
message: "I'm going to error out..."
- alias: "This one will still run!"
action: persistent_notification.create
data:
title: "Hi there!"
message: "I'm fine..."
YAML
Copy
Please note that continue_on_error
will not suppress/ignore misconfiguration or errors that Home Assistant does not handle.
continue_on_error only works with action actions. It does not work with a device actions. I see that you’re using scene.turn_on there, so it should be working for you. It’s possible that the scene integration is causing the problems. Try creating a script for that and using the script with continue_on_error.
So if a device does not exist anymore in a scene that’s considered a misconfiguration and will stop? I will try the nested script approach to see if that gets works.
Thank you!
Yes