mirror of
https://github.com/esphome/esphome.git
synced 2025-09-01 19:02:18 +01:00
Add RFBridge component (#896)
* Add RFBridge component * Fix format issues * Rename methods * More formatting * Fix line length * Apply suggestions from code review Co-Authored-By: Otto Winter <otto@otto-winter.com> * Check uart settings on dump * Make receiving local to the loop * FIx code order and schema * Add rf_bridge to test file * Apply suggestions from code review Co-Authored-By: Otto Winter <otto@otto-winter.com>
This commit is contained in:
@@ -623,7 +623,7 @@ output:
|
||||
|
||||
mcp23017:
|
||||
id: mcp23017_hub
|
||||
|
||||
|
||||
mcp23008:
|
||||
id: mcp23008_hub
|
||||
|
||||
@@ -666,8 +666,21 @@ dfplayer:
|
||||
dfplayer.is_playing
|
||||
then:
|
||||
logger.log: 'Playback finished event'
|
||||
|
||||
tm1651:
|
||||
id: tm1651_battery
|
||||
clk_pin: D6
|
||||
dio_pin: D5
|
||||
rf_bridge:
|
||||
on_code_received:
|
||||
- lambda: |-
|
||||
uint32_t test;
|
||||
test = data.sync;
|
||||
test = data.low;
|
||||
test = data.high;
|
||||
test = data.code;
|
||||
- rf_bridge.send_code:
|
||||
sync: 0x1234
|
||||
low: 0x1234
|
||||
high: 0x1234
|
||||
code: 0x123456
|
||||
- rf_bridge.learn
|
||||
|
Reference in New Issue
Block a user