ESPHome-Devices/devices/basement_bathroom_light_fan.yaml
Chris Nussbaum 1b6d90d399
A bunch of misc changes (#32)
* Temporarily disable the heater

* Shell of new garage fridge component

* Core code should be mostly complete

* Add power monitoring and freezer temp control

* Wrap up core temperature management code

* Add fixed InkBird component

* The new fridge manages temp in the freezer better so we are able to greatly simplify things

* Finish garage fridge

* Misc changes

Co-authored-by: Chris Nussbaum <chris.nussbaum@protolabs.com>
2022-03-29 13:54:34 -05:00

83 lines
1.6 KiB
YAML

substitutions:
device_id: basement_bathroom_light_fan
device_name: Basement Bathroom Light and Fan
board: esp01_1m
ip_address: !secret basement-bathroom-light-fan-ip
ota_pwd: !secret basement-bathroom-light-fan-ota-pwd
api_pwd: !secret basement-bathroom-light-fan-api-pwd
ap_wifi_pwd: !secret basement-bathroom-light-fan-ap-pwd
packages:
device_base: !include ../packages/device_base.yaml
external_components:
- source:
type: local
path: ../components
components: [ binary_light_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: fan_button
pin:
number: 3
mode: INPUT_PULLUP
on_press:
then:
- fan.toggle: the_fan
espsense:
plugs:
- name: Basement Bathroom Light
power_sensor: light_power
voltage: 120
fan:
- platform: binary
id: the_fan
output: fan_output
name: "Basement Bathroom Fan"
light:
- platform: binary_light_with_power
id: the_light
name: "Basement Bathroom Light"
output: light_output
power:
id: light_power
name: Basement Bathroom Light Power
light_wattage: 48.0
output:
- platform: gpio
id: fan_output
pin: 4
- platform: gpio
id: light_output
pin: 13
status_led:
pin:
number: 0
inverted: true
sensor:
- platform: total_daily_energy
name: Basement Bathroom Light
power_id: light_power
method: left
min_save_interval: 10min
time:
- platform: homeassistant