Closed zepiaf closed 2 years ago
For the mqtt topic, I think that having a default base topic of "hydroqc" would be a good idea. hydroqc/winterpeak/#
This would let us add more subtopic later on for other info fetched from the API. You may also want to add the contractid somewhere in there to accommodate future users with more than one contract.
hydroqc/123456/winterpeak/ hydroqc/123456/otherstats hydroqc/789123/winterpeak hydroqc/789123/otherstats
And the cherry on top would be to have a default of hydroqc for the topic but have it configurable in the config.yaml file. I think this structure would also help with an eventual integration of hass mqtt discovery further down the road.
basetopic and contract added
Major refactoring :
Data format is now more versatile:
Configuration is now in yaml
Documentation has been updated