erlang tuples, yay
This commit is contained in:
parent
c4da3a4360
commit
1c60618d7b
1 changed files with 12 additions and 2 deletions
|
@ -3,6 +3,16 @@
|
||||||
%% https://docs.emqx.com/en/emqx/latest/access-control/authz/file.html %%
|
%% https://docs.emqx.com/en/emqx/latest/access-control/authz/file.html %%
|
||||||
|
|
||||||
{allow, {user, "jahanson"}, all, ["#"]}.
|
{allow, {user, "jahanson"}, all, ["#"]}.
|
||||||
{allow, {user, "tasmota"}, all, ["tasmota/discovery/#", "tele/tasmota_[A-F0-9]+/[A-Za-z0-9_]+", "cmnd/tasmota_[A-F0-9]+/[A-Za-z0-9_]+"]}.
|
|
||||||
{allow, {user, "homeassistant"}, subscribe, ["stat/tasmota_[A-F0-9]+/[A-Za-z0-9_]+", "tele/tasmota_[A-F0-9]+/[A-Za-z0-9_]+"]}.
|
{allow, {user, "tasmota"}, all, [
|
||||||
|
"tasmota/discovery/#",
|
||||||
|
{re, "tele/tasmota_[A-F0-9]+/#"},
|
||||||
|
{re, "cmnd/tasmota_[A-F0-9]+/#"}
|
||||||
|
]}.
|
||||||
|
|
||||||
|
{allow, {user, "homeassistant"}, subscribe, [
|
||||||
|
{re, "stat/tasmota_[A-F0-9]+/#"},
|
||||||
|
{re, "tele/tasmota_[A-F0-9]+/#"}
|
||||||
|
]}.
|
||||||
|
|
||||||
{deny, all}.
|
{deny, all}.
|
||||||
|
|
Loading…
Reference in a new issue