-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
31 changed files
with
183 additions
and
30 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,73 @@ | ||
substitutions: | ||
label: esp16 | ||
slug: gang_bel | ||
name: Gang Bel | ||
description: Schakelt de deurbel. | ||
restore_mode: RESTORE_DEFAULT_OFF | ||
|
||
packages: | ||
device: !include devices/esp01s-relay.yaml | ||
|
||
# Global to store the on/off state of the chime | ||
globals: | ||
- id: "${slug}_state" | ||
type: bool | ||
restore_value: true | ||
initial_value: 'true' | ||
|
||
# Exposed switches. | ||
switch: | ||
# # Switch to turn on/off the chime. | ||
# - platform: gpio | ||
# id: "${slug}_relay" | ||
# inverted: true | ||
# name: "${name}" | ||
# pin: GPIO0 | ||
# restore_mode: RESTORE_DEFAULT_OFF | ||
|
||
# Switch to turn on/off chime when | ||
# doorbell button is pushed. | ||
# | ||
# It creates a "virtual" switch based | ||
# on a global variable. | ||
- platform: template | ||
name: "${name} enabled" | ||
id: "${slug}_enabled" | ||
restore_state: false | ||
turn_on_action: | ||
- globals.set: | ||
id: "${slug}_state" | ||
value: 'true' | ||
turn_off_action: | ||
- globals.set: | ||
id: "${slug}_state" | ||
value: 'false' | ||
lambda: |- | ||
return id("${slug}_state"); | ||
|
||
# Binary sensor representing the | ||
# Doorbell button push. | ||
binary_sensor: | ||
- platform: gpio | ||
id: "${slug}_button" | ||
name: "${name} button" | ||
pin: | ||
# Connected to GPIO on the ESP-01S. | ||
number: GPIO2 | ||
mode: INPUT_PULLUP | ||
inverted: true | ||
filters: | ||
# Small filter, to debounce the button press. | ||
- delayed_on: 25ms | ||
- delayed_off: 25ms | ||
on_press: | ||
# Only turn on the chime when it is active. | ||
then: | ||
if: | ||
condition: | ||
- switch.is_on: "${slug}_enabled" | ||
then: | ||
- switch.turn_on: "${slug}_relay" | ||
on_release: | ||
# On release, turn of the chime. | ||
- switch.turn_off: "${slug}_relay" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
esphome: | ||
<<: !include .esphome.yaml | ||
platform: ESP32 | ||
board: lolin_d32 | ||
board: nodemcu-32s |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
--- | ||
# Wemos D1 mini module | ||
# | ||
# Can be found in various Tuya-based devices. | ||
# | ||
# https://docs.platformio.org/en/latest/boards/espressif8266/esp8285.html | ||
# | ||
esphome: | ||
<<: !include .esphome.yaml | ||
platform: ESP8266 | ||
board: esp01_1m |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
packages: | ||
<<: !include_dir_named ../common | ||
board: !include ../boards/esp-wroom-32.yaml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
packages: | ||
<<: !include_dir_named ../common | ||
board: !include ../boards/esp8266_nodemcuv2.yaml | ||
|
||
switch: | ||
- platform: gpio | ||
pin: | ||
number: 0 | ||
inverted: yes | ||
id: "${slug}_relay" | ||
name: "${name}" | ||
restore_mode: $restore_mode |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,12 @@ | ||
# failes update | ||
substitutions: | ||
label: esp11 | ||
slug: garage_garagedeur | ||
name: Garage Garagedeur | ||
description: Schakelt de garagedeur. | ||
restore_mode: ALWAYS_OFF | ||
toggle_delay: 1500ms | ||
label: esp11 | ||
slug: garage_garagedeur | ||
name: Garage Garagedeur | ||
description: Schakelt de garagedeur. | ||
restore_mode: ALWAYS_OFF | ||
toggle_delay: 1500ms | ||
wifi_static_ip: 192.168.1.121 | ||
|
||
packages: | ||
device: !include devices/esp01s-relay-off.yaml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.