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

Basic light automation - can't get it to work

$
0
0

@robw wrote:

Hi,

It is my first post here, I’m a new user of Home Assistant, so I apologize in advance for not being very good at Home Assistant yet. I’ve used other HA systems before, though. Now I’m trying to use Home Assistant as it might replace my other system if things work out good. I’ve set up Home Assistant and want to try my first basic automation, but sadly, I can’t get it to work (ashamed).

I have one Aeon Labs Multisensor 6, and one Aeon Labs ZW098 LED Bulb. Both are added to, and found in Home Assistant. I can manually switch on and off the bulb via a Lovelace card. And I can see, for instance, the temp of the multisensor there.

For automation I copy & pasted the example here: https://www.home-assistant.io/cookbook/turn_on_light_for_10_minutes_when_motion_detected/ into the previous empty automations.yaml. Then I changed the code so it reflex the sensor and bulb I have, so now it looks like this:

 automation:
- alias: Turn on kitchen light when there is movement
  trigger:
    platform: state
    entity_id: binary_sensor.aeon_labs_zw100_multisensor_6_sensor
    to: 'on'
  action:
    service: light.turn_on
    entity_id: zwave.aeon_labs_zw098_led_bulb

- alias: Turn off kitchen light 10 minutes after last movement
  trigger:
    platform: state
    entity_id: binary_sensor.aeon_labs_zw100_multisensor_6_sensor
    to: 'off'
    for:
      minutes: 1
  action:
    service: light.turn_off
    entity_id: zwave.aeon_labs_zw098_led_bulb

But… Nothing happens at all… Please, can someone help me?

Cheers,

Posts: 8

Participants: 6

Read full topic


Viewing all articles
Browse latest Browse all 95919

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>