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

Cannot enable MQTT authenticated mode for multiple users #505

Open
lpaolini opened this issue Sep 27, 2024 · 4 comments
Open

Cannot enable MQTT authenticated mode for multiple users #505

lpaolini opened this issue Sep 27, 2024 · 4 comments
Labels
question Further information is requested

Comments

@lpaolini
Copy link
Contributor

Alarm system

EVO192 v.7.70.1

Environment

Rpi/docker

Git branch

master

Question

I'm trying to enable MQTT authenticated mode for multiple users, but the docker container fails at startup.

MQTT_CHALLENGE_SECRET = {'foo': 'bar'}
MQTT_CHALLENGE_ROUNDS = 10000

However, it starts regularly when using a single secret.

MQTT_CHALLENGE_SECRET = 'foo'
MQTT_CHALLENGE_ROUNDS = 10000

What's wrong with the first one?

Logs (if required)

Attempting to load configuration from /etc/pai/pai.conf
Error parsing configuration: Invalid value type <class 'dict'> for config argument MQTT_CHALLENGE_SECRET. Allowed are: [<class 'str'>, <class 'NoneType'>]
@lpaolini lpaolini added the question Further information is requested label Sep 27, 2024
@yozik04
Copy link
Collaborator

yozik04 commented Sep 27, 2024

I don't think first is valid. Never used that feature.

@lpaolini
Copy link
Contributor Author

lpaolini commented Sep 27, 2024

hmm... so MQTT interface documentation (Authenticated mode paragraph) is incorrect.

@yozik04
Copy link
Collaborator

yozik04 commented Sep 28, 2024

If you want to push through HA Plugin configuration, then it might be not possible to pass in dictionary. But most probably it will work properly if you will edit configuration file directly (Possible if you do not use Hass OS)

@yozik04
Copy link
Collaborator

yozik04 commented Sep 28, 2024

But I need to verify input filter. It might be wrong.

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

No branches or pull requests

2 participants