Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Lutron Pico triggers can't be applied - Automation Error #81999

Closed
ballakers opened this issue Nov 12, 2022 · 2 comments · Fixed by #82714
Closed

Lutron Pico triggers can't be applied - Automation Error #81999

ballakers opened this issue Nov 12, 2022 · 2 comments · Fixed by #82714

Comments

@ballakers
Copy link

The problem

Not sure if it is a race issue and Automations is trying to apply the trigger before the pico devices are picked up at startup. The button presses are registered in events still so it seems Lutron integration is not the issue. Some of these automation have been working for a year probably until latest updates. Sometimes a restart fixes it and sometimes not - going into an automation and changing something (then change it back) and save the automation usually starts working again.

Piece of the logs that I posted below:
Got error 'Cannot attach trigger {'platform': 'device', 'device_id': '27eda0069b8c398e74cf2433f101b48e', 'domain': 'lutron_caseta', 'type': 'press', 'subtype': 'on'} because device with id 27eda0069b8c398e74cf2433f101b48e is missing or invalid' when setting up triggers for Pico - Garage control centre

Applies to all pico's that are part of automation and all 5 button locations/presses - nothing shows about my normal unused picos. I see a few others posting about this also in the blueprints page.

What version of Home Assistant Core has the issue?

2022.11.2

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, Lutron Caseta

Link to integration documentation on our website

https://www.home-assistant.io/docs/automation/

Diagnostics information

config_entry-lutron_caseta-b2e8e36999018dc672fe83de07ba55a1.json.txt

Example YAML snippet

: Basement Pico bottom of stairs
description: next to basement desk
use_blueprint:
  path: stephack/core-pico.yaml
  input:
    auto_mode: restart
    pico_remote: 464aa58c08a31bdbe5e033ceef5cd6d8
    top_on:
      - service: light.turn_on
        target:
          entity_id:
            - light.basement_main_1of3_local
            - light.basement_main_2of3_local
            - light.basement_main_3of3_local
            - light.basement_pantry
            - light.hue_phoenix_1
            - light.hue_phoenix_2
            - light.side_door_1
            - light.side_door_2
            - light.furnace_room_level_light_color_on_off
            - light.hue_color_candle_1_2
            - light.hue_color_candle_2
        data:
          color_temp: 318
          brightness: 255
    middle_stop:
      - service: light.turn_on
        target:
          entity_id:
            - light.basement_main_1of3_local
            - light.basement_main_2of3_local
            - light.basement_main_3of3_local
            - light.furnace_room_level_light_color_on_off
            - light.basement_pantry
            - light.hue_phoenix_1
            - light.hue_phoenix_2
            - light.side_door_1
            - light.side_door_2
            - light.hue_color_candle_1_2
            - light.hue_color_candle_2
        data:
          color_temp: 318
          brightness: 47
    middle_stop_release: []
    up_raise:
      - service: light.turn_on
        target:
          entity_id:
            - light.basement_main_1of3_local
            - light.basement_main_2of3_local
            - light.basement_main_3of3_local
            - light.basement_pantry
            - light.hue_phoenix_1
            - light.hue_phoenix_2
            - light.side_door_1
            - light.side_door_2
            - light.furnace_room_level_light_color_on_off
            - light.hue_color_candle_1_2
            - light.hue_color_candle_2
        data:
          brightness_step: 45
    down_lower:
      - service: light.turn_on
        target:
          entity_id:
            - light.basement_main_1of3_local
            - light.basement_main_2of3_local
            - light.basement_main_3of3_local
            - light.basement_pantry
            - light.hue_phoenix_1
            - light.hue_phoenix_2
            - light.side_door_1
            - light.side_door_2
            - light.furnace_room_level_light_color_on_off
            - light.hue_color_candle_1_2
            - light.hue_color_candle_2
        data:
          brightness_step: -45
    bottom_off:
      - service: light.turn_off
        target:
          entity_id:
            - light.basement_main_1of3_local
            - light.basement_main_2of3_local
            - light.basement_main_3of3_local
            - light.basement_pantry
            - light.hue_phoenix_1
            - light.hue_phoenix_2
            - light.side_door_1
            - light.side_door_2
            - light.furnace_room_level_light_color_on_off
            - light.hue_color_candle_1_2
            - light.hue_color_candle_2
        data: {}

Anything in the logs that might be useful for us?

-11-11 14:39:15.324 ERROR (MainThread) [homeassistant.components.automation.pico_garage_control_centre] Got error 'Cannot attach trigger {'platform': 'device', 'device_id': '27eda0069b8c398e74cf2433f101b48e', 'domain': 'lutron_caseta', 'type': 'press', 'subtype': 'on'} because device with id 27eda0069b8c398e74cf2433f101b48e is missing or invalid' when setting up triggers for Pico - Garage control centre
2022-11-11 14:39:15.334 ERROR (MainThread) [homeassistant.components.automation.pico_garage_control_centre] Got error 'Cannot attach trigger {'platform': 'device', 'device_id': '27eda0069b8c398e74cf2433f101b48e', 'domain': 'lutron_caseta', 'type': 'press', 'subtype': 'raise'} because device with id 27eda0069b8c398e74cf2433f101b48e is missing or invalid' when setting up triggers for Pico - Garage control centre
2022-11-11 14:39:15.345 ERROR (MainThread) [homeassistant.components.automation.pico_garage_control_centre] Got error 'Cannot attach trigger {'platform': 'device', 'device_id': '27eda0069b8c398e74cf2433f101b48e', 'domain': 'lutron_caseta', 'type': 'press', 'subtype': 'stop'} because device with id 27eda0069b8c398e74cf2433f101b48e is missing or invalid' when setting up triggers for Pico - Garage control centre
2022-11-11 14:39:15.352 ERROR (MainThread) [homeassistant.components.automation.pico_garage_control_centre] Got error 'Cannot attach trigger {'platform': 'device', 'device_id': '27eda0069b8c398e74cf2433f101b48e', 'domain': 'lutron_caseta', 'type': 'press', 'subtype': 'lower'} because device with id 27eda0069b8c398e74cf2433f101b48e is missing or invalid' when setting up triggers for Pico - Garage control centre
2022-11-11 14:39:15.365 ERROR (MainThread) [homeassistant.components.automation.pico_garage_control_centre] Got error 'Cannot attach trigger {'platform': 'device', 'device_id': '27eda0069b8c398e74cf2433f101b48e', 'domain': 'lutron_caseta', 'type': 'press', 'subtype': 'off'} because device with id 27eda0069b8c398e74cf2433f101b48e is missing or invalid' when setting up triggers for Pico - Garage control centre
2022-11-11 14:39:15.377 ERROR (MainThread) [homeassistant.components.automation.pico_garage_control_centre] Got error 'Cannot attach trigger {'platform': 'device', 'device_id': '27eda0069b8c398e74cf2433f101b48e', 'domain': 'lutron_caseta', 'type': 'release', 'subtype': 'on'} because device with id 27eda0069b8c398e74cf2433f101b48e is missing or invalid' when setting up triggers for Pico - Garage control centre
2022-11-11 14:39:15.408 ERROR (MainThread) [homeassistant.components.automation.pico_garage_control_centre] Got error 'Cannot attach trigger {'platform': 'device', 'device_id': '27eda0069b8c398e74cf2433f101b48e', 'domain': 'lutron_caseta', 'type': 'release', 'subtype': 'raise'} because device with id 27eda0069b8c398e74cf2433f101b48e is missing or invalid' when setting up triggers for Pico - Garage control centre
2022-11-11 14:39:15.427 ERROR (MainThread) [homeassistant.components.automation.pico_garage_control_centre] Got error 'Cannot attach trigger {'platform': 'device', 'device_id': '27eda0069b8c398e74cf2433f101b48e', 'domain': 'lutron_caseta', 'type': 'release', 'subtype': 'stop'} because device with id 27eda0069b8c398e74cf2433f101b48e is missing or invalid' when setting up triggers for Pico - Garage control centre
2022-11-11 14:39:15.430 ERROR (MainThread) [homeassistant.components.automation.pico_garage_control_centre] Got error 'Cannot attach trigger {'platform': 'device', 'device_id': '27eda0069b8c398e74cf2433f101b48e', 'domain': 'lutron_caseta', 'type': 'release', 'subtype': 'lower'} because device with id 27eda0069b8c398e74cf2433f101b48e is missing or invalid' when setting up triggers for Pico - Garage control centre
2022-11-11 14:39:15.444 ERROR (MainThread) [homeassistant.components.automation.pico_garage_control_centre] Got error 'Cannot attach trigger {'platform': 'device', 'device_id': '27eda0069b8c398e74cf2433f101b48e', 'domain': 'lutron_caseta', 'type': 'release', 'subtype': 'off'} because device with id 27eda0069b8c398e74cf2433f101b48e is missing or invalid' when setting up triggers for Pico - Garage control centre
2022-11-11 14:39:15.452 WARNING (MainThread) [asyncio] Executing <Task finished name='Task-11262' coro=<AutomationEntity.async_enable.<locals>.async_enable_automation() done, defined at /usr/src/homeassistant/homeassistant/components/automation/__init__.py:603> result=None created at /usr/src/homeassistant/homeassistant/core.py:479> took 0.128 seconds
2022-11-11 14:39:15.465 ERROR (MainThread) [homeassistant.components.automation.pico_backdoor_setup] Got error 'Cannot attach trigger {'platform': 'device', 'device_id': '50c341eecdea050c7c3aef6571ec30bc', 'domain': 'lutron_caseta', 'type': 'press', 'subtype': 'on'} because device with id 50c341eecdea050c7c3aef6571ec30bc is missing or invalid' when setting up triggers for Pico - Backdoor setup
2022-11-11 14:39:15.476 ERROR (MainThread) [homeassistant.components.automation.pico_backdoor_setup] Got error 'Cannot attach trigger {'platform': 'device', 'device_id': '50c341eecdea050c7c3aef6571ec30bc', 'domain': 'lutron_caseta', 'type': 'press', 'subtype': 'raise'} because device with id 50c341eecdea050c7c3aef6571ec30bc is missing or invalid' when setting up triggers for Pico - Backdoor setup
2022-11-11 14:39:15.492 ERROR (MainThread) [homeassistant.components.automation.pico_backdoor_setup] Got error 'Cannot attach trigger {'platform': 'device', 'device_id': '50c341eecdea050c7c3aef6571ec30bc', 'domain': 'lutron_caseta', 'type': 'press', 'subtype': 'stop'} because device with id 50c341eecdea050c7c3aef6571ec30bc is missing or invalid' when setting up triggers for Pico - Backdoor setup
2022-11-11 14:39:15.515 ERROR (MainThread) [homeassistant.components.automation.pico_backdoor_setup] Got error 'Cannot attach trigger {'platform': 'device', 'device_id': '50c341eecdea050c7c3aef6571ec30bc', 'domain': 'lutron_caseta', 'type': 'press', 'subtype': 'lower'} because device with id 50c341eecdea050c7c3aef6571ec30bc is missing or invalid' when setting up triggers for Pico - Backdoor setup
2022-11-11 14:39:15.527 ERROR (MainThread) [homeassistant.components.automation.pico_backdoor_setup] Got error 'Cannot attach trigger {'platform': 'device', 'device_id': '50c341eecdea050c7c3aef6571ec30bc', 'domain': 'lutron_caseta', 'type': 'press', 'subtype': 'off'} because device with id 50c341eecdea050c7c3aef6571ec30bc is missing or invalid' when setting up triggers for Pico - Backdoor setup
2022-11-11 14:39:15.548 ERROR (MainThread) [homeassistant.components.automation.pico_backdoor_setup] Got error 'Cannot attach trigger {'platform': 'device', 'device_id': '50c341eecdea050c7c3aef6571ec30bc', 'domain': 'lutron_caseta', 'type': 'release', 'subtype': 'on'} because device with id 50c341eecdea050c7c3aef6571ec30bc is missing or invalid' when setting up triggers for Pico - Backdoor setup
2022-11-11 14:39:15.558 ERROR (MainThread) [homeassistant.components.automation.pico_backdoor_setup] Got error 'Cannot attach trigger {'platform': 'device', 'device_id': '50c341eecdea050c7c3aef6571ec30bc', 'domain': 'lutron_caseta', 'type': 'release', 'subtype': 'raise'} because device with id 50c341eecdea050c7c3aef6571ec30bc is missing or invalid' when setting up triggers for Pico - Backdoor setup
2022-11-11 14:39:15.570 ERROR (MainThread) [homeassistant.components.automation.pico_backdoor_setup] Got error 'Cannot attach trigger {'platform': 'device', 'device_id': '50c341eecdea050c7c3aef6571ec30bc', 'domain': 'lutron_caseta', 'type': 'release', 'subtype': 'stop'} because device with id 50c341eecdea050c7c3aef6571ec30bc is missing or invalid' when setting up triggers for Pico - Backdoor setup
2022-11-11 14:39:15.578 ERROR (MainThread) [homeassistant.components.automation.pico_backdoor_setup] Got error 'Cannot attach trigger {'platform': 'device', 'device_id': '50c341eecdea050c7c3aef6571ec30bc', 'domain': 'lutron_caseta', 'type': 'release', 'subtype': 'lower'} because device with id 50c341eecdea050c7c3aef6571ec30bc is missing or invalid' when setting up triggers for Pico - Backdoor setup
2022-11-11 14:39:15.585 ERROR (MainThread) [homeassistant.components.automation.pico_backdoor_setup] Got error 'Cannot attach trigger {'platform': 'device', 'device_id': '50c341eecdea050c7c3aef6571ec30bc', 'domain': 'lutron_caseta', 'type': 'release', 'subtype': 'off'} because device with id 50c341eecdea050c7c3aef6571ec30bc is missing or invalid' when setting up triggers for Pico - Backdoor setup
2022-11-11 14:39:15.589 WARNING (MainThread) [asyncio] Executing <Task finished name='Task-11280' coro=<AutomationEntity.async_enable.<locals>.async_enable_automation() done, defined at /usr/src/homeassistant/homeassistant/components/automation/__init__.py:603> result=None created at /usr/src/homeassistant/homeassistant/core.py:479> took 0.124 seconds

Additional information

No response

@home-assistant
Copy link

Hey there @swails, @bdraco, @danaues, mind taking a look at this issue as it has been labeled with an integration (lutron_caseta) you are listed as a code owner for? Thanks!

Code owner commands

Code owners of lutron_caseta can trigger bot actions by commenting:

  • @home-assistant close Closes the issue.
  • @home-assistant rename Awesome new title Change the title of the issue.
  • @home-assistant reopen Reopen the issue.
  • @home-assistant unassign lutron_caseta Removes the current integration label and assignees on the issue, add the integration domain after the command.

(message by CodeOwnersMention)


lutron_caseta documentation
lutron_caseta source
(message by IssueLinks)

bdraco added a commit to bdraco/home-assistant that referenced this issue Nov 25, 2022
…finishes

Refactor the trigger attach so its not dependant on the intergration
being already setup

fixes home-assistant#82495 & fixes home-assistant#81999
bdraco added a commit to bdraco/home-assistant that referenced this issue Nov 25, 2022
…finishes

Refactor the trigger attach so its not dependant on the intergration
being already setup

fixes home-assistant#82495 & fixes home-assistant#81999
bdraco added a commit to bdraco/home-assistant that referenced this issue Nov 25, 2022
…finishes

Refactor the trigger attach so its not dependant on the intergration
being already setup

fixes home-assistant#82495 & fixes home-assistant#81999
bdraco added a commit to bdraco/home-assistant that referenced this issue Nov 25, 2022
…finishes

Refactor the trigger attach so its not dependant on the intergration
being already setup

fixes home-assistant#82495 & fixes home-assistant#81999
bdraco added a commit to bdraco/home-assistant that referenced this issue Nov 25, 2022
…finishes

Refactor the trigger attach so its not dependant on the intergration
being already setup

fixes home-assistant#82495 & fixes home-assistant#81999
@ballakers
Copy link
Author

Thanks @bdraco for getting on it!

balloob pushed a commit that referenced this issue Nov 30, 2022
…finishes (#82714)

Refactor the trigger attach so its not dependant on the intergration
being already setup

fixes #82495 & fixes #81999
@github-actions github-actions bot locked and limited conversation to collaborators Dec 30, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.