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: Motion-activated Switch | |
domain: automation | |
input: | |
motion_entity: | |
name: Motion Sensor | |
selector: | |
entity: | |
domain: binary_sensor | |
device_class: motion |
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 <WiFi.h> | |
#include <esp_wpa2.h> | |
#include <esp_wifi.h> | |
#include <time.h> | |
#include <InfluxDbClient.h> // https://github.com/tobiasschuerg/InfluxDB-Client-for-Arduino | |
#include <Wire.h> | |
#include <Adafruit_BME280.h> // https://github.com/adafruit/Adafruit_BME280_Library | |
#define HOSTNAME "ESP32 Temperature Sensor" | |
#define LOCATION "1000 chem" |
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 "wled.h" | |
#include <Arduino.h> | |
#include <Wire.h> | |
#include <BME280I2C.h> //BME280 sensor | |
void UpdateBME280Data(); | |
#define Celsius // Show temperature mesaurement in Celcius otherwise is in Fahrenheit | |
BME280I2C bme; // Default : forced mode, standby time = 1000 ms | |
// Oversampling = pressure ×1, temperature ×1, humidity ×1, filter off, |
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
esphome: | |
name: deck_lights | |
platform: ESP32 | |
board: lolin32 | |
wifi: | |
networks: | |
- ssid: !secret esphome_wifi_ssid1 | |
password: !secret esphome_wifi_pass1 | |
- ssid: !secret esphome_wifi_ssid2 |
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
esphome: | |
name: entryway_ceiling_light | |
platform: ESP8266 | |
board: esp8285 | |
#arduino_version: 2.4.2 | |
esp8266_restore_from_flash: true | |
wifi: | |
networks: | |
- ssid: !secret esphome_wifi_ssid1 |
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
esphome: | |
name: veneer_display | |
platform: ESP8266 | |
board: d1_mini | |
wifi: | |
networks: | |
- ssid: !secret esphome_wifi_ssid1 | |
password: !secret esphome_wifi_pass1 | |
# - ssid: !secret esphome_wifi_ssid2 |
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
#!/usr/bin/env python3 | |
import paho.mqtt.client as mqtt | |
import argparse | |
import signal | |
import sys | |
import time | |
import logging | |
import json |
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 <Adafruit_DotStar.h> | |
#include <SPI.h> // COMMENT OUT THIS LINE FOR GEMMA OR TRINKET | |
#define NUMPIXELS 30 // Number of LEDs in strip | |
Adafruit_DotStar strip = Adafruit_DotStar(NUMPIXELS, DOTSTAR_BRG); | |
void setup() { | |
Serial.print("Hardware SPI using DATA PIN: "); | |
Serial.println(MOSI); | |
Serial.print("Hardware SPI using CLOCK PIN: "); |
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
sensor: | |
- platform: mqtt | |
state_topic: "flora/11:22:33:44:55:66/temperature" | |
name: "Basil Temperature" | |
unit_of_measurement: "°C" | |
- platform: mqtt | |
state_topic: "flora/11:22:33:44:55:66/moisture" | |
name: "Basil Moisture" | |
unit_of_measurement: "%" |
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 <SparkFun_APDS9960.h> // https://github.com/SteveQuinn1/SparkFun_APDS-9960_Sensor_Arduino_Library | |
#include <SSD1306.h> // https://github.com/ThingPulse/esp8266-oled-ssd1306 | |
#include <ESP8266WiFi.h> | |
#include <WiFiClientSecure.h> | |
#include <HARestAPI.h> // https://github.com/debsahu/HARestAPI | |
// Pins | |
#define SDA_PIN D2 | |
#define SCL_PIN D1 | |
#define APDS9960_INT D3 |
NewerOlder