osresearch / hcpy

Python tool to talk to Home Connect appliances over the local network (no cloud required)
276 stars 32 forks source link

MQTT with password #39

Open bartsnijder opened 11 months ago

bartsnijder commented 11 months ago

Hi! Like the work that is done here; liking each attempt to move IOT control without internet dependencies. My MQTT server needs a password. This seems already implemented in https://github.com/bruestel/hcpy (forked). I'm new to github. Can I suggest the edits necessary to apply user/pwd to the mqtt server myself or is there a main driver for this project? Thanks!

pmagyar commented 11 months ago

Hey, just had the same problem today and found the PR https://github.com/osresearch/hcpy/pull/25 You can just copy the file https://github.com/osresearch/hcpy/blob/81d493834a92e6719f89e3cf7b7cfea7fa4a2c31/hc2mqtt and replace the current hc2mqtt file. Worked for me and code looks fine.

The parameters are: --mqtt_username and --mqtt_password

@osresearch can you review the pr too and merge it?