Skip to content

Instantly share code, notes, and snippets.

View nunoazev's full-sized avatar

Nuno Azevedo nunoazev

View GitHub Profile
automation:
- alias: 'Turn on Light'
trigger:
- platform: state
entity_id:
- entity_id_DA_LUZ_A_ESCUTA
to: 'on'
from: 'off'
action:
- service: homeassistant.turn_on
/**
Nuno Azevedo @nunoazev - 2019
https://nunoazev.com
*/
//ESP
#include <ESP8266WiFi.h>
//MQTT
#include <PubSubClient.h>