pattern --> username

This commit is contained in:
Joseph Hanson 2024-09-22 17:25:51 -05:00
parent 63904c0b90
commit 7788ef96d5
Signed by: jahanson
SSH key fingerprint: SHA256:vy6dKBECV522aPAwklFM3ReKAVB086rT3oWwiuiFG7o

View file

@ -24,11 +24,11 @@ spec:
type = built_in_database type = built_in_database
enable = true enable = true
rules = [ rules = [
{allow, {pattern, "tasmota_"}, publish, ["tasmota/discovery/#"]}. {allow, {username, "tasmota"}, publish, ["tasmota/discovery/#"]}.
{allow, all, subscribe, ["tasmota/discovery/#"]}. {allow, all, subscribe, ["tasmota/discovery/#"]}.
{allow, {pattern, "tasmota_"}, publish, ["cmnd/tasmota_+/#"]}. {allow, {username, "tasmota"}, publish, ["cmnd/tasmota_+/#"]}.
{allow, {pattern, "tasmota_"}, publish, ["stat/tasmota_+/#"]}. {allow, {username, "tasmota"}, publish, ["stat/tasmota_+/#"]}.
{allow, {pattern, "tasmota_"}, publish, ["tele/tasmota_+/#"]}. {allow, {username, "tasmota"}, publish, ["tele/tasmota_+/#"]}.
{allow, all, subscribe, ["cmnd/tasmota_+/#", "stat/tasmota_+/#", "tele/tasmota_+/#"]}. {allow, all, subscribe, ["cmnd/tasmota_+/#", "stat/tasmota_+/#", "tele/tasmota_+/#"]}.
] ]
} }