oarcher / piotech

my custom components for esphome
18 stars 10 forks source link

allow to specify the URL from lambda #8

Closed tomatensaus closed 11 months ago

tomatensaus commented 11 months ago
  - platform: template
    name: "Firmware Update"
    id: firmware_update_action
    on_press:
      then:
        - ota_http.flash:
            url:   !lambda |-
              return str_sprintf("https://myserver.com%s", id(upgrade_path).state);

I need to specify a dynamic path but it would seem that the component does not allow this

tomatensaus commented 11 months ago

Sorry but it would seem that my yaml was not correctly formatted to specify a lambda, not an issue. Compiling now