Skip to content

Commit

Permalink
add ESPHome version text sensor; fixup FCC test firmware
Browse files Browse the repository at this point in the history
  • Loading branch information
heythisisnate committed Apr 17, 2024
1 parent bb7a6a2 commit 655f09c
Show file tree
Hide file tree
Showing 11 changed files with 74 additions and 20 deletions.
2 changes: 1 addition & 1 deletion alarm-panel-esp8266.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ substitutions:
name: konnected
friendly_name: Alarm Panel
project_name: konnected.alarm-panel-esp8266
project_version: "1.0.0"
project_version: "1.0.1"

####
# SETTINGS
Expand Down
2 changes: 1 addition & 1 deletion alarm-panel-pro-esp32-ethernet.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ substitutions:
name: konnected
friendly_name: Alarm Panel Pro
project_name: konnected.alarm-panel-pro-ethernet
project_version: "1.0.2"
project_version: "1.0.3"

# 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.
Expand Down
2 changes: 1 addition & 1 deletion alarm-panel-pro-esp32-wifi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ substitutions:
name: konnected
friendly_name: Alarm Panel Pro
project_name: konnected.alarm-panel-pro-wifi
project_version: "1.0.2"
project_version: "1.0.3"

sensor_debounce_time: 200ms
warning_beep_pulse_time: 100ms
Expand Down
2 changes: 1 addition & 1 deletion alarm-panel-pro-v1.8-ethernet.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ substitutions:
name: konnected
friendly_name: Alarm Panel Pro
project_name: konnected.alarm-panel-pro-ethernet
project_version: "1.0.2"
project_version: "1.0.3"

# 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.
Expand Down
2 changes: 1 addition & 1 deletion garage-door-GDOv1-S.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ substitutions:
name: konnected
friendly_name: Garage Door Opener
project_name: konnected.garage-door-gdov1-s
project_version: "1.1.1"
project_version: "1.1.2"
garage_door_cover_name: Garage Door
switch_name: Switch

Expand Down
2 changes: 1 addition & 1 deletion garage-door-GDOv2-Q.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ substitutions:
name: konnected
friendly_name: GDO blaQ
project_name: konnected.garage-door-gdov2-q
project_version: "0.1.2"
project_version: "0.1.3"
garage_door_cover_name: Garage Door
garage_light_name: Garage Light
garage_openings_name: Garage Openings
Expand Down
2 changes: 1 addition & 1 deletion garage-door-GDOv2-S.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ substitutions:
name: konnected
friendly_name: Garage Door Opener
project_name: konnected.garage-door-gdov2-s
project_version: "1.1.1"
project_version: "1.1.2"
garage_door_cover_name: Garage Door
switch_name: STR output

Expand Down
71 changes: 58 additions & 13 deletions gdo-fcc-test.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,55 @@
substitutions:

####
# NAME
# By default, the name of the ESPHome device is "konnected-xxxxxx" where xxxxxx is a unique identifier. The device's
# hostname on your network is also defined by the name, defaulting to "konnected-xxxxxx.local". Edit this variable to
# customize the name and hostname. Note: only lowercase characters, numbers and hyphen(-) are allowed.
name: konnected
friendly_name: GDOv2-S [FCC TEST]
project_name: konnected.garage-door-gdov2-s
project_version: "1.1.1"
garage_door_cover_name: Garage Door
switch_name: STR output

####
# GARAGE DOOR OPENER MOMENTARY DURATION
# Duration to make the relay contact closure for the garage door opener button circuit.
garage_door_opener_momentary_duration: 10s

####
# OPEN GARAGE DOOR DISTANCE MARGIN OF ERROR
# The margin of error (+/-) in meters from the value above to consider the garage door in the open position.
open_garage_door_distance_margin_of_error: "0.05"

####
# GARAGE DOOR CLOSE WARNING DURATION
# Duration to blink the warning LED and beep the buzzer before the garage door closes.
garage_door_close_warning_duration: 5s

####
# ADDITIONAL SETTTINGS
warning_beep_pulse_time: 100ms
warning_beep_pause_time: 130ms
warning_beep_internal_only: "true"
warning_beep_shared: "false"
sensor_debounce_time: 200ms
range_sensor_polling_time: 2500ms
range_sensor_debounce_time: 3s
blink_on_state: "true"

####
# INTERNAL MAPPINGS
# DO NOT EDIT these when using Konnected hardware
door_control_pin: GPIO1
wired_sensor_pin: GPIO5
warning_beep_pin: GPIO4
warning_leds_pin: GPIO3
output_switch_pin: GPIO2
status_led: GPIO18
sda: GPIO6
scl: GPIO7

esphome:
on_boot:
priority: 200
Expand All @@ -20,7 +70,13 @@ packages:
####
# BASE
# This package is required and sets up core features.
- packages/garage-door-esp32-base.yaml
- packages/core-esp32-s3.yaml

####
# GARAGE DOOR RANGE SENSOR
# Enables the optical laser range sensor included with some Konnected Garage Door opener models to detect
# the open/closed state of an overhead garage door.
- packages/vl53l0x-range-sensor.yaml

####
# GARAGE DOOR COVER
Expand All @@ -43,12 +99,6 @@ packages:
# via the physical INPUT terminals.
- packages/garage-door-wired-sensor.yaml

####
# GARAGE DOOR RANGE SENSOR
# Enables the optical laser range sensor included with some Konnected Garage Door opener models to detect
# the open/closed state of an overhead garage door.
- packages/vl53l0x-range-sensor.yaml

####
# GARAGE DOOR OPENER BUTTON
# Enables the garage door opener relay labeled DOOR on the Konnected Garage Door Opener as a button entity. When
Expand Down Expand Up @@ -91,14 +141,10 @@ packages:
# Self test script used to validate the hardware post-assembly
- packages/gdo-self-test.yaml

esp32:
framework:
type: esp-idf

button:
- platform: template
id: button_fcc_test_start
name: ~FCC TEST STart
name: ~FCC TEST Start
entity_category: diagnostic
internal: True
on_press:
Expand Down Expand Up @@ -153,7 +199,6 @@ script:
# more: https://esphome.io/components/logger.html
logger:
level: DEBUG
hardware_uart: UART0
logs:
ledc.output: INFO
vl53l0x: DEBUG
Expand Down
3 changes: 3 additions & 0 deletions packages/core-esp32-s3.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,9 @@ text_sensor:
id: device_id
entity_category: diagnostic
update_interval: never
- platform: version
name: ESPHome Version
hide_timestamp: true

sensor:
- platform: uptime
Expand Down
3 changes: 3 additions & 0 deletions packages/core-esp32.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,9 @@ text_sensor:
id: device_id
entity_category: diagnostic
update_interval: never
- platform: version
name: ESPHome Version
hide_timestamp: true

sensor:
- platform: uptime
Expand Down
3 changes: 3 additions & 0 deletions packages/core-esp8266.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,9 @@ text_sensor:
id: device_id
entity_category: diagnostic
update_interval: never
- platform: version
name: ESPHome Version
hide_timestamp: true

sensor:
- platform: uptime
Expand Down

0 comments on commit 655f09c

Please sign in to comment.