Skip to content

Shadow

Shadow

esp32_arduino esp32_esp_idf

Allows you to run a script in a parallel thread (Task)

Configuration variables

  • interval (Required, Time): The interval to execute the script in shadow.
  • startup_delay (Optional, Time): An optional startup delay - defaults to zero.
  • priority (Optional, Int): An optional RTOS Task priority - default 1, range 1..10.
  • script_id (Required, Scipt): Script identifier for execute.

Configuration

Configuration

external_components:
  - source:
      type: git
      url: https://github.com/andrewjswan/esphome-components
      ref: main
    components: [shadow]
    refresh: 60s

script:
  - id: some_script
    then:
      - logger.log: "Script Running..."

shadow:
  id: esp_shadow
  script_id: some_script
  startup_delay: 5s
  interval: 1.5min