New schema for services
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user