Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding MQTT credentials #1

Open
thephatmaster opened this issue Feb 8, 2024 · 0 comments
Open

Adding MQTT credentials #1

thephatmaster opened this issue Feb 8, 2024 · 0 comments

Comments

@thephatmaster
Copy link

thephatmaster commented Feb 8, 2024

Hi there,

Feel free to send me on my way if this isn't a project under development any more, or whether this would be better as a discussion.

I'm a Home Assistant user trying to explore the MQTT features of Vectrix - particularly exposing as much as I can about Vector's state via MQTT to HA (starting with battery, face detected and "needs help")

However, my MQTT broker is set up to use login credentials.

I tried amending vectrix by adding the following:

if MQTT_logging:
    try:
        import paho.mqtt.client as mqtt
        client.tls_set()  # <--- even without arguments
        client.username_pw_set(username="MyUser", password="MyPass")

However - I get the three warnings under except.

Pip tells me the requirement for the library paho-mqtt is satisfied.

Any idea what I'm doing wrong?

Would I be better off just trying to code my own Vector to MQTT script from scratch as a learning project? (this would be a shame as Vectrix makes Vector very fun)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant