Skip to content

asmyczek/century-smart

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

century-smart[er]

Making Century gate motor a little smarter using ESP8266. The controller publishes mqtt messages for all status codes and triggers courtesy light as well as override. And for fun it has a tiny light sensor for morning and evening light automation with Home Assistant.

Basic circuit

As basic as it gets.

Setup

  1. Flash ESP with MicorPython. Currently I'm using version 1.14
  2. Rename config_example.py to config.py and configure your WIFI and MQTT broker settings.
  3. Push all Python files to ESP and ready to go.
  4. In case of timing variations between models, adjust ALERT_INERTVAL_TIME which is the time between alert signals.

cmd.py contains helper functions to speed up work on webrepl.

Home Assistant templates

sensor:
  - platform: mqtt
    name: "Gate Status"
    state_topic: "stats/gate/gate/status"
    force_update: true

  - platform: mqtt
    name: "Gate Alert"
    state_topic: "stats/gate/alert/status"
    force_update: true

  - platform: mqtt
    name: "Gate Sunlight"
    state_topic: "stats/gate/sunlight/status"
    force_update: true


script:

  trigger_gate_floodlight:
    alias: Trigger Gate Light
    sequence:
    - service: mqtt.publish
      data:
        topic: "cmnd/gate/floodlight/trigger"

About

A little smarter Century gate motor using ESP8266

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages