1
0
mirror of https://github.com/esphome/esphome.git synced 2025-09-02 03:12:20 +01:00

Add duration option to action start deep sleep (#1526)

This commit is contained in:
Chris Nussbaum
2021-02-15 11:32:22 -06:00
committed by GitHub
parent f95be6a0df
commit dce20680d7
3 changed files with 29 additions and 5 deletions

View File

@@ -45,6 +45,12 @@ ota:
logger:
level: DEBUG
deep_sleep:
run_duration: 20s
sleep_duration: 50s
wakeup_pin: GPIO39
wakeup_pin_mode: INVERT_WAKEUP
as3935_i2c:
irq_pin: GPIO12
@@ -302,6 +308,8 @@ text_sensor:
- homeassistant.tag_scanned:
tag: 1234-abcd
- homeassistant.tag_scanned: 1234-abcd
- deep_sleep.enter:
sleep_duration: 30min
- platform: template
name: 'Template Text Sensor'
lambda: |-