Fix inovelli_mode_cycling blueprint trigger for event entities

Correct the trigger mechanism to match how Home Assistant event entities
actually work. Event entities trigger on state changes and expose the
actual event type as an attribute, not as event_data.

Changes:
- Replace platform:event trigger with platform:state
- Add condition to check event_type attribute for 'config_single'
- Remove incorrect event_data and state_changed event_type usage

This matches the working pattern used in production automations and
ensures the blueprint triggers correctly when the config button is
pressed on Inovelli switches.
This commit is contained in:
2025-12-20 15:24:24 -08:00
parent 44c7771f09
commit 4f344e7b16

View File

@@ -53,11 +53,14 @@ mode: single
max_exceeded: silent max_exceeded: silent
trigger: trigger:
- platform: event - platform: state
event_type: state_changed
event_data:
entity_id: !input switch_action_event entity_id: !input switch_action_event
new_state.state: "config_single"
condition:
- condition: state
entity_id: !input switch_action_event
attribute: event_type
state: "config_single"
action: action:
- variables: - variables: