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

Adds support for RF Bridge advanced codes (#1246)

* WIP: Advanced commands for portisch firmware

* Fix string code sending

* clang formatting

* Add new rf_bridge functions to test

* Add advanced code received trigger

* Fix copy-paste mistake in the advanced sending

* Fix log message to be consistent

* clang

* Remove extra +
This commit is contained in:
Jesse Hills
2020-11-03 07:34:29 +13:00
committed by GitHub
parent 1a270374e0
commit a6c46eb8e5
5 changed files with 293 additions and 10 deletions

View File

@@ -700,7 +700,7 @@ climate:
kp: 0.0
ki: 0.0
kd: 0.0
cover:
- platform: endstop
@@ -862,6 +862,22 @@ rf_bridge:
code: 0x123456
- rf_bridge.learn
on_advanced_code_received:
- lambda: |-
uint32_t test;
std::string test_code;
test = data.length;
test = data.protocol;
test_code = data.code;
- rf_bridge.start_advanced_sniffing
- rf_bridge.stop_advanced_sniffing
- rf_bridge.send_advanced_code:
length: 0x04
protocol: 0x01
code: 'ABC123'
- rf_bridge.send_raw:
raw: 'AAA5070008001000ABC12355'
display:
- platform: max7219digit
cs_pin: GPIO15