1
0
mirror of https://github.com/esphome/esphome.git synced 2025-09-02 03:12:20 +01:00

Add uart.write action (#567)

* Add uart.write action

* Lint
This commit is contained in:
Otto Winter
2019-05-29 19:32:18 +02:00
committed by GitHub
parent f35f6d2348
commit 31ddd3f668
6 changed files with 85 additions and 18 deletions

View File

@@ -103,6 +103,12 @@ mqtt:
- light.control:
id: living_room_lights
brightness: !lambda 'return id(living_room_lights).current_values.get_brightness() + 0.5;'
- uart.write:
id: uart0
data: Hello World
- uart.write: [0x00, 0x20, 0x30]
- uart.write: !lambda |-
return {};
i2c:
sda: 21
@@ -120,6 +126,7 @@ uart:
tx_pin: GPIO22
rx_pin: GPIO23
baud_rate: 115200
id: uart0
ota:
safe_mode: True