2024-02-28 10:31:00 +01:00
|
|
|
spi:
|
|
|
|
clk_pin: GPIO36
|
|
|
|
miso_pin: GPIO37
|
|
|
|
mosi_pin: GPIO35
|
|
|
|
|
2024-02-29 04:24:33 +01:00
|
|
|
cc1101:
|
|
|
|
id: transceiver
|
|
|
|
cs_pin: GPIO34
|
|
|
|
bandwidth: 200
|
|
|
|
frequency: 433920
|
|
|
|
rssi:
|
|
|
|
name: RSSI
|
|
|
|
lqi:
|
|
|
|
name: LQI
|
2024-03-02 08:33:55 +01:00
|
|
|
temperature:
|
|
|
|
name: Temperature
|
2024-02-28 10:31:00 +01:00
|
|
|
|
|
|
|
remote_transmitter:
|
2024-03-02 08:33:55 +01:00
|
|
|
pin: GPIO8 # GDO0
|
|
|
|
carrier_duty_percent: 100%
|
2024-02-28 10:31:00 +01:00
|
|
|
|
|
|
|
remote_receiver:
|
2024-02-29 00:53:24 +01:00
|
|
|
pin: GPIO9 # GDO2
|
2024-02-28 10:31:00 +01:00
|
|
|
dump:
|
|
|
|
- rc_switch
|
|
|
|
# Settings to optimize recognition of RF devices
|
|
|
|
tolerance: 50%
|
|
|
|
buffer_size: 2kb
|
|
|
|
filter: 250us
|
|
|
|
idle: 4ms
|
|
|
|
on_rc_switch:
|
|
|
|
- logger.log:
|
|
|
|
format: "on_rc_switch: %i %llu"
|
|
|
|
args: [x.protocol, x.code]
|
|
|
|
|
|
|
|
binary_sensor:
|
|
|
|
- platform: remote_receiver
|
|
|
|
name: "Window"
|
|
|
|
rc_switch_raw:
|
|
|
|
code: '110111110001111011100110'
|
|
|
|
filters:
|
|
|
|
- delayed_off: 1000ms
|
|
|
|
|
|
|
|
button:
|
|
|
|
- platform: template
|
|
|
|
name: "Gate"
|
|
|
|
on_press:
|
2024-03-01 01:32:37 +01:00
|
|
|
- remote_transmitter.transmit_rc_switch_raw_cc1101:
|
2024-02-28 10:31:00 +01:00
|
|
|
code: '0111000110010011110110010100011111110001001011110111'
|
|
|
|
protocol:
|
|
|
|
pulse_length: 434
|
2024-02-28 13:04:14 +01:00
|
|
|
sync: [1, 6]
|
|
|
|
zero: [1, 2]
|
|
|
|
one: [2, 1]
|
2024-02-28 10:31:00 +01:00
|
|
|
inverted: true
|
|
|
|
repeat:
|
2024-02-29 22:41:05 +01:00
|
|
|
times: 10
|