Automation help

Hi,

I’m just trying to setup my first automation and struggling a bit.
I’m using LightwaveRF through RFXRTX. I’ve managed to setup some switches from my LW remote which appear on the States screen ok and reflect the state of the remote buttons.
I’ve set this up to try to use one button to turn on a light which is paired with another button
switch:
platform: rfxtrx
devices:
f37bdb3:
name: Remote1 Button3
packetid: 0a140000f37bdb03010070
f37bdb2:
name: Office Ceiling
packetid: 0a140001f37bdb02010060
automatic_add: False

automation:
alias: Turn on office light
trigger:
entity_id: switch.remote1_button3
to: ‘on’
action:
service: switch.turn_on
entity_id: switch.office_ceiling

It doesn’t seem to be doing anything…any help would be appreciated.

Also, how do I update the config file without having to stop and start HASS each time, is this possible, i.e. a reload of the config file?

Finally, where can I get hold of the developer tools that are mentioned quite a few times for checking the state of things.

Many thanks
Dave

The developer tools are found at the bottom of the sidebar.

your-url:8123/devService
your-url:8123/devState
your-url:8123/devEvents

Try this…(sorry, the indentation is wrong, I’m using my phone)

automation:
alias: Turn on office light
trigger:
platform: state
entity_id: switch.remote1_button3
state: ‘on’
action:
service: switch.turn_on
entity_id: switch.office_ceiling

Reference this for triggers:
home-assistant.io/components/au … /#triggers

Hi brg468 & henriksjodahl,

Excellent and many thanks for speedy reply :slight_smile:

Dave

Hi Dave

How do you get the packetid from the LW remote ?
I have been trying to do this for ages I use the LW wifi hub to send commands to switch on the lights but i am wanting to get a status from the LW wall switches and remotes.

Any help would sort out my system feedback.