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

Co-authored-by: Samuel Sieb <samuel@sieb.net>
This commit is contained in:
Samuel SiebandSamuel Sieb authored and GitHub committed 2023-10-18 08:07:29 +13:00
1 parent b0ac729a8e
commit c19dbdb02d
4 files changed
+60 -15

No files matched your search

+6
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