Access control with ESPHome, Home Assistant and Node Red

Did you make any significant change to the code? Sure there was no formatting errors if you copy/pasted it? Indentation correct?