pattern --> username
This commit is contained in:
parent
63904c0b90
commit
7788ef96d5
1 changed files with 4 additions and 4 deletions
|
@ -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_+/#"]}.
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue