-
Notifications
You must be signed in to change notification settings - Fork 7
multi_sensors_ac
peros550 edited this page May 2, 2019
·
1 revision
- Temperature / Humidity sensor
- Motion sensor
- Light Sensor
- Physical Button (not exposed in Homekit, used to reset)
- A/C accessory
- The code example uses esp-wifi-config for dynamically setting the Wifi upon its first boot.
- Capability to log data (temperature/humidity) in ThingSpeak server
The following schematic was used for the multi_sensor_ac example:
ThingSpeak integration
The multi_sensor_ac supports logging of temp/humidity data to ThingSpeak server. This functionality is not active by default. In order to activate it, before compile you need to set the following parameters:
#define USE_THINGSPEAK 0 //Turn this into '1' if you want to use log temperature/humidity data at ThingsSpeak.com server
#define WEB_SERVER "api.thingspeak.com"
#define API_KEY "xxxxxxxxxxxxx" //Private API key. This is personal and can been obtained by ThingsSpeak.com
#define FIELD1 "field1=" //temp
#define FIELD2 "field2=" //hum
#define WEB_PORT "80"
#define WEB_PATH "/update?api_key="
#define THINGSPEAK_INTERVAL 600000 //600000 = 10min , 300000 = 5min 60000 = 1min
Special note: The first time that you setup WIFI in multi_sensors_ac, you need to physically reboot the device. This is required so that it can pair successfully in Home app.