githubcdr / opentherm2mqtt

OpenThermGateway2MQTT
GNU General Public License v2.0
10 stars 3 forks source link

Make the topic root path configurable #1

Closed bluewalk closed 8 years ago

bluewalk commented 9 years ago

Hi, first off, nice job!

Do you think it's possible to make the topic root path configurable and starting with the same root topic, eg otgw/control , otgw/log , otgw/value and otgw/status? This way it would make it easier to implement it into an already existing broker.

Also, just a minor thing tho, leading forward slashes are not common practice.

Cheers

githubcdr commented 8 years ago

Good feedback I missed, sorry :)

I agree the starting slash was silly and I removed this. I like your suggestion, for now I use

control// value// log// status//

I feel this is more scalable for other devices, also I implemented a mqtt will in /status.

This is the best option for me at the moment but feel free to change as you like ofcourse.