ESPhome and supplied piezo buzzer

Hi,

Currently the entity “Alarm Panel Warning Beep” activates the main siren

I’ve attached the piezo buzzer to zone 5

How do i “re-assign” this to zone 5 so that i can start using the buzzer in my HA automations please (for example to use for entry exit tones)?

I assume i have to edit the the esphome device yaml file to reassign?

Thanks

Yes, you will need to edit the YAML for the device. Here’s the github repo:

hmm getting a bit confused here …after reading doc’s i tried following new esphome config …


substitutions:
  name: konnected-87061b
  friendly_name: KonnectedPanel

packages:
  url: http://github.com/konnected-io/konnected-esphome
  ref: master
  refresh: 5min
  files:
    - packages/alarm-panel-esp8266-base.yaml
    - packages/alarm-panel/zone1.yaml
    - packages/alarm-panel/zone2.yaml
    - packages/alarm-panel/zone3.yaml
    - packages/alarm-panel/zone4.yaml
    - packages/alarm-panel/zone6.yaml
    - packages/alarm-panel/alarm.yaml
    - packages/wifi.yaml
    - packages/warning-beep.yaml
    - packages/status-led.yaml

esphome:
  name: ${name}
  name_add_mac_suffix: false
  friendly_name: ${friendly_name}

switch:
  - platform: gpio
    pin: $zone5
    name: output5

api:
  encryption:
    key: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

wifi:
  ssid: !secret wifi_ssid
  password: !secret wifi_password
  manual_ip:
    static_ip: 192.168.30.4
    gateway: 192.168.30.1
    subnet: 255.255.255.0
    dns1: 192.168.30.2

but when i validate before uploading am getting the following error output?


INFO ESPHome 2024.9.2
INFO Reading configuration /config/esphome/konnected-87061b.yaml...
Failed config

packages: [source /config/esphome/konnected-87061b.yaml:6]
  
  not a valid value.
  url: http://github.com/konnected-io/konnected-esphome
  
  not a valid value.
  ref: master
  
  not a valid value.
  refresh: 5min
  
  Shorthand only for strings.
  files: 
    - packages/alarm-panel-esp8266-base.yaml
    - packages/alarm-panel/zone1.yaml

any ideas please?

Assuming you’ve adopted your ESPHome device into ESPHome dashboard in HA, just edit the device configuration and add the following to the substitutions section:

substitutions:
  warning_beep_pin: $zone5

Then, you want to remove zone5 package from the input zones, so your packages section should look like this (notice the zone5 package is removed):

packages:
  remote_package:
    url: https://github.com/konnected-io/konnected-esphome
    ref: master
    refresh: 5min
    files:
      - packages/core-esp8266.yaml
      - packages/alarm-panel/zone1.yaml
      - packages/alarm-panel/zone2.yaml
      - packages/alarm-panel/zone3.yaml
      - packages/alarm-panel/zone4.yaml
      - packages/alarm-panel/zone6.yaml
      - packages/alarm-panel/alarm.yaml
      - packages/wifi.yaml
      - packages/status-led.yaml
      - packages/warning-beep.yaml

Also note that if managing the YAML files for your firmware is a bit too tedious, we now have the ability to customize this in the Konnected app instead. Just use the Konnected app to discover the device, tap Settings to set up your zones and outputs, and update the firmware via the app. When you do this, you can remove the device config from ESPHome dashboard.