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
58 lines
1.0 KiB
YAML
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
|