So without studying your code fully, am I right in saying your node will subscribe to a specific MQTT topic (homie/#
) and provide a kinda store to permit uses to access values whenever they want?
If so, users could achieve this with standard nodes but I do admire the efforts to simplify it for users.
However, you should be more generic. For example, hard coding homie/#
will seriously limit usability for a lot of people. This should be a setting property on your nodes configuration.
Forgive me if I am reading this wrong.
Let me know and I will try to help as best I can