" How to pass a number or time value from the Home Assistant Dashboard to esphome where something expects a time format like sleep_duration: or delay: or update_interval: in seconds s minutes min hours h. That is the issue. "
How to access HA helper text or helper number in esphome?
Only look at the last line: sleep_duration: 15s
I’m using an IR remote to put esp8266 to sleep, and want to be able to change
values used in esphome on the fly from the dashboard helper texts/numbers.
binary_sensor:
- platform: remote_receiver
name: "Samsung36 Remote BUTTON 1"
samsung36:
address: 0x0400
command: 0x000E40BF # samsung bluray 1 button
on_press:
then:
- switch.toggle: huGPIO0 # TOGGLES RED LED huzzah
- deep_sleep.enter: # TESTING DEEP SLEEP
id: sleepNOW
sleep_duration: 15s # <<<<<< ONLY LOOK HERE
HOW DO I REPLACE 15s with:
ENTITY ID input_text.helper_text_1 OR
ENTITY ID input_number.helper_number_1 (seems harder since can’t specify time unit)
I defined Helper Text in HA Automations with ENTITY ID input_text.helper_text_1
I would like to be able to change the sleep duration with this value from Hassio Dashboard,
rather than re flashing to make minor changes. Can you help? thanks
service: homeassistant.update_entity ??