How To: Turn A Light On/Off With An Inovelli Motion Sensor - Home Assistant

How To: Turn A Light On/Off With An Inovelli Motion Sensor - Home Assistant

Intro

In this article we will demonstrate how to turn on and off a light switch with an Inovelli Motion sensor. 

How To

Turn the light on

Steps

  1. From the Home Assistant web interface click on the "Configuration" link.

  2. Click "Automations", then the "+" button, and then click on "Skip". We will be setting the automation up manually so there is no need to use the wizard.





  3. Input a name for your automation. We have chosen "Turn light on when motion detected".

  4. Next, choose "State" and specify the Inovelli 4-in-1 entity with the appropriate data. When the motion sensor is tripped on the device it reports a state of "8" to it's "burglar" entity. This is because in z-wave, that sensor has many available state options. 8 means that motion was detected in an unknown location. So, we are having this automation trigger when the motion sensor burglar state changes from 0 (no motion - or idle) to 8 (motion detected).

  5. Then, select the lighting device you want to control and the level that you want it to be changed to. In this automation we are controlling an Inovelli Red Series dimmer and settings it's level to 99%.
  6. Lastly, click on the "Save" (disk) icon to save the automation and test it out!


Turn The Light Off

The process is the same as above, but we will be slightly modifying the "trigger" and the "action".

Steps

  1. Create a new automation (shown above) and give it the appropriate name. We have chosen "Turn light off when no motion".

  2. In this automation lets set the trigger to be when the state of the "burglar" entity changes from 8 (motion detected) to 0 (no motion - or idle).

  3. Lastly we are going to choose the lighting device and set the action to turn it off. 
  4. Click on the "Save" (disk) icon to finish the setup!

Conclusion

The article has demonstrated how to turn a light on and off based on the detection of motion in Home Assistant. The flexibility of HA is vast so there are many things you can do with this information. If there is something unique you are doing with your automations let us know in the Inovelli Community at https://community.inovelli.com/.

Config File Data

If you want the information presented here to copy and paste into your "automations.yaml" file look below!

Turn light on

  1. - id: '1598033092203'
  2.   alias: Turn light on when motion detected
  3.   description: ''
  4.   trigger:
  5.   - entity_id: sensor.inovelli_lzw60_4_in_1_sensor_burglar_2
  6.     from: '0'
  7.     platform: state
  8.     to: '8'
  9.   condition: []
  10.   action:
  11.   - brightness_pct: 99
  12.     device_id: 8539ffa0a5a4442f862bb61683dde9f6
  13.     domain: light
  14.     entity_id: light.inovelli_lzw31_sn_dimmer_red_series_level
  15.     type: turn_on

Turn light off

  1. - id: '1598036089876'
  2.   alias: Turn light off when no motion
  3.   description: ''
  4.   trigger:
  5.   - entity_id: sensor.inovelli_lzw60_4_in_1_sensor_burglar_2
  6.     from: '8'
  7.     platform: state
  8.     to: '0'
  9.   condition: []
  10.   action:
  11.   - device_id: 8539ffa0a5a4442f862bb61683dde9f6
  12.     domain: light
  13.     entity_id: light.inovelli_lzw31_sn_dimmer_red_series_level
  14.     type: turn_off