home-assistant / core

:house_with_garden: Open source home automation that puts local control and privacy first.
https://www.home-assistant.io
Apache License 2.0
73.94k stars 30.99k forks source link

Automation triggering scene with continue on error set to true does not continue on error #101663

Closed kurtzettel closed 7 months ago

kurtzettel commented 1 year ago

The problem

I have an automation that activates a scene:

  - scene: scene.night2
    continue_on_error: true

This scene turns off a bunch of lights. When there is an error, the scene does not continue:

image

Here is the log:

2023-10-07 20:59:38.170 INFO (MainThread) [homeassistant.components.automation.office_turn_off_speakers_after_1h_10m] [Office] - Turn off speakers after 1h 10m: Executing step device automation
2023-10-07 21:01:30.108 INFO (MainThread) [homeassistant.components.automation.bedroom_sconce_off_with_lamps] [Bedroom] - Sconce off with lamps: Running automation actions
2023-10-07 21:01:30.109 INFO (MainThread) [homeassistant.components.automation.bedroom_sconce_off_with_lamps] [Bedroom] - Sconce off with lamps: Executing step device automation
2023-10-07 21:01:30.110 INFO (MainThread) [homeassistant.components.automation.night_when_bedroom_lamps_off] Night when bedroom lamps off: Running automation actions
2023-10-07 21:01:30.110 INFO (MainThread) [homeassistant.components.automation.night_when_bedroom_lamps_off] Night when bedroom lamps off: Executing step call service
2023-10-07 21:01:30.118 INFO (MainThread) [homeassistant.components.automation.night_with_button_press] [Night] - Night with Button Press: Running automation actions
2023-10-07 21:01:30.118 INFO (MainThread) [homeassistant.components.automation.night_with_button_press] [Night] - Night with Button Press: Executing step call service
2023-10-07 21:01:32.962 INFO (MainThread) [homeassistant.components.automation.night_with_button_press] [Night] - Night with Button Press: Executing step delay 0:00:02
2023-10-07 21:01:34.964 INFO (MainThread) [homeassistant.components.automation.night_with_button_press] [Night] - Night with Button Press: Executing step activate scene
2023-10-07 21:01:48.007 ERROR (MainThread) [homeassistant.components.automation.night_with_button_press] [Night] - Night with Button Press: Error executing script. Unexpected error for scene at pos 3: 
Traceback (most recent call last):
  File "/usr/local/lib/python3.11/asyncio/tasks.py", line 490, in wait_for
    return fut.result()
           ^^^^^^^^^^^^
asyncio.exceptions.CancelledError

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/usr/local/lib/python3.11/site-packages/pywizlight/bulb.py", line 758, in send
    resp = await asyncio.wait_for(
           ^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/asyncio/tasks.py", line 492, in wait_for
    raise exceptions.TimeoutError() from exc
TimeoutError

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 468, in _async_step
    await getattr(self, handler)()
  File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 727, in _async_scene_step
    await self._hass.services.async_call(
  File "/usr/src/homeassistant/homeassistant/core.py", line 1974, in async_call
    response_data = await coro
                    ^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/core.py", line 2011, in _execute_service
    return await target(service_call)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/helpers/entity_component.py", line 235, in handle_service
    return await service.entity_service_call(
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 870, in entity_service_call
    response_data = await _handle_entity_call(
                    ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 942, in _handle_entity_call
    result = await task
             ^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/components/scene/__init__.py", line 114, in _async_activate
    await self.async_activate(**kwargs)
  File "/usr/src/homeassistant/homeassistant/components/homeassistant/scene.py", line 334, in async_activate
    await async_reproduce_state(
  File "/usr/src/homeassistant/homeassistant/helpers/state.py", line 67, in async_reproduce_state
    await asyncio.gather(
  File "/usr/src/homeassistant/homeassistant/helpers/state.py", line 61, in worker
    await platform.async_reproduce_states(
  File "/usr/src/homeassistant/homeassistant/components/light/reproduce_state.py", line 195, in async_reproduce_states
    await asyncio.gather(
  File "/usr/src/homeassistant/homeassistant/components/light/reproduce_state.py", line 182, in _async_reproduce_state
    await hass.services.async_call(
  File "/usr/src/homeassistant/homeassistant/core.py", line 1974, in async_call
    response_data = await coro
                    ^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/core.py", line 2011, in _execute_service
    return await target(service_call)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/helpers/entity_component.py", line 235, in handle_service
    return await service.entity_service_call(
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 870, in entity_service_call
    response_data = await _handle_entity_call(
                    ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 942, in _handle_entity_call
    result = await task
             ^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/components/light/__init__.py", line 591, in async_handle_light_off_service
    await light.async_turn_off(**filter_turn_off_params(light, params))
  File "/usr/src/homeassistant/homeassistant/components/group/light.py", line 199, in async_turn_off
    await self.hass.services.async_call(
  File "/usr/src/homeassistant/homeassistant/core.py", line 1974, in async_call
    response_data = await coro
                    ^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/core.py", line 2011, in _execute_service
    return await target(service_call)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/helpers/entity_component.py", line 235, in handle_service
    return await service.entity_service_call(
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 898, in entity_service_call
    task.result()  # pop exception if have
    ^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 1199, in async_request_call
    return await coro
           ^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 942, in _handle_entity_call
    result = await task
             ^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/components/light/__init__.py", line 591, in async_handle_light_off_service
    await light.async_turn_off(**filter_turn_off_params(light, params))
  File "/usr/src/homeassistant/homeassistant/components/wiz/entity.py", line 69, in async_turn_off
    await self._device.turn_off()
  File "/usr/local/lib/python3.11/site-packages/pywizlight/bulb.py", line 630, in turn_off
    await self.send({"method": "setPilot", "params": {"state": False}})
  File "/usr/local/lib/python3.11/site-packages/pywizlight/bulb.py", line 762, in send
    raise WizLightConnectionError(str(ex)) from ex
pywizlight.exceptions.WizLightConnectionError
2023-10-07 21:01:48.056 ERROR (MainThread) [homeassistant.components.automation.night_with_button_press] While executing automation automation.night_with_button_press
Traceback (most recent call last):
  File "/usr/local/lib/python3.11/asyncio/tasks.py", line 490, in wait_for
    return fut.result()
           ^^^^^^^^^^^^
asyncio.exceptions.CancelledError

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/usr/local/lib/python3.11/site-packages/pywizlight/bulb.py", line 758, in send
    resp = await asyncio.wait_for(
           ^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/asyncio/tasks.py", line 492, in wait_for
    raise exceptions.TimeoutError() from exc
TimeoutError

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/components/automation/__init__.py", line 659, in async_trigger
    await self.action_script.async_run(
  File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 1569, in async_run
    return await asyncio.shield(run.async_run())
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 420, in async_run
    await self._async_step(log_exceptions=False)
  File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 470, in _async_step
    self._handle_exception(
  File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 516, in _handle_exception
    raise exception
  File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 468, in _async_step
    await getattr(self, handler)()
  File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 727, in _async_scene_step
    await self._hass.services.async_call(
  File "/usr/src/homeassistant/homeassistant/core.py", line 1974, in async_call
    response_data = await coro
                    ^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/core.py", line 2011, in _execute_service
    return await target(service_call)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/helpers/entity_component.py", line 235, in handle_service
    return await service.entity_service_call(
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 870, in entity_service_call
    response_data = await _handle_entity_call(
                    ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 942, in _handle_entity_call
    result = await task
             ^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/components/scene/__init__.py", line 114, in _async_activate
    await self.async_activate(**kwargs)
  File "/usr/src/homeassistant/homeassistant/components/homeassistant/scene.py", line 334, in async_activate
    await async_reproduce_state(
  File "/usr/src/homeassistant/homeassistant/helpers/state.py", line 67, in async_reproduce_state
    await asyncio.gather(
  File "/usr/src/homeassistant/homeassistant/helpers/state.py", line 61, in worker
    await platform.async_reproduce_states(
  File "/usr/src/homeassistant/homeassistant/components/light/reproduce_state.py", line 195, in async_reproduce_states
    await asyncio.gather(
  File "/usr/src/homeassistant/homeassistant/components/light/reproduce_state.py", line 182, in _async_reproduce_state
    await hass.services.async_call(
  File "/usr/src/homeassistant/homeassistant/core.py", line 1974, in async_call
    response_data = await coro
                    ^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/core.py", line 2011, in _execute_service
    return await target(service_call)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/helpers/entity_component.py", line 235, in handle_service
    return await service.entity_service_call(
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 870, in entity_service_call
    response_data = await _handle_entity_call(
                    ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 942, in _handle_entity_call
    result = await task
             ^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/components/light/__init__.py", line 591, in async_handle_light_off_service
    await light.async_turn_off(**filter_turn_off_params(light, params))
  File "/usr/src/homeassistant/homeassistant/components/group/light.py", line 199, in async_turn_off
    await self.hass.services.async_call(
  File "/usr/src/homeassistant/homeassistant/core.py", line 1974, in async_call
    response_data = await coro
                    ^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/core.py", line 2011, in _execute_service
    return await target(service_call)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/helpers/entity_component.py", line 235, in handle_service
    return await service.entity_service_call(
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 898, in entity_service_call
    task.result()  # pop exception if have
    ^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 1199, in async_request_call
    return await coro
           ^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 942, in _handle_entity_call
    result = await task
             ^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/components/light/__init__.py", line 591, in async_handle_light_off_service
    await light.async_turn_off(**filter_turn_off_params(light, params))
  File "/usr/src/homeassistant/homeassistant/components/wiz/entity.py", line 69, in async_turn_off
    await self._device.turn_off()
  File "/usr/local/lib/python3.11/site-packages/pywizlight/bulb.py", line 630, in turn_off
    await self.send({"method": "setPilot", "params": {"state": False}})
  File "/usr/local/lib/python3.11/site-packages/pywizlight/bulb.py", line 762, in send
    raise WizLightConnectionError(str(ex)) from ex
pywizlight.exceptions.WizLightConnectionError
2023-10-07 21:02:31.068 INFO (Thread-7 (_run)) [google.api_core.bidi] Re-established stream
2023-10-07 21:02:34.073 INFO (MainThread) [custom_components.poolmath.client] GET https://api.poolmathapp.com/share/QOVY9lq.json (timeout=15; name=Pool; id=QOVY9lq)
2023-10-07 21:02:44.280 INFO (MainThread) [pywizlight.discovery] Discovered bulb 192.168.3.19 with MAC d8a011450ba0
2023-10-07 21:02:44.280 INFO (MainThread) [pywizlight.discovery] Discovered bulb 192.168.3.7 with MAC d8a0111a6aa6
2023-10-07 21:02:44.280 INFO (MainThread) [pywizlight.discovery] Discovered bulb 192.168.3.6 with MAC d8a01144dde6
2023-10-07 21:02:44.280 INFO (MainThread) [pywizlight.discovery] Discovered bulb 192.168.3.14 with MAC 6c2990fdfe24
20

While the cause of this is an error with the wiz light integration, this should not stop the automation. This was seen before with defects in Zigbee or Z-Wave not correctly wrapping errors I think but the core platform should not stop the automation from continuing if continue_on_error is set to true.

What version of Home Assistant Core has the issue?

core-2023.8.4

What was the last working version of Home Assistant Core?

No response

What type of installation are you running?

Home Assistant OS

Integration causing the issue

Automation

Link to integration documentation on our website

No response

Diagnostics information

No response

Example YAML snippet

Here is the full automation:
alias: "[Night] - Night with Button Press"
description: ""
trigger:
  - platform: event
    event_type: zha_event
    event_data:
      device_id: 658fb49806c65b4d0ee878999e9d9723
      command: button_single
condition:
  - condition: time
    after: "19:00:00"
    before: "00:00:00"
action:
  - service: lock.lock
    continue_on_error: true
    target:
      entity_id:
        - lock.garage_door_lock
        - lock.patio_door_lock
        - lock.front_door_lock
    data: {}
  - delay:
      hours: 0
      minutes: 0
      seconds: 2
      milliseconds: 0
  - scene: scene.night2
    continue_on_error: true
  - service: switch.turn_off
    continue_on_error: true
    data: {}
    target:
      entity_id: switch.spare_dehumidifier
  - type: turn_off
    device_id: 701a6708cb0518fc918da70b6a456e8c
    entity_id: 9dc7983caf0d6aaf3e076c984107a482
    domain: switch
    continue_on_error: true
  - type: turn_off
    device_id: b82aa64ab0f66dbe13452166a0d33e22
    entity_id: light.annas_vanity_1
    domain: light
    continue_on_error: true
  - type: turn_off
    device_id: d1c8a7c80723ece955fd494a6efdac2a
    entity_id: light.annas_vanity_2
    domain: light
    continue_on_error: true
  - type: turn_off
    device_id: 019ffcc4a80ae9e94a308ec8b1621064
    entity_id: light.kurts_vanity_1
    domain: light
    continue_on_error: true
  - type: turn_off
    device_id: f4beed813b4dd730b2aa819180456272
    entity_id: light.kurts_vanity_2
    domain: light
    continue_on_error: true
  - condition: state
    entity_id: alarm_control_panel.home_alarm
    state: disarmed
  - service: alarm_control_panel.alarm_arm_home
    continue_on_error: true
    target:
      entity_id: alarm_control_panel.home_alarm
    data: {}
  - service: light.turn_off
    continue_on_error: true
    data:
      transition: 2
    target:
      entity_id:
        - light.family_room_bar_lights
        - light.office_hall_sconce
  - if:
      - condition: state
        entity_id: input_boolean.guests
        state: "off"
    then:
      - type: turn_off
        device_id: 2395666c01bdeaa15929db802288ddff
        entity_id: light.guest_bedroom
        domain: light
        continue_on_error: true
      - service: light.turn_off
        continue_on_error: true
        data: {}
        target:
          entity_id: light.anna_s_office_lights
mode: single

Here is the scene:
- id: '1617650957931'
  name: Night2
  entities:
    light.fireplace_lights_level_on_off:
      effect_list:
      - blink
      - breathe
      - okay
      - channel_change
      - finish_effect
      - stop_effect
      supported_color_modes:
      - brightness
      last_seen: '2023-09-05T21:44:23-05:00'
      linkquality: 255
      power_on_behavior:
      friendly_name: Fireplace Lights
      supported_features: 44
      state: 'off'
    switch.storage_area_lights:
      icon: mdi:lightbulb
      friendly_name: Storage Area Lights
      state: 'off'
    light.laundry_hallway_cabinets:
      min_color_temp_kelvin: 2000
      max_color_temp_kelvin: 6535
      min_mireds: 153
      max_mireds: 500
      effect_list:
      - None
      - candle
      - fire
      - unknown
      supported_color_modes:
      - color_temp
      - xy
      color_mode: xy
      brightness: 23
      hs_color:
      - 225.231
      - 50.98
      rgb_color:
      - 125
      - 157
      - 255
      xy_color:
      - 0.205
      - 0.193
      effect: None
      mode: normal
      dynamics: none
      icon: mdi:countertop
      friendly_name: Laundry Hall Cabinets
      supported_features: 44
      state: 'on'
    switch.garage_lights:
      friendly_name: Garage Lights
      state: 'off'
    switch.laundry_light:
      friendly_name: Laundry Light
      state: 'off'
    light.living_room:
      min_color_temp_kelvin: 2000
      max_color_temp_kelvin: 6535
      min_mireds: 153
      max_mireds: 500
      supported_color_modes:
      - color_temp
      - xy
      is_hue_group: true
      hue_scenes:
      - Dimmed
      - Concentrate
      - Spring blossom
      - Arctic aurora
      - Read
      - Nightlight
      - Bright
      - Tropical twilight
      - Energize
      - Relax
      - Savanna sunset
      hue_type: room
      lights:
      - Living Room Lamp near fireplace
      - Living Room Lamp near door
      dynamics: false
      icon: mdi:lightbulb-group
      friendly_name: Living Room
      supported_features: 40
      state: 'off'
    switch.kitchen_switch_1:
      icon: mdi:light-recessed
      friendly_name: Kitchen Switch 1
      state: 'off'
    light.kitchen_island_bulb:
      min_color_temp_kelvin: 2202
      max_color_temp_kelvin: 6535
      min_mireds: 153
      max_mireds: 454
      effect_list:
      - Ocean
      - Romance
      - Sunset
      - Party
      - Fireplace
      - Cozy
      - Forest
      - Pastel Colors
      - Wake up
      - Bedtime
      - Warm White
      - Daylight
      - Cool white
      - Night light
      - Focus
      - Relax
      - True colors
      - TV time
      - Plantgrowth
      - Spring
      - Summer
      - Fall
      - Deepdive
      - Jungle
      - Mojito
      - Club
      - Christmas
      - Halloween
      - Candlelight
      - Golden white
      - Pulse
      - Steampunk
      - Rhythm
      supported_color_modes:
      - color_temp
      - rgbw
      friendly_name: Kitchen Island Bulb
      supported_features: 4
      state: 'off'
    switch.kitchen_cabinet_lights:
      icon: mdi:countertop
      friendly_name: Kitchen Cabinet Lights
      state: 'off'
    light.kitchen_pendants:
      min_color_temp_kelvin: 2202
      max_color_temp_kelvin: 6535
      min_mireds: 153
      max_mireds: 454
      effect_list:
      - Bedtime
      - Candlelight
      - Christmas
      - Club
      - Cool white
      - Cozy
      - Daylight
      - Deepdive
      - Fall
      - Fireplace
      - Focus
      - Forest
      - Golden white
      - Halloween
      - Jungle
      - Mojito
      - Night light
      - Ocean
      - Party
      - Pastel Colors
      - Plantgrowth
      - Pulse
      - Relax
      - Rhythm
      - Romance
      - Spring
      - Steampunk
      - Summer
      - Sunset
      - TV time
      - True colors
      - Wake up
      - Warm White
      supported_color_modes:
      - color_temp
      - rgbw
      entity_id:
      - light.kitchen_pendant_1
      - light.kitchen_pendant_2
      - light.kitchen_pendant_3
      icon: mdi:lightbulb-group
      friendly_name: Kitchen Pendants
      supported_features: 4
      state: 'off'
    light.kitchen_recessed_hue_1:
      min_color_temp_kelvin: 2000
      max_color_temp_kelvin: 6666
      min_mireds: 150
      max_mireds: 500
      effect_list:
      - blink
      - breathe
      - okay
      - channel_change
      - candle
      - finish_effect
      - stop_effect
      - stop_hue_effect
      supported_color_modes:
      - color_temp
      last_seen: '2023-09-05T21:38:31-05:00'
      linkquality: 248
      power_on_behavior: previous
      update:
        installed_version: 16785162
        latest_version: 16785162
        state: idle
      update_available: false
      friendly_name: Kitchen Recessed Hue 1
      supported_features: 44
      state: 'off'
    light.kitchen_recessed_hue_2:
      min_color_temp_kelvin: 2000
      max_color_temp_kelvin: 6666
      min_mireds: 150
      max_mireds: 500
      effect_list:
      - blink
      - breathe
      - okay
      - channel_change
      - candle
      - finish_effect
      - stop_effect
      - stop_hue_effect
      supported_color_modes:
      - color_temp
      last_seen: '2023-09-05T21:35:45-05:00'
      linkquality: 255
      power_on_behavior: previous
      update:
        installed_version: 16785162
        latest_version: 16785162
        state: idle
      update_available: false
      friendly_name: Kitchen Recessed Hue 2
      supported_features: 44
      state: 'off'
    switch.laundry_hall:
      icon: mdi:light-recessed
      friendly_name: Laundry Hall
      state: 'off'
    light.anna_s_office_closet:
      min_color_temp_kelvin: 2202
      max_color_temp_kelvin: 6535
      min_mireds: 153
      max_mireds: 454
      effect_list:
      - None
      - candle
      supported_color_modes:
      - color_temp
      mode: normal
      dynamics: none
      friendly_name: Anna's Office Closet
      supported_features: 44
      state: 'off'
    light.office:
      min_color_temp_kelvin: 2000
      max_color_temp_kelvin: 6535
      min_mireds: 153
      max_mireds: 500
      supported_color_modes:
      - color_temp
      - xy
      is_hue_group: true
      hue_scenes:
      - Concentrate
      - Dimmed
      - Warm White
      - Spring blossom
      - Office Occupied
      - Arctic aurora
      - Read
      - Nightlight
      - Bright
      - Tropical twilight
      - Energize
      - Relax
      - Savanna sunset
      - Warm only lamps
      hue_type: room
      lights:
      - Office Standing Lamp
      - Hue bloom 1
      - Office Desk Lamp
      - Office Fan 1
      - Office Fan 2
      - Office Lamp
      - Hue bloom 2
      dynamics: false
      icon: mdi:lightbulb-group
      friendly_name: Office
      supported_features: 40
      state: 'off'
    light.back_patio_sconce:
      effect_list:
      - None
      - candle
      supported_color_modes:
      - brightness
      color_mode: brightness
      brightness: 3
      effect: None
      mode: normal
      dynamics: none
      friendly_name: Back Patio Sconce
      supported_features: 44
      state: 'on'
    light.front_porch_sconce:
      effect_list:
      - None
      - candle
      supported_color_modes:
      - brightness
      color_mode: brightness
      brightness: 255
      effect: None
      mode: normal
      dynamics: none
      icon: mdi:outdoor-lamp
      friendly_name: Front Porch Sconce
      supported_features: 44
      state: 'on'
    light.garage_entrance_sconce:
      effect_list:
      - None
      - candle
      supported_color_modes:
      - brightness
      color_mode: brightness
      brightness: 61
      effect: None
      mode: normal
      dynamics: none
      icon: mdi:outdoor-lamp
      friendly_name: Garage Entrance Sconce
      supported_features: 44
      state: 'on'
    light.back_patio_flood_middle_1:
      effect_list:
      - None
      - candle
      supported_color_modes:
      - brightness
      mode: normal
      dynamics: none
      friendly_name: Back Patio Flood Middle 1
      supported_features: 44
      state: 'off'
    light.back_patio_flood_middle_2:
      effect_list:
      - None
      - candle
      supported_color_modes:
      - brightness
      mode: normal
      dynamics: none
      friendly_name: Back Patio Flood Middle 2
      supported_features: 44
      state: 'off'
    light.back_patio_flood_near_gate_1:
      effect_list:
      - None
      - candle
      supported_color_modes:
      - brightness
      mode: normal
      dynamics: none
      friendly_name: Back Patio Flood Near Gate 1
      supported_features: 44
      state: 'off'
    light.back_patio_flood_near_gate_2:
      effect_list:
      - None
      - candle
      supported_color_modes:
      - brightness
      mode: normal
      dynamics: none
      friendly_name: Back Patio Flood Near Gate 2
      supported_features: 44
      state: 'off'
    light.back_patio_flood_near_pump_1:
      effect_list:
      - None
      - candle
      supported_color_modes:
      - brightness
      mode: normal
      dynamics: none
      friendly_name: Back Patio Flood Near Pump 1
      supported_features: 44
      state: 'off'
    light.back_patio_flood_near_pump_2:
      effect_list:
      - None
      - candle
      supported_color_modes:
      - brightness
      mode: normal
      dynamics: none
      friendly_name: Back Patio Flood Near Pump 2
      supported_features: 44
      state: 'off'
    light.pool_left_light:
      supported_color_modes:
      - onoff
      attribution: Data provided by Ring.com
      icon: mdi:cctv
      friendly_name: Pool Left Camera Light
      supported_features: 0
      state: 'off'
    light.pool_right_light:
      supported_color_modes:
      - onoff
      attribution: Data provided by Ring.com
      icon: mdi:cctv
      friendly_name: Pool Right Camera Light
      supported_features: 0
      state: 'off'
    light.driveway_light:
      supported_color_modes:
      - onoff
      attribution: Data provided by Ring.com
      icon: mdi:cctv
      friendly_name: Driveway Camera Light
      supported_features: 0
      state: 'off'
    light.bedroom:
      min_color_temp_kelvin: 2000
      max_color_temp_kelvin: 6535
      min_mireds: 153
      max_mireds: 500
      supported_color_modes:
      - color_temp
      - xy
      is_hue_group: true
      hue_scenes:
      - Dimmed
      - Concentrate
      - Spring blossom
      - Soho
      - Basic Cool
      - Read
      - Nightlight
      - Bright
      - Energize
      - Starlight
      - Relax
      hue_type: room
      lights:
      - Bedroom Recessed 1
      - Bedroom Recessed 2
      - Bedroom Recessed 3
      - Anna's Bedside Lamp
      - Bedroom Recessed 4
      - Kurt's Bedside Lamp
      dynamics: false
      icon: mdi:lightbulb-group
      friendly_name: Bedroom
      supported_features: 40
      state: 'off'
    switch.gym_avengers_light:
      last_seen: '2023-09-05T21:36:49-05:00'
      linkquality: 255
      power_on_behavior: previous
      update:
        installed_version: 587765297
        latest_version: 587765297
        state: idle
      update_available: false
      friendly_name: Gym Avengers Light
      state: 'off'
    fan.bedroom_fan:
      preset_modes:
      direction: reverse
      percentage: 33
      percentage_step: 16.666666666666668
      preset_mode:
      assumed_state: true
      friendly_name: Bedroom Fan
      supported_features: 5
      state: 'on'
    light.gym:
      min_color_temp_kelvin: 2202
      max_color_temp_kelvin: 6535
      min_mireds: 153
      max_mireds: 454
      supported_color_modes:
      - color_temp
      is_hue_group: true
      hue_scenes: []
      hue_type: room
      lights:
      - Gym 2
      - Gym 5
      - Gym 6
      - Gym 1
      - Gym 3
      - Gym 4
      dynamics: false
      icon: mdi:lightbulb-group
      friendly_name: Gym
      supported_features: 40
      state: 'off'
    light.bathroom:
      min_color_temp_kelvin: 2000
      max_color_temp_kelvin: 6535
      min_mireds: 153
      max_mireds: 500
      supported_color_modes:
      - color_temp
      - xy
      is_hue_group: true
      hue_scenes: []
      hue_type: room
      lights:
      - Tub lamp
      - Kurt's Vanity 2
      - Anna’s Vanity 2
      - Anna's Vanity 1
      - Kurt's Vanity 1
      dynamics: false
      icon: mdi:lightbulb-group
      friendly_name: Bathroom
      supported_features: 40
      state: 'off'
    light.outdoor_accent_light:
      min_color_temp_kelvin: 2000
      max_color_temp_kelvin: 6666
      min_mireds: 150
      max_mireds: 500
      effect_list:
      - blink
      - breathe
      - okay
      - channel_change
      - finish_effect
      - stop_effect
      supported_color_modes:
      - color_temp
      - xy
      color:
        x: 0.136
        y: 0.04
      last_seen: '2023-09-05T21:44:21-05:00'
      linkquality: 255
      update:
        installed_version: 1057832
        latest_version: 1057832
        state: idle
      update_available: false
      friendly_name: Patio Accent Lights
      supported_features: 44
      state: 'off'
    light.bedroom_entrance:
      effect_list:
      - blink
      - breathe
      - okay
      - channel_change
      - finish_effect
      - stop_effect
      supported_color_modes:
      - brightness
      last_seen: '2023-09-05T21:44:18-05:00'
      linkquality: 255
      power_on_behavior:
      friendly_name: Bedroom Entrance
      supported_features: 44
      state: 'off'
    switch.dining_room_light:
      icon: mdi:chandelier
      friendly_name: Dining Room Light
      state: 'off'
    switch.west_flood_lights:
      icon: mdi:spotlight-beam
      friendly_name: West Flood Lights
      state: 'off'
    light.porch:
      min_color_temp_kelvin: 2000
      max_color_temp_kelvin: 6535
      min_mireds: 153
      max_mireds: 500
      supported_color_modes:
      - color_temp
      - xy
      is_hue_group: true
      hue_scenes: []
      hue_type: room
      lights:
      - Front porch overhead 2
      - Front porch overhead 1
      - Front porch overhead 3
      dynamics: false
      icon: mdi:lightbulb-group
      friendly_name: Porch
      supported_features: 40
      state: 'off'
    light.office_closet_light:
      supported_color_modes:
      - brightness
      last_seen: '2023-09-05T21:36:05-05:00'
      linkquality: 255
      update:
        installed_version: -1
        latest_version: -1
        state: idle
      update_available: false
      friendly_name: Office Closet Light
      supported_features: 40
      state: 'off'
    light.family_room_lamp:
      min_color_temp_kelvin: 2202
      max_color_temp_kelvin: 6535
      min_mireds: 153
      max_mireds: 454
      effect_list:
      - None
      - candle
      supported_color_modes:
      - color_temp
      mode: normal
      dynamics: none
      friendly_name: Family Room Lamp
      supported_features: 44
      state: 'off'
    light.family_room_lights:
      min_color_temp_kelvin: 2202
      max_color_temp_kelvin: 6535
      min_mireds: 153
      max_mireds: 454
      effect_list:
      - blink
      - breathe
      - okay
      - channel_change
      - candle
      - finish_effect
      - stop_effect
      - stop_hue_effect
      supported_color_modes:
      - color_temp
      friendly_name: Family Room Recessed Lights
      supported_features: 44
      state: 'off'
    light.family_room_bar_lights:
      min_color_temp_kelvin: 2202
      max_color_temp_kelvin: 6535
      min_mireds: 153
      max_mireds: 454
      effect_list:
      - blink
      - breathe
      - okay
      - channel_change
      - candle
      - finish_effect
      - stop_effect
      - stop_hue_effect
      supported_color_modes:
      - color_temp
      friendly_name: Family Room Bar Lights
      supported_features: 44
      state: 'off'
  icon: hass:weather-night
  metadata:
    light.family_room_lights:
      entity_only: true
    light.family_room_bar_lights:
      entity_only: true

Anything in the logs that might be useful for us?

No response

Additional information

I know this is a failure in the Wiz integration and if I can easily reproduce it, I'll submit a separate defect, but this specific error is that continue_on_error is not working as expected when invoking a scene.

home-assistant[bot] commented 1 year ago

Hey there @home-assistant/core, mind taking a look at this issue as it has been labeled with an integration (automation) you are listed as a code owner for? Thanks!

Code owner commands Code owners of `automation` can trigger bot actions by commenting: - `@home-assistant close` Closes the issue. - `@home-assistant rename Awesome new title` Renames the issue. - `@home-assistant reopen` Reopen the issue. - `@home-assistant unassign automation` Removes the current integration label and assignees on the issue, add the integration domain after the command.

(message by CodeOwnersMention)


automation documentation automation source (message by IssueLinks)

issue-triage-workflows[bot] commented 10 months ago

There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved with the latest updates. Please make sure to update to the latest Home Assistant version and check if that solves the issue. Let us know if that works for you by adding a comment 👍 This issue has now been marked as stale and will be closed if no further activity occurs. Thank you for your contributions.

abuchanan920 commented 10 months ago

I am seeing the same problem with an automation. I'm on the latest HA 2024.1.2. Trace included. trace automation.theater_mode_poweroff_selected 2024-01-13T17_20_48.602042+00_00.json

abuchanan920 commented 10 months ago

Another instance of it in a different automation (but trying to make a call to the same underlying integration) trace automation.theater_mode_apple_tv_selected 2024-01-13T17_06_19.996920+00_00.json

abuchanan920 commented 10 months ago

I see the problem with my error (and probably @kurtzettel 's as well). continue_on_error only works for exceptions of type HomeAssistantError. In both our cases, the underlying component is throwing an exception of a different type, which cancels the automation/script/scene.

I think the correct mitigation in my case is to update the xbox component to wrap those exceptions in HomeAssistantError and re-throw. I've tested it locally and that gives me the expected behavior. I'll put together a PR with the fix for xbox and maybe some documentation enhancements for continue_on_error.

issue-triage-workflows[bot] commented 7 months ago

There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved with the latest updates. Please make sure to update to the latest Home Assistant version and check if that solves the issue. Let us know if that works for you by adding a comment 👍 This issue has now been marked as stale and will be closed if no further activity occurs. Thank you for your contributions.