2024-09-23 02:10:32 -05:00
|
|
|
%% ACLs for emqx %%
|
2024-09-23 02:32:09 -05:00
|
|
|
%% publish, subscribe, or all for both %%
|
|
|
|
%% https://docs.emqx.com/en/emqx/latest/access-control/authz/file.html %%
|
|
|
|
|
2024-09-23 02:10:32 -05:00
|
|
|
{allow, {user, "jahanson"}, all, ["#"]}.
|
2024-09-23 03:25:29 -05:00
|
|
|
|
|
|
|
{allow, {user, "tasmota"}, all, [
|
2024-09-23 04:07:20 -05:00
|
|
|
"tasmota/discovery/#",
|
|
|
|
"tele/tasmota_+/+",
|
2024-09-23 04:12:42 -05:00
|
|
|
"cmnd/tasmota_+/+",
|
|
|
|
"cmnd/tasmota_+/#"
|
2024-09-23 03:25:29 -05:00
|
|
|
]}.
|
|
|
|
|
|
|
|
{allow, {user, "homeassistant"}, subscribe, [
|
2024-09-23 04:07:20 -05:00
|
|
|
"stat/tasmota_+/+",
|
|
|
|
"tele/tasmota_+/+"
|
2024-09-23 03:25:29 -05:00
|
|
|
]}.
|
|
|
|
|
2024-09-23 02:10:32 -05:00
|
|
|
{deny, all}.
|