Skip to content

Instantly share code, notes, and snippets.

blueprint:
name: ZHA - Tuya 2-Button Scene Switch
description: Automate your Tuya 2-Button Scene Switch using ZHA events.
domain: automation
input:
tuya_2button_scene_switch:
name: Tuya 2-Button Scene Switch
description: Tuya 2-Button Scene Switch to use
selector:
device:
@piotrkpaul
piotrkpaul / sds011_nodemcu.ino
Created April 11, 2017 22:56
Lightweight data collector for SDS011 particulate matter sensor on NodeMCU board (ESP8266)
#include <SoftwareSerial.h>
#include "Sds011.h"
#define SDS_RX D1
#define SDS_TX D2
#define SAMPLES 5
SoftwareSerial serialSDS(SDS_RX, SDS_TX);
sds011::Sds011 sds(serialSDS);