Fibaro wall plug

Hello HAS,

I would like to operate the fibaro wall plug gen5 when there is movement in the garage (sensor.aeotec_zw100_multisensor_6_burglar) so I made an automation however it is not working.

Can someone tell me what I do wrong (configuration is a Synology server HAS server with a Aeotec zwave usb controller)

- action:
  - alias: switch
data:
  turn_on:
service: homeassistant.turn_on
entity_id: switch.fibaro_system_fgwpef_wall_plug_gen5_switch
  alias: Garageverlichting aan
  id: '72057594160168960'
  trigger:
  - entity_id: sensor.aeotec_zw100_multisensor_6_burglar
from: '0'
platform: state
to: '8'

The above should look like this…

 - id: '72057594160168960'
   alias: Garageverlichting aan
   trigger:
     - platform: state
       entity_id: sensor.aeotec_zw100_multisensor_6_burglar
       from: '0'
       to: '8'
   action:
     - service: homeassistant.turn_on
       entity_id: switch.fibaro_system_fgwpef_wall_plug_gen5_switch

Hope that helps :slight_smile:

2 Likes

It works, thank you so much, I even extent it with the functionality that the light switch off after a certain time.

I appreciate your help.

- id: '72057594160168960'
  alias: Garageverlichting aan
  trigger:
  - entity_id: sensor.aeotec_zw100_multisensor_6_burglar
    from: '0'
    platform: state
    to: '8'
  action:
    entity_id: switch.fibaro_system_fgwpef_wall_plug_gen5_switch
    service: homeassistant.turn_on

- id: '72057594160168960'
  alias: Garageverlichting uit
  trigger:
  - entity_id: sensor.aeotec_zw100_multisensor_6_burglar
    from: '8'
    platform: state
    to: '0'
    for:
      minutes: 1
  action:
    entity_id: switch.fibaro_system_fgwpef_wall_plug_gen5_switch
    service: homeassistant.turn_off

No problem, glad I was able to help :slight_smile:

1 Like