add NodeMCU example

This commit is contained in:
Dawid Chyrzynski
2021-01-07 23:28:00 +01:00
parent 6983a6d643
commit d01c2f2903
7 changed files with 55 additions and 46 deletions
+3
View File
@@ -11,6 +11,9 @@ bool lastInputState = false;
EthernetClient client;
HADevice device(mac, sizeof(mac));
HAMqtt mqtt(client, device);
// "input" may be anything you want to be displayed in HA panel
// "door" is device class (based on the class HA displays different icons in the panel)
HABinarySensor sensor("input", "door", false, mqtt);
void setup() {