ESPHome-Devices/devices/basement-bathroom-shower-light-heater.yaml
Chris Nussbaum c911f80995
Minor updates (#35)
* Update devices within range of  new wifi AP to use the ssid of that AP
* Use dashes in name of updated devices
2022-04-20 15:07:09 -05:00

97 lines
2.2 KiB
YAML

substitutions:
device_id: basement-bath-shower-light-heat
device_name: Basement Bathroom Shower Light and Heater
board: esp01_1m
ip_address: !secret basement-bathroom-shower-light-heater-ip
ota_pwd: !secret basement-bathroom-shower-light-heater-ota-pwd
api_pwd: !secret basement-bathroom-shower-light-heater-api-pwd
ap_wifi_pwd: !secret basement-bathroom-shower-light-heater-ap-pwd
wifi_ssid: !secret new-wifi-ssid
wifi_password: !secret new-wifi-password
ip_subnet: !secret new-ip-subnet
ip_gateway: !secret new-ip-gateway
packages:
device_base: !include ../packages/device_base.yaml
external_components:
- source:
type: local
path: ../components
components: [ binary_light_with_power, gpio_switch_with_power ]
- source: github://cbpowell/ESPSense
components: [ espsense ]
binary_sensor:
- platform: gpio
id: light_button
pin:
number: 12
mode: INPUT_PULLUP
on_press:
then:
- light.toggle: the_light
- platform: gpio
id: heater_button
pin:
number: 3
mode: INPUT_PULLUP
on_press:
then:
- switch.toggle: heater
espsense:
plugs:
- name: Basement Shower Light
power_sensor: light_power
voltage: 120
- name: Basement Bathroom Heater
power_sensor: heat_power
voltage: 120
light:
- platform: binary_light_with_power
id: the_light
name: Basement Shower Light
output: light_output
power:
id: light_power
name: Basement Shower Light Power
light_wattage: 11.5
output:
- platform: gpio
id: light_output
pin: 13
status_led:
pin:
number: 0
inverted: true
switch:
- platform: gpio_switch_with_power
id: heater
name: Basement Bathroom Heater
icon: mdi:radiator
pin: 4
power:
id: heat_power
name: Basement Bathroom Heater Power
device_wattage: 500.0
sensor:
- platform: total_daily_energy
name: Basement Shower Light
power_id: light_power
method: left
min_save_interval: 10min
- platform: total_daily_energy
name: Basement Bathroom Heater
power_id: heat_power
method: left
min_save_interval: 10min
time:
- platform: homeassistant