Set switch mqtt read-only mode

do not work

things
.things


.things

the value of STATE is equal to NULL. Where am I wrong?