mirror of
https://github.com/esphome/esphome.git
synced 2025-09-02 03:12:20 +01:00
fix canbus send config (#5585)
Co-authored-by: Samuel Sieb <samuel@sieb.net>
This commit is contained in:
@@ -203,3 +203,19 @@ light:
|
||||
from: 20
|
||||
to: 25
|
||||
- single_light_id: ${roomname}_lights
|
||||
|
||||
canbus:
|
||||
- platform: esp32_can
|
||||
id: esp32_internal_can
|
||||
rx_pin: GPIO04
|
||||
tx_pin: GPIO05
|
||||
can_id: 4
|
||||
bit_rate: 50kbps
|
||||
|
||||
button:
|
||||
- platform: template
|
||||
name: Canbus Actions
|
||||
on_press:
|
||||
- canbus.send: "abc"
|
||||
- canbus.send: [0, 1, 2]
|
||||
- canbus.send: !lambda return {0, 1, 2};
|
||||
|
@@ -3214,6 +3214,10 @@ text_sensor:
|
||||
canbus_id: mcp2515_can
|
||||
can_id: 23
|
||||
data: [0x10, 0x20, 0x30]
|
||||
- canbus.send:
|
||||
canbus_id: mcp2515_can
|
||||
can_id: 23
|
||||
data: !lambda return {0x10, 0x20, 0x30};
|
||||
- canbus.send:
|
||||
canbus_id: esp32_internal_can
|
||||
can_id: 23
|
||||
|
Reference in New Issue
Block a user