Last year I found Frenck’s blog regarding the doorbell sensor (https://frenck.dev/diy-smart-doorbell-for-just-2-dollar/)
Just what I was/am looking for!!
Ordered the parts, and upon receiving them I started the steps in the blog.
All is well until I validate the (copy+paste) code on the blog.
At that moment the errors come flowing:
Failed config switch.template: [source /config/esphome/doorbell.yaml:81] platform: template name: Doorbell Chime Active id: chime_active restore_state: False turn_on_action: [source /config/esphome/doorbell.yaml:86] 'then' is a required option for . - [source /config/esphome/doorbell.yaml:86] [globals.set] is an invalid option for . Please check the indentation. globals.set: [source /config/esphome/doorbell.yaml:87] id: chime value: true turn_off_action: [source /config/esphome/doorbell.yaml:90] 'then' is a required option for . - [source /config/esphome/doorbell.yaml:90] [globals.set] is an invalid option for . Please check the indentation. globals.set: [source /config/esphome/doorbell.yaml:91] id: chime value: false lambda: return id(chime);
It looked like some indentation issue, but I can’t seem to find it.
Tried reaching out to Frenck, but he’s obviously too busy to answer my n00b answer
Now 3 months along the line, I wanted to look into it again.
The issue lies within the templating used in the config…
Is there anyone out there that can explain to me (like I’m a 2 year old ;)) what’s wrong?
This is advanced yaml config templating I’m not ready for