New schema for services

This commit is contained in:
Edward Firmo
2024-02-16 22:45:31 +01:00
parent 41613e2af1
commit 5c8fd6301a
2 changed files with 137 additions and 118 deletions

View File

@@ -18,7 +18,7 @@ substitutions:
friendly_name: ${device_name}
wifi_timeout: '15'
##### DON'T CHANGE THIS ######
version: "4.3"
version: "4.3dev"
##############################
##### External components #####
@@ -31,11 +31,6 @@ external_components:
- nextion # Change this when that PR#6192 gets released (2024.3?)
refresh: 300s
##### Use ESP-IDF as default #####
esp32:
framework:
type: esp-idf
##### ESPHOME CONFIGURATION #####
esphome:
name: ${name}
@@ -89,9 +84,10 @@ esphome:
then:
- switch.turn_off: screen_power
##### TYPE OF ESP BOARD #####
esp32:
board: esp32dev
framework:
type: esp-idf
##### WIFI SETUP #####
wifi:
@@ -174,6 +170,22 @@ api:
- script.execute: watchdog
services:
##### Updates an entity #####
- service: entity
variables:
id: string
icon: string
icon_color: int[]
name: string
color: int[]
value: string
value_color: int[]
then:
- lambda: |-
if (!id(is_uploading_tft)) {
// Do something
}
##### Service to send a command "printf" directly to the display #####
- service: send_command_printf
variables: