ironsheep / RPi-Reporter-MQTT2HA-Daemon

Linux service to collect and transfer Raspberry Pi data via MQTT to Home Assistant (for RPi Monitoring)
GNU General Public License v3.0
459 stars 64 forks source link

Discovery prefix is forced to lowercase #134

Open Bodrick01 opened 8 months ago

Bodrick01 commented 8 months ago

I use mixed case for my Home Assistant default discovery prefix. Having installed this marvellous tool on my Raspberry Pi, I struggled to see why I wasn't receiving any MQTT messages. MQTT Explorer shows that whilst I have specified a mixed-case prefix in the config file, the code forces it to lower case. I've attached am image of the code I think is responsible, but sadly I don;t have the technical wisdom to be able to change this and follow it through. Any chance this case-forcing can be removed, please? Many thanks. image

bsimmo commented 8 months ago

In you own code just remove the .lower from the end of the line. Open the python file on your Pi, find that line and just delete that section of text and save. Reboot (or turn of and on the service) You may need to do it every time you update the program.

On Mon, 5 Feb 2024, 5:41 pm Bodrick01, @.***> wrote:

I use mixed case for my Home Assistant default discovery prefix. Having installed this marvellous tool on my Raspberry Pi, I struggled to see why I wasn't receiving any MQTT messages. MQTT Explorer shows that whilst I have specified a mixed-case prefix in the config file, the code forces it to lower case. I've attached am image of the code I think is responsible, but sadly I don;t have the technical wisdom to be able to change this and follow it through. Any chance this case-forcing can be removed, please? Many thanks. image.png (view on web) https://github.com/ironsheep/RPi-Reporter-MQTT2HA-Daemon/assets/49242590/2dda3044-61d0-4840-ba2c-22f1b7c07935

— Reply to this email directly, view it on GitHub https://github.com/ironsheep/RPi-Reporter-MQTT2HA-Daemon/issues/134, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACYAXN3IX3YHZKFMV6GH2ZDYSEKURAVCNFSM6AAAAABC2R3DDGVHI2DSMVQWIX3LMV43ASLTON2WKOZSGEYTSMJQHEZDQNA . You are receiving this because you are subscribed to this thread.Message ID: @.***>