ThomDietrich / miflora-mqtt-daemon

Linux service to collect and transfer Xiaomi Mi Flora plant sensor data via MQTT to your smart home system, with cluster support 🌱🌼πŸ₯€πŸ‘🌳
MIT License
606 stars 141 forks source link

MQTT Push - Topic not case sensitive #160

Closed netcat-2000 closed 1 year ago

netcat-2000 commented 1 year ago

I use a case sensitive written topic for mqtt - in config.ini it is written with case sensitive - when mqtt push is done the broker receive it in lower case only. Other systems support case sensitive and all data are under the correct topic - but not miflora - it always has an extra topic - with the same name - but in lower case only. Can you fix this so the mqtt push is using case sensitive for the topic? Thank you Oliver

ThomDietrich commented 1 year ago

Hey, You need to be more specific. In many cases the transformation to lower() is intentional.

I use a case sensitive written topic

Are you talking about the base topic? Which reporting_method?

netcat-2000 commented 1 year ago

Hi, i fully aggree - i was a bit lazy in details and on my mobile. I use MQTT mosquitto broker as broker together with Home Assistant - all on Docker. I am not a developer but i reviewed your code and have see all the "lower" statements. And i still use upper chars (old skool german). No worries at all - i already switch to a lowercase mqqt topic for that client and now all data are in one tenant . I really do not need to have a differentiation possibility in myflora. Thanks for your feedback - i think we can close this thread. BR