The CC1101 was added as a component less than a month ago and most of the posts I find here relate to the legacy external component version where you link the github (dbuezas/esphome-cc1101). Since it is no longer compatible it feels like a good time for a full rebuild.
Does anyone have a working YAML for use with the CC1101?
I have automations where if event esphome.rf_code_received is fired with code: “abcdef” then it runs this functionality works with my YAML below.
I was able to reuse some of my old YAML for the legacy variant but do not have the ability to transmit. Also the code comes in the HEX while I somehow translated it to decimal using the same lamda but that should be a minor fix.
Your yaml for cc1101 looks just ok, but you don’t have anything that transmits here.
I can’t figure out what is your approach here, but did you notice the new proxy component?
I have not seen the new proxy component that sounds like what I am looking for. My previous method was a primitive way to expose the results into Home Assistant as an “event” so it can be used in an automation.
I was able to add the IR/RF Proxy but do not see any exposed entities in home assistant. I will need to play with it more.
infrared:
# IR transmitter instance
- platform: ir_rf_proxy
frequency: 433.92MHz
name: IR Proxy Transmitter
id: ir_proxy_tx
remote_transmitter_id: transmitter0 # Corresponding ID added to remote_transmitter
# IR receiver instance
- platform: ir_rf_proxy
frequency: 433.92MHz
name: IR Proxy Receiver
id: ir_proxy_rx
remote_receiver_id: receiver0 # Corresponding ID added to remote_receiver
For the sake of completeness, I had to use copilot to help me with the transmit part. With this setup you can transmit with actions esphome.esp32_cc1101_send_rf_rcswitch or send as raw but rcswitch is much more reliable.
Event esphome.rf_code_received should still work unless I broke something but this will only show you a good rcswitch decoded message.
To the best of my understanding the proxy is not ready for use yet so this is how I interface with it.