Front Door Indicator

From i3Detroit
Jump to: navigation, search



Front Door Indicator
Front door indicator.jpg
Name Front Door Indicator
Zone Infrastructure


Owner i3Detroit
Make Model esp-12, white board
Part Number n/a
Date Acquired 2013-01
Storage Location next to front door
Authorization Required No
Status Running
Value $40
IP Address 10.13.107.102
MAC Address 5C:CF:7F:63:30:67
Hostname front-door-indicator
Documentation https://github.com/i3detroit/custom-mqtt-programs/tree/master/front-door-indicator
Other References


Intro

This sits by the door and tells you if the space is shut down, and has a space shutdown button.

Rules

Instructions

Publishes to:

  • doorbell pin 2
    • client->publish("stat/i3/inside/commons/normal-doorbell/press", "ding\a");
  • red button pin 0
    • client->publish("cmnd/i3/automation/shutdown", "DOWNSHUT");
  • roll up door pin 1
    • client->publish("stat/i3/inside/commons/garageDoor", button_state[i] ? "UNLOCKED" : "LOCKED");

Subscribe

  • client->subscribe("stat/i3/classroom/glassDoor/lock");
  • //client->subscribe("cmnd/i3/inside/commons/exitIndicator/shutdown-LED");
//pcf8574 i2c breakout pins
#define GLASS_DOOR_LOCK_RED 1
#define GLASS_DOOR_LOCK_GREEN 0

#define GARAGE_RED 3
#define GARAGE_GREEN 2

#define ARGON_RED 5
#define ARGON_GREEN 4

#define AIR_COMPRESSOR_RED 7
#define AIR_COMPRESSOR_GREEN 6

Maintenance Info

FAQ

ToDo


Front Door Indicator Zone: Infrastructure https://wiki.pumpingstationone.org/images/Authorization_not_required.svg "/> https://www.i3detroit.org/wiki/Front_Door_Indicator


Stuff it publishes to

  • stat/i3/inside/commons/normal-doorbell
  • stat/i3/inside/commons/garageDoor
  • cmnd/i3/openhab/shutdown
  • cmnd/i3/classroom/glassDoor/lock query on boot

Stuff it subscribes to

  • stat/i3/classroom/glassDoor/lock
  • cmnd/i3/inside/commons/exitIndicator/shutdownLED