#hi guys ๐
1 messages ยท Page 1 of 1 (latest)
event captured in state_changed:
event_type: state_changed
data:
entity_id: event.switch_victor_s_office_2
old_state:
entity_id: event.switch_victor_s_office_2
state: "2024-01-27T11:39:31.991+00:00"
attributes:
event_types:
- initial_press
- short_release
- long_press
- long_release
- multi_press_ongoing
- multi_press_complete
event_type: initial_press
newPosition: 1
device_class: button
friendly_name: Switch Victor's Office
last_changed: "2024-01-27T11:39:31.991844+00:00"
last_updated: "2024-01-27T11:39:31.991844+00:00"
context:
id: 01HN5BFF8QKK0GR1ME8EAKZ1RX
parent_id: null
user_id: null
new_state:
entity_id: event.switch_victor_s_office_2
state: "2024-01-27T11:39:31.994+00:00"
attributes:
event_types:
- initial_press
- short_release
- long_press
- long_release
- multi_press_ongoing
- multi_press_complete
event_type: short_release
previousPosition: 1
device_class: button
friendly_name: Switch Victor's Office
last_changed: "2024-01-27T11:39:31.994626+00:00"
last_updated: "2024-01-27T11:39:31.994626+00:00"
context:
id: 01HN5BFF8T8MK1ZMECHZ1WV89N
parent_id: null
user_id: null
origin: LOCAL
time_fired: "2024-01-27T11:39:31.994626+00:00"
context:
id: 01HN5BFF8T8MK1ZMECHZ1WV89N
parent_id: null
user_id: null
my syntax.. which doesnt work...
alias: turn_on_lights_victors_office
trigger:
- platform: event
event_type: state_changed
event_data:
entity_id: event.switch_victor_s_office_2
old_state:
attributes:
event_type: initial_press
new_state:
attributes:
event_type: short_release
action:
- service: light.turn_on
target:
entity_id: light.victor_s_office_main_light_9