How to read or write into a Helper out of an esphome yaml-script?

In the following code i would like to write into a helper, but i am not able to do it … can someone give me an example?

Thanks for your help

prevent deep sleep

binary_sensor:

  • platform: homeassistant
    id: start_deep_sleep
    name: Prevent Deep Sleep
    entity_id: input_boolean.do_sleep

script:

  • id: consider_deep_sleep
    mode: queued
    then:
    • delay: 60s
    • if:
      condition:
      binary_sensor.is_on: start_deep_sleep
      then:
      - logger.log: ‘Start deep_sleep …’

!!! Here i want to write into a helper ‘deepsleep_status’, but i am not able to do it !!!

        - deep_sleep.enter: deep_sleep_bewaesserung
      else:
        - deep_sleep.prevent: deep_sleep_bewaesserung
        - logger.log: 'Skipping sleep, per prevent_deep_sleep'
  - script.execute: consider_deep_sleep

deep_sleep:
id: deep_sleep_bewaesserung
run_duration: 1min
sleep_duration: 3min

Post your yaml properly please. See How to help us help you - or How to ask a good question

But I think you’ll find it is something like this

  - homeassistant.service:
      service: input_text.set_value
      data:
        value: "Entered Deep Sleep"
      target:
        entity_id: input_text.sleepy

Thanks for your support.

… you are right - i have to get more expirience to send better (clean) information. I know - i have to learn how to do in the forum. Thanks for your hint!

Werner