ParadoxAlarmInterface/pai

Cannot enable MQTT authenticated mode for multiple users

オープン

#505 opened on 2024/09/27

 (4 件のコメント) (0 件のリアクション) (0 人の担当者)Python (113 件のフォーク)auto 404
bughelp wantedquestion

Repository metrics

Stars
 (414 個のスター)
PR merge metrics
 (PR metrics pending)

説明

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'>]

コントリビューターガイド