Closed lasote closed 6 years ago
Looks good and new entry in ini file is totally fine.
I'll also keep the script to compress the html.
However, I dont think another discovery prefix is needed. That prefix should be a general parameter for the MQTTManager object. Fo the second relay you only need to add that MqttDiscoveryConponent for that relay as a light/switch.
I'll take a better look to it later.
Thanks!
otherwise the discovery made no sense and was not working
I would like to hear more about this: Why is it not working with two components for same discovery prefix?
The only thing I see that makes sense is to have two device names, one for each light.
Well, the component can be light and switch. If, for the same device you have two lights, who's distinguishing them in the discovery if they belong to the same device?
I added two improvements: