mirror of
https://github.com/nuttytree/ESPHome-Devices.git
synced 2024-08-30 18:12:19 +00:00
13f3977342
Finish folder re-org README updates
55 lines
1.2 KiB
YAML
55 lines
1.2 KiB
YAML
substitutions:
|
|
device_id: fire_pit_fountain
|
|
device_name: Fire Pit and Fountain
|
|
platform: ESP8266
|
|
board: d1_mini_pro
|
|
ip_address: !secret fire_pit_fountain_ip
|
|
ota_pwd: !secret fire_pit_fountain_ota_pwd
|
|
api_pwd: !secret fire_pit_fountain_api_pwd
|
|
ap_wifi_pwd: !secret fire_pit_fountain_ap_wifi_pwd
|
|
|
|
packages:
|
|
device_base: !include ../packages/device_base.yaml
|
|
|
|
binary_sensor:
|
|
- platform: gpio
|
|
id: fountain_toggle
|
|
pin:
|
|
number: D6
|
|
mode: INPUT_PULLUP
|
|
inverted: True
|
|
on_press:
|
|
then:
|
|
- switch.toggle: fountain
|
|
- platform: gpio
|
|
id: fire_pit_toggle
|
|
pin:
|
|
number: D7
|
|
mode: INPUT_PULLUP
|
|
inverted: True
|
|
on_multi_click:
|
|
- timing:
|
|
- ON for at least 3s
|
|
- OFF for at least .1s
|
|
then:
|
|
- switch.toggle: fire_pit
|
|
- timing:
|
|
- ON for at most 3s
|
|
- OFF for at least .1s
|
|
then:
|
|
- switch.turn_off: fire_pit
|
|
|
|
switch:
|
|
- platform: gpio
|
|
id: fountain
|
|
name: "Fountain"
|
|
icon: mdi:fountain
|
|
pin: D1
|
|
inverted: true
|
|
- platform: gpio
|
|
id: fire_pit
|
|
name: "Fire Pit"
|
|
icon: mdi:fire
|
|
pin: D2
|
|
inverted: true
|