HomeSpan/examples/ZephyrHood3/ZephyrHood3.ino

33 lines
723 B
C++

#include "HomeSpan.h"
#include "DEV_Identify.h"
#include "DEV_Zephyr.h"
void setup() {
Serial.begin(115200);
homeSpan.begin(Category::Bridges,"ZephyrVH Bridge");
new SpanAccessory();
new DEV_Identify("Zephyr VH Bridge","HomeSpan","ZVH-1","HS Bridge","1.0",3);
new Service::HAPProtocolInformation();
new Characteristic::Version("1.1.0");
new SpanAccessory();
new DEV_Identify("Zephyr Light","HomeSpan","ZVH-1","RF-Control","1.0",0);
new DEV_ZephyrLight(0x51390,17);
new SpanAccessory();
new DEV_Identify("Zephyr Fan","HomeSpan","ZVH-1","RF-Control","1.0",0);
new DEV_ZephyrFan(0x51388,0x61398,16);
}
//////////////////////////////////////
void loop(){
homeSpan.poll();
}