I have a Cooper Wiring Devices RF9500AW battery operated wall switch that I used with SmartThings to control a smart bulb in a closet. When I excluded it and then added it to HA, it shows up as a “Battery Switch” with only the z-wave entity. How do I get it to show button presses?
It likely only triggers zwave events when you push the buttons so you won’t have a typical “switch” entity to operate from.
If you go to “developers tools” and then to “events” you can listen for “zwave_scene_activated” events.
THen once you push your remote button data should show up in the bottom of the page. Write down which data corresponds to which button press (including long-press or double-press if the remote supports it). Then you can use that data in automations as in the following example:
- alias: LC MBR Lamp Toggle with Scene Switch
trigger:
- platform: event
event_type: zwave.scene_activated
event_data:
entity_id: zwave.mbr_scene_switch
node_id: 35
scene_id: 1
scene_data: 2
action:
- service: script.turn_on
data_template:
entity_id: >
{% if is_state('light.zw_mbr_light_level', 'on') %}
script.lc_mbr_lamp_control_off
{% else %}
script.lc_mbr_lamp_control_on
{% endif %}