Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix alarm-panel-local build #71

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
35 changes: 27 additions & 8 deletions alarm-panel-pro-esp32-local-alarm.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,10 @@ substitutions:
project_name: konnected.alarm-panel-pro-esp32-local
project_version: "0.2.2"

# ETHERNET CONFIG
# On the Alarm Panel Pro v1.5, v1.6 and v1.7 use LAN8720. On the v1.8 set this variable to RTL8201.
ethernet_type: RTL8201

sensor_debounce_time: 200ms
warning_beep_pulse_time: 100ms
warning_beep_pause_time: 130ms
Expand Down Expand Up @@ -126,12 +130,12 @@ state_machine:
- name: 'arming'
on_enter:
- light.turn_on:
id: warning_beep
id: warning_beep_1
effect: strobe
- delay: !lambda return id(arming_timeout).state * 1000;
- state_machine.transition: arm_away
on_leave:
- light.turn_off: warning_beep
- light.turn_off: warning_beep_1

- name: 'armed_away'
- name: 'armed_home'
Expand All @@ -140,12 +144,12 @@ state_machine:
- name: 'pending'
on_enter:
- light.turn_on:
id: warning_beep
id: warning_beep_1
effect: strobe
- delay: !lambda return id(pending_timeout).state * 1000;
- state_machine.transition: trigger
on_leave:
- light.turn_off: warning_beep
- light.turn_off: warning_beep_1

- name: 'triggered'
on_enter:
Expand All @@ -155,14 +159,14 @@ state_machine:
then:
- switch.turn_on: alarm1
- light.turn_on:
id: warning_beep
id: warning_beep_1
effect: strobe

- delay: !lambda return id(trigger_timeout).state * 60 * 1000;
- state_machine.transition: arm_away
on_leave:
- switch.turn_off: alarm1
- light.turn_off: warning_beep
- light.turn_off: warning_beep_1

inputs:
- name: arm_away
Expand Down Expand Up @@ -348,7 +352,12 @@ packages:
####
# WIFI
# Enables WiFi connectivity and diagnostics. Uncommet below to enable WiFi.
- packages/wifi.yaml
#- packages/wifi.yaml

####
# ETHERNET
# Enables ethernet connectivity.
- packages/ethernet.yaml

####
# STATUS LED
Expand Down Expand Up @@ -384,9 +393,19 @@ packages:


dashboard_import:
package_import_url: github://konnected-io/konnected-esphome/alarm-panel-pro-esp32-local-alarm.yaml@master
package_import_url: github://konnected-io/konnected-esphome/alarm-panel-pro-v1.8-ethernet.yaml@master
import_full_config: false

# Update for Ethernet issue on v1.8 and v1.9 (batch 2406)
# requires ESPHome 2024.6.0 and newer
esphome:
min_version: '2024.6.0'
ethernet:
phy_registers:
- address: 0x10
value: 0x1FFA
page_id: 0x07

####
# WEB SEVER
# Enables the built-in web server for viewing the device state, internals and controls via web browser
Expand Down