Replies: 1 comment 1 reply
-
|
Sending is a low priority for me, just one of those "nice to have" Sending appears to do something on both GPIO02 as well as GPIO17 but I can only assume is malformed data In order from left to right Sending raw as integer array Sent in as RCSwitch with the binary value '100011000100011001001000' with and without the quotes [20:24:09][D][sensor:094]: 'transciver': Sending state -99.00000 with 0 decimals of accuracy Sending the raw value the sample cc1101-esp32.yaml produces a more normal |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
So I went down a whole rabbit hole trying to improve the reliability of 433mhz signals. This by far is the most straightforward implementation of the cc1101 library I could find. Tasmota has a hint of it, OpenMQTTGateway makes references to it but doesn't seem to play nice with the wt32-eth01
I am trying to make an ethernet based 433mhz bridge that will essentially mirror the SonOff RF Bridge https://esphome.io/components/rf_bridge.html
sonoff-rf
WT32-eth01 currently still testing
Currently this can not send, I suspect GPIO2 might not be a good choice but I took the suggestion from the ESPsomfy config with the WT32-eth01 + cc1101 config. I was reading the issues and will definitely take a rtl-sdr to it.
When this receives a RC_Switch compatible message, a binary value is sent to home assistant as an event.esphome.rf_code_received and under code the value is outputted decimal, but viewed as a string because it needs quotes but good enough.
Basically I am trying to make it so I can use it in automations when "When esphome.rf_code_received event is fired" matches the code. Or run an automation where I can "Call a service 'esphome.sonoff_rf_send_rf_code' on" unless there is an easier way that I have been foolishly overlooking. Maybe just use what I have and match it with binary. I will see when I get home from work.
Edit
Receive is good enough just deal with another variable as a trigger no big deal
For reference a button press on my remote would produce the following
CC1101 Logs in ESPHome
[20:06:33][I][remote.raw:028]: Received Raw: 1089, -373, 343, -1097, 353, -1094, 361, -1078, 1082, -370, 1095, -358, 372, -1068, 360, -1075, 384, -1085, 1077, -374, 343, -1096, 354, -1094, 360, -1079, 1089, -374, 1093, -362, 353, -1094, 363, -1079, 1084, -369, 344, -1090, 369, -1069,
[20:06:33][I][remote.raw:041]: 1109, -350, 362, -1084, 363, -1090, 372, -1065, 366
[19:57:45][I][remote.rc_switch:261]: Received RCSwitch Raw: protocol=1 data='100011000100011001001000'
RTL433
time : 2024-04-16 19:59:24
model : Smoke-GS558 id : 4881
unit : 17 learn : 0 Raw Code : 126231
SonOff RF
event_type: esphome.rf_code_received
data:
device_id: e64809142a83f62d434462bc56c01f4e
sync: 2b84
low: 017c
high: 044c
code: 008c4648
origin: LOCAL
time_fired: "2024-04-17T03:00:39.729662+00:00"
context:
id: 01HVMZZKNHJWE3M92ANP0560H2
parent_id: null
user_id: null
CC1101
event_type: esphome.rf_code_received
data:
device_id: 6f154bd5249461c56bb179a88732c146
code: "9193032"
origin: LOCAL
time_fired: "2024-04-17T03:00:39.759935+00:00"
context:
id: 01HVMZZKPFXHMDZ3W47NDRQX4P
parent_id: null
user_id: null
Beta Was this translation helpful? Give feedback.
All reactions