MQTT ESPHome/ESP32 Alarm Keypad with Screen

I ran into the same issue like Franceso and solved it by adding a ‘discovery: false’ statement to the MQTT config in the ESPHome config. This prevents the same entities from being created double.

The other thing that needed to be done is changing all occurences of ‘payload_template:’ to just ‘payload:’ in the blueprint yaml file and I changed:

{{lights| map(‘regex_replace’, ‘^(.*)$’, “light.” + entity_id_prefix + “_\1”)|list}}

to:

{{ lights | map(‘regex_replace’, ‘^(.*)$’, “light.” + entity_id_prefix + “_” + “\1”) | join(', ') }}

To OP, thanks for creating and sharing this solution!! :slight_smile:

@TheHolyRoger Could you add a schematic to the keypad and post a working esphome yaml. How do you set the security code?