Machine Shop Light Switches

From i3Detroit
Jump to: navigation, search
Machine Shop Light Switches
Wast machine shop switches.jpg
Name Machine shop light switches
Zone Machine Shop


Owner i3Detroit
Make Model WeMos ESP8266 board
Part Number n/a
Date Acquired 2017-10
Storage Location entrances to machine shop
Authorization Required No
Status Running
Value $15 each
IP Address 10.13.107.64,10.13.107.23
MAC Address 2C:3A:E8:1D:2A:26, 2C:3A:E8:1D:2B:3A
Hostname machine-shop-switches-west.i3detroit.local, machine-shop-switches-south.i3detroit.local
Documentation https://github.com/i3detroit/custom-mqtt-programs/tree/master/machine-shop-light-switches
Other References


Intro

Rules

Instructions

void lightsOn(PubSubClient* client) { // pin 4
  client->publish("cmnd/i3/inside/lights/029/POWER", "1");
  client->publish("cmnd/i3/inside/lights/030/POWER", "1");
  client->publish("cmnd/i3/inside/lights/031/POWER", "1");
  client->publish("cmnd/i3/inside/lights/032/POWER", "1");
  client->publish("cmnd/i3/inside/lights/033/POWER", "1");
  client->publish("cmnd/i3/inside/lights/034/POWER", "1");
  client->publish("cmnd/i3/inside/lights/035/POWER", "1");
}
void lightsOff(PubSubClient* client) { // pin 5
  client->publish("cmnd/i3/inside/lights/029/POWER", "0");
  client->publish("cmnd/i3/inside/lights/030/POWER", "0");
  client->publish("cmnd/i3/inside/lights/031/POWER", "0");
  client->publish("cmnd/i3/inside/lights/032/POWER", "0");
  client->publish("cmnd/i3/inside/lights/033/POWER", "0");
  client->publish("cmnd/i3/inside/lights/034/POWER", "0");
  client->publish("cmnd/i3/inside/lights/035/POWER", "0");
}
void fanOn(PubSubClient* client) { // pin 0
  client->publish("cmnd/i3/machineShop/fans/ceilingFan/POWER", "1");
}
void fanOff(PubSubClient* client) { // pin 2
  client->publish("cmnd/i3/machineShop/fans/ceilingFan/POWER", "0");
}

Maintenance Info

FAQ

ToDo


Machine Shop Light Switches Zone: Machine Shop https://www.i3detroit.org/wi/images/4/4f/Authorization_not_required.svg "/> https://www.i3detroit.org/wiki/Machine_Shop_Light_Switches