Can I switch on other lamp triggered by switch on/off

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.

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?

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 :frowning:

Need to think about a solution to read if the rf433 remote is sending a signal.

More research I think.

Depends which protocol your rf remote is using. A Sonoff Rf bridge, an RfLink or a RLT-SDR dongle might do the trick.

Exactly @francisp

I synced it with my broadlink rm pro

you could just get the rf remote to ‘toggle’ the switch or light instead ???

Nice! Have fun tinkering with it!