ESPHome-Devices/devices/fire_pit_fountain.yaml

54 lines
1.1 KiB
YAML
Raw Normal View History

2020-01-02 02:59:06 +00:00
substitutions:
device_id: fire_pit_fountain
device_name: Fire Pit and Fountain
board: d1_mini
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-pwd
2020-01-02 02:59:06 +00:00
packages:
device_base: !include ../packages/device_base.yaml
2020-01-02 02:59:06 +00:00
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:
2020-05-13 21:36:37 +00:00
- ON for at least 3s
- OFF for at least .1s
2020-01-02 02:59:06 +00:00
then:
- switch.toggle: fire_pit
- timing:
2020-05-13 21:36:37 +00:00
- ON for at most 3s
- OFF for at least .1s
2020-01-02 02:59:06 +00:00
then:
- switch.turn_off: fire_pit
switch:
- platform: gpio
id: fountain
name: "Fountain"
icon: mdi:fountain
pin: D1
2020-05-13 21:36:37 +00:00
inverted: true
2020-01-02 02:59:06 +00:00
- platform: gpio
id: fire_pit
name: "Fire Pit"
icon: mdi:fire
pin: D2
2020-05-13 21:36:37 +00:00
inverted: true