Add a public wrapper called setConfig() to allow calling the protected publishConfig() during loop(). This appears to be necessary in order to set the icon, name, etc. on a dynamically created HASensor in the main loop.
My use case is a base station and multiple sensor nodes. The base station dynamically creates a new HASensor each time it receives a message from a sensor node with an ID it hasn't seen before.
Add a public wrapper called setConfig() to allow calling the protected publishConfig() during loop(). This appears to be necessary in order to set the icon, name, etc. on a dynamically created HASensor in the main loop.
My use case is a base station and multiple sensor nodes. The base station dynamically creates a new HASensor each time it receives a message from a sensor node with an ID it hasn't seen before.