Skip to content

Instantly share code, notes, and snippets.

@JerryWorkman
Created February 8, 2017 01:24
Show Gist options
  • Save JerryWorkman/f301c2f5b2e2e2741995280d32858da0 to your computer and use it in GitHub Desktop.
Save JerryWorkman/f301c2f5b2e2e2741995280d32858da0 to your computer and use it in GitHub Desktop.
layout title description date sidebar comments sharing footer
page
Tilt Cover
Tilt Cover for Home Assistant
2016-12-20 22:00
true
false
true
true

Description: Tilt Cover for Home Assistant

Combines a tilt sensor and a relay switch to control a garage door opener or motorized gate. When this switch is turned on it will toggle the relay to activate the garage door if it is not already open. The reverse will happen when it is turned off.

# Example configuration.yaml entry
cover tilt:
  platform: tilt
  covers:
    front_garage_door:
      tilt_sensor:   binary_sensor.my_tilt_switch
      switch:        switch.my_relay_switch
      contact_delay: 1 
      run_time:      10
  • covers (Required): The array that contains all tilt covers.
    • **identifier ** (Required): Name of the tilt cover. Multiple entries are possible.
      • tilt_sensor (Required): Binary Tilt Sensor.
      • switch (Required): Relay switch that activates opener.
      • contact_delay (Optional): on time for switch to simulate button press. default: 1 second.
      • run_time (Optional): run time for the opener. default: 10 seconds.

My hardware:

Ecolink z-wave tilt sensor

Z-wave relay Switch

Screenshot:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment