MichaelB2018 / lc7001-mqtt-bridge

Legrand LC7001 to MQTT brdige for Home Assistant
MIT License
6 stars 2 forks source link

Added unique IDs to /config topic and differentiation for lights & switches #2

Closed Boh1 closed 3 years ago

Boh1 commented 3 years ago

This gives more fine-grained ability to surface and config Legrand devices in Home Assistant (with auto discovery).

MichaelB2018 commented 3 years ago

Thanks!

MichaelB2018 commented 3 years ago

I had to revert out the naming as it broke my automation. You call them "switch" while I used to call them "light". If you prefer we can make this configurable based on the config file so to be back to a single code base?

Boh1 commented 3 years ago

I think configurable would be a great idea.

The only advantage of switch is related to how the devices get rendered in Home Assistant since they can't dim like lights do.