ESPHome-Devices/packages/shelly_1l.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

70 lines
1.3 KiB
YAML

substitutions:
board: esp01_1m
light_wattage: '0'
external_components:
- source:
type: local
path: ../components
components: [ binary_light_with_power ]
- source: github://cbpowell/ESPSense
components: [ espsense ]
packages:
base: !include device_base.yaml
logger: !include logger/logger.yaml
binary_sensor:
- platform: gpio
id: on_button
pin:
number: GPIO4
filters:
- delayed_on_off: 50ms
on_press:
then:
- light.turn_on: shelly_light
- platform: gpio
id: off_button
pin:
number: GPIO14
filters:
- delayed_on_off: 50ms
on_press:
then:
- light.turn_off: shelly_light
espsense:
plugs:
- name: ${device_name}
power_sensor: light_power
voltage: 120
light:
- platform: binary_light_with_power
id: shelly_light
name: ${device_name}
output: shelly_relay
power:
id: light_power
name: ${device_name} Power
light_wattage: ${light_wattage}
output:
- platform: gpio
pin: GPIO5
id: shelly_relay
sensor:
- platform: total_daily_energy
name: ${device_name}
power_id: light_power
method: left
min_save_interval: 10min
status_led:
pin: GPIO0
time:
- platform: homeassistant