ESPHome-Devices/packages/shelly_1l.yaml
Chris Nussbaum 557dae7ffc
Add Emporia Vue energy monitor (#42)
* 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
2022-11-01 16:25:09 -05:00

58 lines
1.0 KiB
YAML

substitutions:
board: esp01_1m
light_wattage: '0'
external_components:
- source:
type: local
path: ../components
components: [ binary_light_with_power ]
packages:
base: !include device_base_esp8266.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
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
status_led:
pin: GPIO0