config files on 28-11-2023 12:46:43
This commit is contained in:
@@ -3,17 +3,26 @@ deep_sleep:
|
||||
id: deep_sleep_control
|
||||
run_duration: ${run_duration}
|
||||
sleep_duration: ${sleep_duration}
|
||||
wakeup_pin:
|
||||
number: ${pin_wake}
|
||||
inverted: true
|
||||
mode:
|
||||
input: true
|
||||
# pullup: true
|
||||
|
||||
# Wake Button
|
||||
|
||||
binary_sensor:
|
||||
- platform: gpio
|
||||
name: '${device_name} Wake Button'
|
||||
pin: ${pin_wake}
|
||||
internal: true
|
||||
setup_priority: 1000
|
||||
- platform: homeassistant
|
||||
entity_id: input_boolean.esphome_global_prevent_deepsleep
|
||||
id: prevent_deep_sleep
|
||||
|
||||
mqtt:
|
||||
broker: ${mqtt_broker_ip}
|
||||
username: ${mqtt_broker_user}
|
||||
password: ${mqtt_broker_pass}
|
||||
discovery: true
|
||||
discovery_retain: true
|
||||
birth_message:
|
||||
will_message:
|
||||
|
||||
on_message:
|
||||
- topic: ${mqtt_ota_topic}
|
||||
payload: 'ON'
|
||||
then:
|
||||
- logger.log: 'OTA Mode ON - Deep sleep DISABLED'
|
||||
- deep_sleep.prevent: deep_sleep_control
|
||||
|
||||
|
||||
Reference in New Issue
Block a user