mirror of
https://github.com/nuttytree/ESPHome-Devices.git
synced 2024-08-30 18:12:19 +00:00
557dae7ffc
* Add the emporia-vue2 device * Move time component from individual devices to the base device package * Remove ESPSense component since I don't have a Sense energy monitor * Update README * Adjust BLE scan settings on garage fridge to improve wifi reliability
84 lines
1.8 KiB
YAML
84 lines
1.8 KiB
YAML
substitutions:
|
|
device_id: pool-and-patio-lights
|
|
device_name: Pool and Patio Lights
|
|
board: esp01_1m
|
|
ip_address: !secret pool-and-patio-lights-ip
|
|
ota_pwd: !secret pool-and-patio-lights-ota-pwd
|
|
api_pwd: !secret pool-and-patio-lights-api-pwd
|
|
ap_wifi_pwd: !secret pool-and-patio-lights-ap-pwd
|
|
|
|
packages:
|
|
device_base: !include ../packages/device_base_esp8266.yaml
|
|
|
|
external_components:
|
|
- source:
|
|
type: local
|
|
path: ../components
|
|
components: [ treo_led_pool_light, binary_light_with_power ]
|
|
|
|
binary_sensor:
|
|
- platform: gpio
|
|
id: patio_lights_button
|
|
pin:
|
|
number: 12
|
|
mode: INPUT_PULLUP
|
|
on_press:
|
|
then:
|
|
- homeassistant.service:
|
|
service: homeassistant.toggle
|
|
data:
|
|
entity_id: light.patio_lights
|
|
- platform: gpio
|
|
id: pool_lights_button
|
|
pin:
|
|
number: 5
|
|
mode: INPUT_PULLUP
|
|
on_press:
|
|
then:
|
|
- light.toggle: pool_lights
|
|
- platform: gpio
|
|
id: color_button
|
|
pin:
|
|
number: 3
|
|
mode: INPUT_PULLUP
|
|
on_press:
|
|
then:
|
|
- lambda: |-
|
|
static_cast<TreoLedPoolLight *>(id(pool_lights).get_output())->next_color();
|
|
- platform: homeassistant
|
|
id: patio_lights
|
|
entity_id: light.patio_lights
|
|
on_press:
|
|
then:
|
|
- switch.turn_on: patio_lights_indicator
|
|
on_release:
|
|
then:
|
|
- switch.turn_off: patio_lights_indicator
|
|
|
|
light:
|
|
- platform: treo_led_pool_light
|
|
id: pool_lights
|
|
name: "Pool Lights"
|
|
pin: 15
|
|
power:
|
|
id: pool_light_power
|
|
name: Pool Lights Power
|
|
light_wattage: 10.0
|
|
|
|
sensor:
|
|
- platform: total_daily_energy
|
|
name: Pool Lights
|
|
icon: mdi:flash
|
|
power_id: pool_light_power
|
|
method: left
|
|
|
|
status_led:
|
|
pin:
|
|
number: 0
|
|
inverted: true
|
|
|
|
switch:
|
|
- platform: gpio
|
|
id: patio_lights_indicator
|
|
pin: 13
|