diff --git a/nspanel_esphome.yaml b/nspanel_esphome.yaml index 45ccb79..762c45c 100644 --- a/nspanel_esphome.yaml +++ b/nspanel_esphome.yaml @@ -124,6 +124,14 @@ api: - service: upload_tft then: - lambda: 'id(disp1)->upload_tft();' + + ##### SERVICE TO UPDATE THE TFT FILE from URL ##### + - service: upload_tft_url + variables: + url: string + then: + - lambda: 'id(disp1)->set_tft_url(url.c_str());' + - lambda: 'id(disp1)->upload_tft();' ##### Service to send a command "printf" directly to the display ##### - service: send_command_printf