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.

perfect, thanks :slight_smile:

hi, just got round to trying it, but for some reason getting errors…

my code…

substitutions:
  name: konnected-87061b
  friendly_name: KonnectedPanel
  warning_beep_pin: $zone5

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

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

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

api:
  encryption:
    key: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

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
```

when validating getting ....

```
INFO ESPHome 2024.9.2
INFO Reading configuration /config/esphome/konnected-87061b.yaml...
WARNING Found '$zone5' (see substitutions->warning_beep_pin) which looks like a substitution, but 'zone5' was not declared
WARNING Found '$project_name' (see esphome->project->name) which looks like a substitution, but 'project_name' was not declared
WARNING Found '$project_version' (see esphome->project->version) which looks like a substitution, but 'project_version' was not declared
WARNING Found '$zone1' (see binary_sensor->0->pin->number) which looks like a substitution, but 'zone1' was not declared
WARNING Found '$sensor_debounce_time' (see binary_sensor->0->filters->0->delayed_on_off) which looks like a substitution, but 'sensor_debounce_time' was not declared
WARNING Found '$zone2' (see binary_sensor->1->pin->number) which looks like a substitution, but 'zone2' was not declared
WARNING Found '$sensor_debounce_time' (see binary_sensor->1->filters->0->delayed_on_off) which looks like a substitution, but 'sensor_debounce_time' was not declared
WARNING Found '$zone3' (see binary_sensor->2->pin->number) which looks like a substitution, but 'zone3' was not declared
WARNING Found '$sensor_debounce_time' (see binary_sensor->2->filters->0->delayed_on_off) which looks like a substitution, but 'sensor_debounce_time' was not declared
WARNING Found '$zone4' (see binary_sensor->3->pin->number) which looks like a substitution, but 'zone4' was not declared
WARNING Found '$sensor_debounce_time' (see binary_sensor->3->filters->0->delayed_on_off) which looks like a substitution, but 'sensor_debounce_time' was not declared
WARNING Found '$zone6' (see binary_sensor->4->pin->number) which looks like a substitution, but 'zone6' was not declared
WARNING Found '$sensor_debounce_time' (see binary_sensor->4->filters->0->delayed_on_off) which looks like a substitution, but 'sensor_debounce_time' was not declared
WARNING Found '$alarm' (see switch->0->pin->number) which looks like a substitution, but 'alarm' was not declared
WARNING Found '$zone5' (see switch->1->pin) which looks like a substitution, but 'zone5' was not declared
WARNING Found '$blink_on_state' (see globals->0->initial_value) which looks like a substitution, but 'blink_on_state' was not declared
WARNING Found '$status_led' (see light->0->pin->number) which looks like a substitution, but 'status_led' was not declared
WARNING Found '${warning_beep_pulse_time}' (see light->1->effects->0->strobe->colors->0->duration) which looks like a substitution, but 'warning_beep_pulse_time' was not declared
WARNING Found '${warning_beep_pause_time}' (see light->1->effects->0->strobe->colors->1->duration) which looks like a substitution, but 'warning_beep_pause_time' was not declared
WARNING Found '$zone5' (see substitutions->warning_beep_pin) which looks like a substitution, but 'zone5' was not declared
WARNING Found '$project_name' (see esphome->project->name) which looks like a substitution, but 'project_name' was not declared
WARNING Found '$project_version' (see esphome->project->version) which looks like a substitution, but 'project_version' was not declared
WARNING Found '$zone1' (see binary_sensor->0->pin->number) which looks like a substitution, but 'zone1' was not declared
WARNING Found '$sensor_debounce_time' (see binary_sensor->0->filters->0->delayed_on_off) which looks like a substitution, but 'sensor_debounce_time' was not declared
WARNING Found '$zone2' (see binary_sensor->1->pin->number) which looks like a substitution, but 'zone2' was not declared
WARNING Found '$sensor_debounce_time' (see binary_sensor->1->filters->0->delayed_on_off) which looks like a substitution, but 'sensor_debounce_time' was not declared
WARNING Found '$zone3' (see binary_sensor->2->pin->number) which looks like a substitution, but 'zone3' was not declared
WARNING Found '$sensor_debounce_time' (see binary_sensor->2->filters->0->delayed_on_off) which looks like a substitution, but 'sensor_debounce_time' was not declared
WARNING Found '$zone4' (see binary_sensor->3->pin->number) which looks like a substitution, but 'zone4' was not declared
WARNING Found '$sensor_debounce_time' (see binary_sensor->3->filters->0->delayed_on_off) which looks like a substitution, but 'sensor_debounce_time' was not declared
WARNING Found '$zone6' (see binary_sensor->4->pin->number) which looks like a substitution, but 'zone6' was not declared
WARNING Found '$sensor_debounce_time' (see binary_sensor->4->filters->0->delayed_on_off) which looks like a substitution, but 'sensor_debounce_time' was not declared
WARNING Found '$alarm' (see switch->0->pin->number) which looks like a substitution, but 'alarm' was not declared
WARNING Found '$zone5' (see switch->1->pin) which looks like a substitution, but 'zone5' was not declared
WARNING Found '$blink_on_state' (see globals->0->initial_value) which looks like a substitution, but 'blink_on_state' was not declared
WARNING Found '$status_led' (see light->0->pin->number) which looks like a substitution, but 'status_led' was not declared
WARNING Found '${warning_beep_pulse_time}' (see light->1->effects->0->strobe->colors->0->duration) which looks like a substitution, but 'warning_beep_pulse_time' was not declared
WARNING Found '${warning_beep_pause_time}' (see light->1->effects->0->strobe->colors->1->duration) which looks like a substitution, but 'warning_beep_pause_time' was not declared
WARNING Found '$zone5' (see output->0->pin->number) which looks like a substitution, but 'zone5' was not declared
Failed config

esphome: None
  name: konnected-87061b
  friendly_name: KonnectedPanel
  name_add_mac_suffix: False
  project: 
    
    project name needs to have a namespace.
    name: $project_name
    version: $project_version
  on_boot: 
    priority: 800.0
    then: 
      - text_sensor.template.publish: 
          id: device_id
          state: !lambda |-
```

?

thanks

All of the substitution variables are found here:

You will need to copy/paste the substitutions section into your own firmware config if you want to custom maintain it.