sairon / esphome-nspanel-lovelace-ui

ESPHome component for NSPanel Lovelace UI
Other
125 stars 31 forks source link

upload_tft How? #19

Closed DrJeff closed 1 year ago

DrJeff commented 1 year ago

I used the service inside of HA but in GUI there is no where to add the URL in YAML I can add the URL with quotes or without no joy, if I add a Key of "url" and the URL still no joy what am I missing? Thanks

DrJeff commented 1 year ago

Not sure how or why the service call did not work. For a work around I added this to the actual button and updated the panel that way.

switch:
  # Physical relay 1
  - platform: gpio
    name: $friendly_devicename Relay 1
    id: relay_1
    pin:
      number: 22
    on_turn_on:
      - lambda: |-
             id(nspanel).upload_tft(http://nspanel.pky.eu/lui-us-p-release.tft);
randybb commented 1 year ago

One of the option is to use the service _uploadtft mentioned in https://github.com/sairon/esphome-nspanel-lovelace-ui and run it with url from dev tools image

DrJeff commented 1 year ago

Ok I must have had the yaml spacing wrong. I was not getting the variable for url but now I do thanks.