Commons Light Switches

From i3Detroit
Jump to: navigation, search
Commons Light Switches
Commons switches.jpg
Name Commons light switches
Zone Commons Area


Owner i3Detroit
Make Model esp-12, white board
Part Number n/a
Date Acquired 2017-09-27
Storage Location south wall by the breaker panel
Authorization Required No
Status Running
Value $50
IP Address 10.13.107.39, 10.13.107.225
MAC Address 18:FE:34:FA:3E:1F, 5C:CF:7F:FA:46:A8
Hostname commons-light-switches
Documentation https://github.com/i3detroit/custom-mqtt-programs/tree/master/commons-light-switches
Other References


Intro

Rules

Instructions

void eastOn(PubSubClient* client) {
  client->publish("cmnd/i3/inside/lights/001/POWER", "1");
  client->publish("cmnd/i3/inside/lights/002/POWER", "1");
  client->publish("cmnd/i3/inside/lights/003/POWER", "1");
  client->publish("cmnd/i3/inside/lights/004/POWER", "1");
}
void centerOn(PubSubClient* client) {
  client->publish("cmnd/i3/inside/lights/005/POWER", "1");
  client->publish("cmnd/i3/inside/lights/006/POWER", "1");
  client->publish("cmnd/i3/inside/lights/007/POWER", "1");
  client->publish("cmnd/i3/inside/lights/008/POWER", "1");
  client->publish("cmnd/i3/inside/lights/009/POWER", "1");
}
void westOn(PubSubClient* client) {
  client->publish("cmnd/i3/inside/lights/010/POWER", "1");
  client->publish("cmnd/i3/inside/lights/011/POWER", "1");
  client->publish("cmnd/i3/inside/lights/012/POWER", "1");
  client->publish("cmnd/i3/inside/lights/013/POWER", "1");
  client->publish("cmnd/i3/inside/lights/014/POWER", "1");
}
void eastOff(PubSubClient* client) {
  client->publish("cmnd/i3/inside/lights/001/POWER", "0");
  client->publish("cmnd/i3/inside/lights/002/POWER", "0");
  client->publish("cmnd/i3/inside/lights/003/POWER", "0");
  client->publish("cmnd/i3/inside/lights/004/POWER", "0");
}
void centerOff(PubSubClient* client) {
  client->publish("cmnd/i3/inside/lights/005/POWER", "0");
  client->publish("cmnd/i3/inside/lights/006/POWER", "0");
  client->publish("cmnd/i3/inside/lights/007/POWER", "0");
  client->publish("cmnd/i3/inside/lights/008/POWER", "0");
  client->publish("cmnd/i3/inside/lights/009/POWER", "0");
}
void westOff(PubSubClient* client) {
  client->publish("cmnd/i3/inside/lights/010/POWER", "0");
  client->publish("cmnd/i3/inside/lights/011/POWER", "0");
  client->publish("cmnd/i3/inside/lights/012/POWER", "0");
  client->publish("cmnd/i3/inside/lights/013/POWER", "0");
  client->publish("cmnd/i3/inside/lights/014/POWER", "0");
}

Maintenance Info

FAQ

ToDo


Commons Light Switches Zone: Commons Area https://www.i3detroit.org/wi/images/4/4f/Authorization_not_required.svg "/> https://www.i3detroit.org/wiki/Commons_Light_Switches