letters and numbers in id

This commit is contained in:
Joseph Hanson 2024-09-23 02:49:19 -05:00
parent 828a596da3
commit 60d80ffa79
Signed by: jahanson
SSH key fingerprint: SHA256:vy6dKBECV522aPAwklFM3ReKAVB086rT3oWwiuiFG7o

View file

@ -3,6 +3,6 @@
%% https://docs.emqx.com/en/emqx/latest/access-control/authz/file.html %%
{allow, {user, "jahanson"}, all, ["#"]}.
{allow, {user, "tasmota"}, all, ["tasmota/discovery/#", "tele/tasmota_[^/]+/#", "cmnd/tasmota_[^/]+/#"]}.
{allow, {user, "homeassistant"}, subscribe, ["stat/tasmota_+/+", "tele/tasmota_+/+"]}.
{allow, {user, "tasmota"}, all, ["tasmota/discovery/#", "tele/tasmota_[A-Za-z0-9]+/#", "cmnd/tasmota_[A-Za-z0-9]+/#"]}.
{allow, {user, "homeassistant"}, subscribe, ["stat/tasmota_[A-Za-z0-9]+/#", "tele/tasmota_[A-Za-z0-9]+/#"]}.
{deny, all}.