pr fix, allow_other_uses: true try2

This commit is contained in:
Gábor Poczkodi 2024-02-28 15:15:22 +01:00
parent f7c0ef125d
commit e1c1db328d
8 changed files with 41 additions and 21 deletions

View file

@ -13,8 +13,6 @@ from esphome.const import (
STATE_CLASS_MEASUREMENT,
)
CODEOWNERS = ["@gabest11", "@dbuezas", "@nistvan86", "@LSatan"]
DEPENDENCIES = ["spi"]
CONF_GDO0 = "gdo0"

View file

@ -7,8 +7,12 @@ sensor:
- platform: cc1101
id: transceiver
cs_pin: GPIO10
gdo0: GPIO3
gdo2: GPIO4
gdo0:
number: GPIO3
allow_other_uses: true
gdo2:
number: GPIO4
allow_other_uses: true
bandwidth: 200
frequency: 433920
rssi:
@ -21,9 +25,7 @@ sensor:
# dummy transmitter will push rx to the third place
remote_transmitter:
- pin:
number: GPIO21 # TX pin
allow_other_uses: true
- pin: GPIO21 # TX pin
carrier_duty_percent: 100%
id: dummytx
- pin:

View file

@ -7,8 +7,12 @@ sensor:
- platform: cc1101
id: transceiver
cs_pin: GPIO10
gdo0: GPIO3
gdo2: GPIO4
gdo0:
number: GPIO3
allow_other_uses: true
gdo2:
number: GPIO4
allow_other_uses: true
bandwidth: 200
frequency: 433920
rssi:
@ -21,9 +25,7 @@ sensor:
# dummy transmitter will push rx to the third place
remote_transmitter:
- pin:
number: GPIO21 # TX pin
allow_other_uses: true
- pin: GPIO21 # TX pin
carrier_duty_percent: 100%
id: dummytx
- pin:

View file

@ -7,8 +7,12 @@ sensor:
- platform: cc1101
id: transceiver
cs_pin: GPIO5
gdo0: GPIO32
gdo2: GPIO33
gdo0:
number: GPIO32
allow_other_uses: true
gdo2:
number: GPIO33
allow_other_uses: true
bandwidth: 200
frequency: 433920
rssi:

View file

@ -7,8 +7,12 @@ sensor:
- platform: cc1101
id: transceiver
cs_pin: GPIO34
gdo0: GPIO8
gdo2: GPIO9
gdo0:
number: GPIO8
allow_other_uses: true
gdo2:
number: GPIO9
allow_other_uses: true
bandwidth: 200
frequency: 433920
rssi:

View file

@ -7,8 +7,12 @@ sensor:
- platform: cc1101
id: transceiver
cs_pin: GPIO34
gdo0: GPIO8
gdo2: GPIO9
gdo0:
number: GPIO8
allow_other_uses: true
gdo2:
number: GPIO9
allow_other_uses: true
bandwidth: 200
frequency: 433920
rssi:

View file

@ -7,8 +7,12 @@ sensor:
- platform: cc1101
id: transceiver
cs_pin: GPIO5
gdo0: GPIO32
gdo2: GPIO33
gdo0:
number: GPIO32
allow_other_uses: true
gdo2:
number: GPIO33
allow_other_uses: true
bandwidth: 200
frequency: 433920
rssi:

View file

@ -7,7 +7,9 @@ sensor:
- platform: cc1101
id: transceiver
cs_pin: D8 # GPIO15
gdo0: D1 # GPIO5
gdo0:
number: D1 # GPIO5
allow_other_uses: true
# gdo2: not used with ESP8266
bandwidth: 200
frequency: 433920