Middle east light switches
Middle east light switches | |
---|---|
Name | Middle east light switches north/south |
Zone | Infrastructure
|
Owner | i3Detroit |
Make Model | WeMos ESP8266 board |
Part Number | n/a |
Date Acquired | 2017-10 |
Storage Location | by west breaker panel, on column next to panel saw |
Authorization Required | No |
Status | Running |
Value | $15 |
IP Address | 10.13.107.76, 10.13.107.35 |
MAC Address | 2C:3A:E8:1D:2A:32, 5C:CF:7F:FA:43:27 |
Hostname | middle-east-light-switches-south, middle-east-light-switches-north |
Documentation | https://github.com/i3detroit/custom-mqtt-programs/tree/master/middle-east-light-switches |
Other References |
Intro
Rules
Instructions
Repo: commons light switches
void westOn(PubSubClient* client) { // pin 4 client->publish("cmnd/i3/inside/lights/020/POWER", "1"); client->publish("cmnd/i3/inside/lights/021/POWER", "1"); client->publish("cmnd/i3/inside/lights/022/POWER", "1"); client->publish("cmnd/i3/inside/lights/023/POWER", "1"); client->publish("cmnd/i3/inside/lights/024/POWER", "1"); client->publish("cmnd/i3/inside/lights/026/POWER", "1"); } void westOff(PubSubClient* client) { // pin 5 client->publish("cmnd/i3/inside/lights/020/POWER", "0"); client->publish("cmnd/i3/inside/lights/021/POWER", "0"); client->publish("cmnd/i3/inside/lights/022/POWER", "0"); client->publish("cmnd/i3/inside/lights/023/POWER", "0"); client->publish("cmnd/i3/inside/lights/024/POWER", "0"); client->publish("cmnd/i3/inside/lights/026/POWER", "0"); } void eastOn(PubSubClient* client) { // pin 0 client->publish("cmnd/i3/inside/lights/015/POWER", "1"); client->publish("cmnd/i3/inside/lights/016/POWER", "1"); client->publish("cmnd/i3/inside/lights/017/POWER", "1"); client->publish("cmnd/i3/inside/lights/018/POWER", "1"); client->publish("cmnd/i3/inside/lights/019/POWER", "1"); } void eastOff(PubSubClient* client) { // pin 2 client->publish("cmnd/i3/inside/lights/015/POWER", "0"); client->publish("cmnd/i3/inside/lights/016/POWER", "0"); client->publish("cmnd/i3/inside/lights/017/POWER", "0"); client->publish("cmnd/i3/inside/lights/018/POWER", "0"); client->publish("cmnd/i3/inside/lights/019/POWER", "0"); }
Maintenance Info
FAQ
ToDo