This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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); |