1
0
mirror of https://github.com/esphome/esphome.git synced 2025-10-29 22:24:26 +00:00

add on/off options for uart switch (#5539)

Co-authored-by: Samuel Sieb <samuel@sieb.net>
This commit is contained in:
Samuel Sieb
2023-10-17 12:07:29 -07:00
committed by GitHub
parent b0ac729a8e
commit c19dbdb02d
4 changed files with 60 additions and 15 deletions

View File

@@ -2588,6 +2588,12 @@ switch:
name: UART Recurring Output
data: [0xDE, 0xAD, 0xBE, 0xEF]
send_every: 1s
- platform: uart
uart_id: uart_0
name: "UART On/Off"
data:
turn_on: "TurnOn\r\n"
turn_off: "TurnOff\r\n"
- platform: template
assumed_state: true
name: Stepper Switch