OSRAM Lightfy Dimming Switch

I recenttly bought OSRAM Lightfy LED light bulbs and they work as intended with all of their features in the right place. However the OSRAM Lightfy dimming switch is being recognized by HA (on hassio) as a temperature sensor and it has NO temperature sensor on its components. How do I get HA to properly discover this zigbee device and how would i get it to control the lights i want it to control on HA?

Bump

Did you ever figure this out?

I have it working via zigbee USB (HUSBZB-1) dongle.

Posting here to remind myself to post my config and setup.

Can you post your configs?

So - I used the standard zha library to pair the switch to HASS.

This results in a new “binary sensor” being added to hass, with an on/off state and attibute of “Level” from 0-255 which is the brightness value.
binary_sensor.centralite_3130_0000000_1

Then, I use NodeRED to detect when the state changes and change the light status accordingly, but this could be done with a simple YAML automation as well.

EX:

automation:
  trigger:
    platform: state
    entity_id: binary_sensor.centralite_3130_0000000_1
    to: 'on'
  action:
    service: light.turn_on
    entity_id: light.my_light