pai icon indicating copy to clipboard operation
pai copied to clipboard

Cannot enable MQTT authenticated mode for multiple users

Open lpaolini opened this issue 1 year ago • 4 comments

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 avatar Sep 27 '24 19:09 lpaolini

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

yozik04 avatar Sep 27 '24 20:09 yozik04

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

lpaolini avatar Sep 27 '24 20:09 lpaolini

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 avatar Sep 28 '24 14:09 yozik04

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

yozik04 avatar Sep 28 '24 14:09 yozik04