mirror of
https://github.com/alexhopeoconnor/arduino-home-assistant.git
synced 2026-10-04 02:48:13 +10:00
add NodeMCU example
This commit is contained in:
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user