Hi all,
Is anybody currently using the transmitter feature with the modded Sonof RF bridge and the latest version of esphome?
After modding the hardware I played around with esphome and got the receiver to work as expected but the transmitter doesn’t work at all as expected. It’s like @Mahko_Mahko wrote, the red LED flashes each time I try to send a command but the corresponding outlet doesn’t switch accordingly. When I use the espurna image espurna-1.14.1-itead-sonoff-rfbridge-direct.bin
, everything works as expected, which should indicate that the hardware is correct and it must be a configuration problem or software bug in the latest version of esphome. I used a NodeMCU and dedicated 433MHz transmitter and receivers with exactly the same result.
The red flashing must indicate that the RF MCU decodes the packet correctly (it is still connected to the receiver after the mod). So it is some kind of encoding the original code on this RF MCU recognizes, but not what I expect and want for switching the plug. I followed essentially the descriptions of the starter of this thread and this is my esphome config:
binary_sensor:
- platform: status
name: "RF Bridge Status"
- platform: remote_receiver
name: "Remote B On"
rc_switch_raw:
code: '010000000101000101010001'
protocol: 1
- platform: remote_receiver
name: "Remote B Off"
rc_switch_raw:
code: '010000000101000101010100'
protocol: 1
remote_receiver:
pin: 4
dump: rc_switch
filter: 4us
idle: 4ms
remote_transmitter:
pin: 5
carrier_duty_percent: 100%
status_led:
pin:
number: GPIO13
inverted: yes
switch:
- platform: template
name: "Remote Plugs B On"
turn_on_action:
remote_transmitter.transmit_rc_switch_raw:
code: '010000000101000101010001'
protocol: 1
repeat:
times: 10
wait_time: 50ms
- platform: template
name: "Remote Plugs B Off"
turn_on_action:
remote_transmitter.transmit_rc_switch_raw:
code: '010000000101000101010100'
protocol: 1
repeat:
times: 10
wait_time: 50ms
Maybe somebody can spot an issue in the configuration or knows a way to workaround a possible bug?
BTW. When I run my NodeMCU with the dedicated receiver in parallel, I don’t get any log output for the recognizing an rc_switch
encoding. This is weird as well, isn’t it?