I have the following question. If I switch on a rf switch with the remote control. Is it possible to switch wifi lamp on/off based on the fact a particular switch is switched on/off.
I know I can use a remote switch like zigbee to do this, however my wife doesn’t want to use that. So I need the wifi lamp switched on when my rf switch is switched on with the remote control.
nickrout
(Nick Rout)
September 26, 2020, 9:19pm
2
You can do this with a simple automation triggered on the main light turning on. (And another one for turning off)
1 Like
do I use the state platform in automations?
tuncaya
(Tuncay)
September 27, 2020, 9:42am
4
Create 2 automations.
AUTOMATION 1 | Turning light ON
id: turn_on_rf_switch
alias: turn_on_rf_switch
initial_state: True
trigger:
- platform: state
entity_id: switch.rf_plug01
from: 'off'
to: 'on'
condition: []
action:
- service: light.turn_on
data:
entity_id: light.example_light
AUTOMATION 2 | Turning light OFF
id: turn_off_rf_switch
alias: turn_off_rf_switch
initial_state: True
trigger:
- platform: state
entity_id: switch.rf_plug01
from: 'on'
to: 'off'
condition: []
action:
- service: light.turn_off
data:
entity_id: light.example_light
1 Like
Thank you for the reply, just figured out that if I do it with the remote control of my rf433 home assistant can’t read the state of the rf433 switch
Need to think about a solution to read if the rf433 remote is sending a signal.
More research I think.
francisp
(Francis)
September 27, 2020, 10:53am
6
Depends which protocol your rf remote is using. A Sonoff Rf bridge, an RfLink or a RLT-SDR dongle might do the trick.
rikthefrog
(Richard)
September 27, 2020, 12:06pm
8
I synced it with my broadlink rm pro
Mutt
(Muttley)
September 27, 2020, 12:32pm
9
you could just get the rf remote to ‘toggle ’ the switch or light instead ???
tuncaya
(Tuncay)
September 29, 2020, 8:42pm
10
Nice! Have fun tinkering with it!