Quantcast
Channel: Configuration - Home Assistant Community
Viewing all articles
Browse latest Browse all 95513

Automation with zwave devices - turn on light when move detect

$
0
0

@twiggolo wrote:

hello everybody,
it’s my first automation so please be kind :wink:
I tried to make a simple automation for my walk-in closet.
What I need is to turn on the lights when someone enter the walk-in closet.
I have a motion sensor by fibaro and a wall plug that turn on the light. There’s something that doesn’t work. light is still on, no way to turn off. Neither with switch button on home assistant
Could you help me please?

Here’s the automation…

  • alias: Turn on light when there is movement
    trigger:
    platform: state
    entity_id: binary_sensor.fibaro_system_fgms001_zw5_motion_sensor_sensor
    to: ‘on’
    action:
    service: switch.turn_on
    entity_id: switch.fibaro_system_fgwpe_f_wall_plug_gen5_switch

  • alias: Turn off after last movement
    trigger:
    platform: state
    entity_id: binary_sensor.fibaro_system_fgms001_zw5_motion_sensor_sensor
    to: ‘off’
    for:
    minutes: 1
    action:
    service: switch.turn_off
    entity_id: switch.fibaro_system_fgwpe_f_wall_plug_gen5_switch

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 95513

Trending Articles