I have an iCasa ICZB-KPD18S wall switch connected to zigbee2mqtt. I can see its messages in MQTT. According to lib/extension/homeassistant.js, this device is exposed as a sensor_click, sensor_brightness, and sensor_action. I can also observe these entities in HA.
What is now the best way to make the connection to a light ? I’m thinking about automations for brightness and action but I find the separate handing of the two events unnecessarily complex given that the properties simply need to be propagated unmodified to the light entity.
The light I’m interfacing to is not Zigbee.