I’ve got a Lutron Caseta bridge and a pico remote.
Using the even listener with event type: lutron_caseta_button_event I get the following when I press and release the on button:
event_type: lutron_caseta_button_event
data:
serial: 60644126
type: Pico2Button
button_number: 4
leap_button_number: 2
device_name: Pico
device_id: eb03102dbb6d02c4a268b245f8c7f05b
area_name: Living Room
button_type: "off"
action: release
origin: LOCAL
time_fired: "2023-07-11T23:05:08.180371+00:00"
context:
id: 01H53K73AMT35BC3JHN2BEJMDY
parent_id: null
user_id: null
event_type: lutron_caseta_button_event
data:
serial: 60644126
type: Pico2Button
button_number: 4
leap_button_number: 2
device_name: Pico
device_id: eb03102dbb6d02c4a268b245f8c7f05b
area_name: Living Room
button_type: "off"
action: press
origin: LOCAL
time_fired: "2023-07-11T23:05:07.958587+00:00"
context:
id: 01H53K733PBK0MB3XM2V43488W
parent_id: null
user_id: null
I get a similar set of events when I press the off button with button_type: “off” etc,
I wrote an automation as follows:
# pico remote
- alias: Lutron Caseta pico remote receive
trigger:
platform: event
event_type: luton_caseta_button_event
event_data:
serial: '60644126'
action: 'press'
action:
- choose:
- conditions:
- '{{ trigger.event.data.button_type == "on" }}'
sequence:
- service: homeassistant.turn_on
entity_id: light.dining_room_chandelier
- conditions:
- '{{ trigger.event.data.button_type == "off" }}'
sequence:
- service: homeassistant.turn_off
entity_id: light.dining_room_chandelier
It does nothing. Can you spot my error?