I am trying to see if a smart light switch can provide button depression information to create an automation (double tap-> all lights on). I am looking at a Leviton smart WiFi switch (will also investigate the Tapo version). I am brand new to HA and have nothing but the Leviton integration setup. I am in events with “*” for listing and only see state changes as shown below. I am looking for a button press not a state change. Is there any other way to see if the switch can provide that information?
When the light is on pressing on again provides nothing on the bus. I only see information when there is a state change. Is that the switch determining the current state and not rebroadcasting since it is already on?
In the data provided with the broadcast it states 32 parameters supported, is there a way to find out what those are? I can see in the mobile app numerous settings but those states are not listed in the broadcast below.
Lastly, I stopped seeing broadcasts from the switch and had to restart HA to see them again. I had cleared all events and started listening again but that did not work.
Thanks for any help.
event_type: state_changed
data:
entity_id: light.dimmer_1st_bedroom
old_state:
entity_id: light.dimmer_1st_bedroom
state: "off"
attributes:
supported_color_modes:
- brightness
color_mode: null
brightness: null
friendly_name: Dimmer 1st Bedroom
supported_features: 32
last_changed: "2024-11-16T15:09:41.582368+00:00"
last_reported: "2024-11-16T15:09:41.582368+00:00"
last_updated: "2024-11-16T15:09:41.582368+00:00"
context:
id: 01JCTRBKAEQB7N37TPJ8R6N7M8
parent_id: null
user_id: null
new_state:
entity_id: light.dimmer_1st_bedroom
state: "on"
attributes:
supported_color_modes:
- brightness
color_mode: brightness
brightness: 255
friendly_name: Dimmer 1st Bedroom
supported_features: 32
last_changed: "2024-11-16T15:10:11.568062+00:00"
last_reported: "2024-11-16T15:10:11.568062+00:00"
last_updated: "2024-11-16T15:10:11.568062+00:00"
context:
id: 01JCTRCGKGPF52R4PANJ061J92
parent_id: null
user_id: null
origin: LOCAL
time_fired: "2024-11-16T15:10:11.568062+00:00"
context:
id: 01JCTRCGKGPF52R4PANJ061J92
parent_id: null
user_id: null