Hello,
I’m trying to extend the wifi component, but it’s not allowed
in my base package I have this.
wifi:
id: wifiId
ssid: !secret wifi_ssid
password: !secret wifi_password
# power_save_mode: NONE
power_save_mode: HIGH
# Enable fallback hotspot (captive portal) in case wifi connection fails
ap:
ssid: "${device_name}"
password: !secret wifi_password
trying to extend it flike this
wifi:
id: !extend wifiId
power_save_mode: NONE
but get this error
Failed config
wifi: [source /config/esphome/.base.yaml:1]
Source for extension of ID 'wifiId' was not found.
id: !extend wifiId
ssid: !secret wifi_ssid
password: !secret wifi_password
power_save_mode: NONE
ap:
ssid: toilet-light
password: !secret wifi_password
I can just not use extend but I don’t know for sure how that would be handled.
why can’t I use !extend here?