
/**
  ******************************************************************************
  * @file    BLV_Logic_C12ZhanTing_Edit.c
  * @author  BLW RCU  development Team  张树友
  * @version V1.0.0
  * @date    2021年11月30日
  * @ProName C12展厅小房间 - 程序
	* @dev  样板间  C12主板 C1F核心板 无卡取电 C7T开关1 C7T带空气质量显示，空气质量检测1地址 
	福瑞狗蓝牙锁模块0地址，C7T温控器1地址，红外转发1地址，MQTT存在 氟机空调 两个弱电电机
	T1开关2,3,4,5,6,7,8,9,10,11
  ******************************************************************************
  */



#include "BLV_Logic_C12ZhanTing_Edit.h"

#include "includes.h"     

#if   C12ZhanTing              

#define OpenAllRGB  100
#define CloseRelay   101
#define SleepTone    104    //提示夜已深
#define MorningTone  105    //提示早餐
#define CheckOutTone 106    //提示退房

void BLV_DevAction_C12ZhanTing_Data_Init(void);      
void BLV_Dev_C12ZhanTing_Data_Init(void);
void BlwMapDev_Init(void);


void ProLogic_C12ZhanTing_Get(void)
{	
	BLV_Dev_C12ZhanTing_Data_Init();
	BLV_DevAction_C12ZhanTing_Data_Init();
	
	BlwMapDev_Init();       //宝来威映射表初始化
}

      


#if 1  //SingleRoom


/*485取电开取电服务*/
void BLV_DevAction_C12ZhanTing_Rs485CardIn_Add(void)
{
	uint8_t DevCoreBuf[] = //2字节
	{
		0x00,0x00,//场景编号
	};
	char DevName[] = "Rs485CardPress";//32个字节
	
	uint8_t DevInputBuf[] = 
	{
/*   设备类型           设备地址   输入回路         输入类型 所有身份取电               */		
		 DEV_RS485_CARD,   0x01,     LOOPCH01,0x00,   0x55, 0x05,            //按下
	};
	
	uint8_t DevCondBuf[] =  //9个字节
	{
/*  动作启用不关联房态             与卡无关       其他条件                执行方式   */		
		0x00,                           0x00,    0x00,0x00,0x00,0x00,0x00,0x00,    LIGHT_SCENE_ONE,
	};
	
	
	uint8_t DevCtrlBuf[] = 
	{
/*  设备类型          设备地址    输出回路          设备输出    数据备用   */		
		Dev_Host_Service,  0x00,      LOOPCH01,0x00,    0x01,0x00,  0x00,0x00,        //控制取电服务
		DEV_C5MUSIC_Type,  0x01,      LOOPCH01,0x00,    0x51,0x01,   0x00,0x00,   //场景打开 指定播放词条  对于不同种类的背景音乐，执行方式有差异

		
//		Dev_Host_LVoutput,0x00,      LOOPCH01,0x00,      0x03,0x64,  0x00,0x00,
	};
	Dbg_Println(DBG_BIT_LOGIC_STATUS_bit,"Add Scene, ID:%d, Scene Name:%s",DevCoreBuf[0], DevName);
	//判断扩展设备个数
	BLV_DevAction_Add(DevCoreBuf, DevName, DevInputBuf, DevCondBuf, sizeof(DevCtrlBuf)/sizeof(Dev_Action_OutCfg), DevCtrlBuf);
}

/*485取电关闭取电服务*/
void BLV_DevAction_C12ZhanTing_Rs485CardOut_Add(void)
{
	uint8_t DevCoreBuf[] = //2字节
	{
		0x00,0x00,//场景编号
	};
	char DevName[] = "Rs485CardRelease";//32个字节
	
	uint8_t DevInputBuf[] = 
	{
/*   设备类型           设备地址   输入回路         输入类型 所有身份取电               */		
		 DEV_RS485_CARD,   0x01,     LOOPCH01,0x00,    0xAA, 0x0A,            //释放
	};
	
	uint8_t DevCondBuf[] =  //9个字节
	{
/*  动作启用不关联房态             与卡无关       其他条件                执行方式   */		
		0x00,                           0x00,    0x00,0x00,0x00,0x00,0x00,0x00,    LIGHT_SCENE_ONE,
	};
	
	
	uint8_t DevCtrlBuf[] = 
	{
/*  设备类型          设备地址    输出回路          设备输出    数据备用   */		
		Dev_Host_Service,  0x00,      LOOPCH01,0x00,    0x02,0x00,  0x0A,0x02,        //控制取电服务
		DEV_C5MUSIC_Type,  0x01,      LOOPCH01,0x00,    0x21,0x0D,   0x00,0x00,   //场景打开 指定播放词条  对于不同种类的背景音乐，执行方式有差异

		
//		Dev_Host_LVoutput,0x00,      LOOPCH01,0x00,      0x03,0x64,  0x00,0x00,
	};
	Dbg_Println(DBG_BIT_LOGIC_STATUS_bit,"Add Scene, ID:%d, Scene Name:%s",DevCoreBuf[0], DevName);
	//判断扩展设备个数
	BLV_DevAction_Add(DevCoreBuf, DevName, DevInputBuf, DevCondBuf, sizeof(DevCtrlBuf)/sizeof(Dev_Action_OutCfg), DevCtrlBuf);
}

/*485温控器控制输出函数*/
void BLV_DevAction_C12ZhanTing_Rs485TemCtrl_Add(void)
{
	uint8_t DevCoreBuf[] = //2字节
	{
		0x00,0x00,//场景编号
	};
	char DevName[] = "Rs485TemCtrl";//32个字节
	
	uint8_t DevInputBuf[] = 
	{
/*   设备类型             设备地址   输入回路         输入类型 所有动作               */		
		 DEV_RS485_TEMP,   0x01,     LOOPCH01,0x00,    0x1E, 0x00,            //温控器控制
	};
	
	uint8_t DevCondBuf[] =  //9个字节   
	{
/*  动作启用不关联房态             与卡无关       其他条件                执行方式   */		
		0x00,                           0x00,    0x00,0x00,0x00,0x00,0x00,0x00,    LIGHT_SCENE_ONE,
	};
	
	uint8_t DevCtrlBuf[] = 
	{
/*  设备类型          设备地址    输出回路          设备输出    数据备用   */		
		DEV_RS485_IR_SEND,   0x01,     LOOPCH01,0x00,    0x01,0x00,   0x00,0x00,   //   
		
//		Dev_Host_LVoutput,0x00,      LOOPCH01,0x00,      0x03,0x64,  0x00,0x00,
	};
	Dbg_Println(DBG_BIT_LOGIC_STATUS_bit,"Add Scene, ID:%d, Scene Name:%s",DevCoreBuf[0], DevName);
	//判断扩展设备个数
	BLV_DevAction_Add(DevCoreBuf, DevName, DevInputBuf, DevCondBuf, sizeof(DevCtrlBuf)/sizeof(Dev_Action_OutCfg), DevCtrlBuf);
}

/*485温控器开机输出函数*/
void BLV_DevAction_C12ZhanTing_Rs485TemOn_Add(void)
{
	uint8_t DevCoreBuf[] = //2字节
	{
		0x00,0x00,//场景编号
	};
	char DevName[] = "Rs485TemOn";//32个字节
	
	uint8_t DevInputBuf[] = 
	{
/*   设备类型             设备地址   输入回路         输入类型 所有动作               */		
		 DEV_RS485_TEMP,   0x01,     LOOPCH01,0x00,    0x20, 0x80,            //温控器控制
	};
	
	uint8_t DevCondBuf[] =  //9个字节
	{
/*  动作启用不关联房态             与卡无关       其他条件  提示音              执行方式   */		
		0x00,                           0x00,    0x00,0x00,0x00,0x80,0x01,0x00,    LIGHT_SCENE_ONE,
	};
	
	uint8_t DevCtrlBuf[] = 
	{
/*  设备类型          设备地址    输出回路          设备输出    数据备用   */		
		DEV_RS485_IR_SEND,   0x01,     LOOPCH01,0x00,    0x01,0x00,   0x00,0x00,   // 
//		Dev_Host_HVout, 		 0x00,      LOOPCH17,0x00,    0x01,0x00,  0x00,0x00,        //控制继电器
		
		DEV_C5MUSIC_Type,  0x01,      LOOPCH01,0x00,    0x21,0x0B,   0x00,0x00,   //场景打开 指定播放词条  对于不同种类的背景音乐，执行方式有差异
		
//		Dev_Host_LVoutput,0x00,      LOOPCH01,0x00,      0x03,0x64,  0x00,0x00,
	};
	Dbg_Println(DBG_BIT_LOGIC_STATUS_bit,"Add Scene, ID:%d, Scene Name:%s",DevCoreBuf[0], DevName);
	//判断扩展设备个数
	BLV_DevAction_Add(DevCoreBuf, DevName, DevInputBuf, DevCondBuf, sizeof(DevCtrlBuf)/sizeof(Dev_Action_OutCfg), DevCtrlBuf);
}

/*485温控器关机输出函数*/
void BLV_DevAction_C12ZhanTing_Rs485TemOff_Add(void)
{
	uint8_t DevCoreBuf[] = //2字节
	{
		0x00,0x00,//场景编号
	};
	char DevName[] = "Rs485TemOff";//32个字节
	
	uint8_t DevInputBuf[] = 
	{
/*   设备类型             设备地址   输入回路         输入类型 所有动作               */		
		 DEV_RS485_TEMP,   0x01,     LOOPCH01,0x00,    0x20, 0x00,            //温控器控制
	};
	
	uint8_t DevCondBuf[] =  //9个字节
	{
/*  动作启用不关联房态             与卡无关       其他条件  提示音              执行方式   */		
		0x00,                           0x00,    0x00,0x00,0x00,0x80,0x01,0x00,    LIGHT_SCENE_ONE,
	};
	
	uint8_t DevCtrlBuf[] = 
	{
/*  设备类型          设备地址    输出回路          设备输出    数据备用   */		
		DEV_RS485_IR_SEND,   0x01,     LOOPCH01,0x00,    0x01,0x00,   0x00,0x00,   //  
//		Dev_Host_HVout, 		 0x00,      LOOPCH17,0x00,    0x02,0x00,  0x00,0x00,        //控制继电器
//		Dev_Host_HVout, 		 0x00,      LOOPCH18,0x00,    0x02,0x00,  0x00,0x00,        //控制继电器
//		Dev_Host_HVout, 		 0x00,      LOOPCH19,0x00,    0x02,0x00,  0x00,0x00,        //控制继电器
//		Dev_Host_HVout, 		 0x00,      LOOPCH20,0x00,    0x02,0x00,  0x00,0x00,        //控制继电器
//		Dev_Host_HVout, 		 0x00,      LOOPCH13,0x00,    0x02,0x00,  0x00,0x00,        //控制继电器
//		Dev_Host_HVout, 		 0x00,      LOOPCH14,0x00,    0x02,0x00,  0x00,0x00,        //控制继电器
//		Dev_Host_HVout, 		 0x00,      LOOPCH15,0x00,    0x02,0x00,  0x00,0x00,        //控制继电器
//		Dev_Host_HVout, 		 0x00,      LOOPCH16,0x00,    0x02,0x00,  0x00,0x00,        //控制继电器
		
		DEV_C5MUSIC_Type,  0x01,      LOOPCH01,0x00,    0x21,0x0C,   0x00,0x00,   //场景打开 指定播放词条  对于不同种类的背景音乐，执行方式有差异
		
//		Dev_Host_LVoutput,0x00,      LOOPCH01,0x00,      0x03,0x64,  0x00,0x00,
	};
	Dbg_Println(DBG_BIT_LOGIC_STATUS_bit,"Add Scene, ID:%d, Scene Name:%s",DevCoreBuf[0], DevName);
	//判断扩展设备个数
	BLV_DevAction_Add(DevCoreBuf, DevName, DevInputBuf, DevCondBuf, sizeof(DevCtrlBuf)/sizeof(Dev_Action_OutCfg), DevCtrlBuf);
}


/*485温控器阀开输出函数*/
void BLV_DevAction_C12ZhanTing_Rs485TemValveOpen_Add(void)
{
	uint8_t DevCoreBuf[] = //2字节
	{
		0x00,0x00,//场景编号
	};
	char DevName[] = "ValveOpen";//32个字节
	
	uint8_t DevInputBuf[] = 
	{
/*   设备类型             设备地址   输入回路         输入类型 阀门               */		
		 DEV_RS485_TEMP,   0x00,     LOOPCH01,0x00,    0x04, 0x04,            //温控器控制
	};
	
	uint8_t DevCondBuf[] =  //9个字节
	{
/*  动作启用不关联房态             与卡无关       其他条件                执行方式   */		
		0x00,                           0x00,    0x00,0x00,0x00,0x00,0x00,0x00,    LIGHT_SCENE_ONE,
	};
	
	uint8_t DevCtrlBuf[] = 
	{
/*  设备类型          设备地址    输出回路          设备输出    数据备用   */		
//		DEV_RS485_IR_SEND,   0x01,     LOOPCH01,0x00,    0x01,0x00,   0x00,0x00,   // 
		Dev_Host_HVout, 		 0x00,      LOOPCH13,0x00,    0x01,0x00,  0x00,0x00,        //控制继电器
		
//		DEV_C5MUSIC_Type,  0x01,      LOOPCH01,0x00,    0x21,0x0B,   0x00,0x00,   //场景打开 指定播放词条  对于不同种类的背景音乐，执行方式有差异
		
//		Dev_Host_LVoutput,0x00,      LOOPCH01,0x00,      0x03,0x64,  0x00,0x00,
	};
	Dbg_Println(DBG_BIT_LOGIC_STATUS_bit,"Add Scene, ID:%d, Scene Name:%s",DevCoreBuf[0], DevName);
	//判断扩展设备个数
	BLV_DevAction_Add(DevCoreBuf, DevName, DevInputBuf, DevCondBuf, sizeof(DevCtrlBuf)/sizeof(Dev_Action_OutCfg), DevCtrlBuf);
}

/*485温控器阀关输出函数*/
void BLV_DevAction_C12ZhanTing_Rs485TemValveClose_Add(void)
{
	uint8_t DevCoreBuf[] = //2字节
	{
		0x00,0x00,//场景编号
	};
	char DevName[] = "ValveClose";//32个字节
	
	uint8_t DevInputBuf[] = 
	{
/*   设备类型             设备地址   输入回路         输入类型 所有动作               */		
		 DEV_RS485_TEMP,   0x00,     LOOPCH01,0x00,    0x04, 0x00,            //温控器控制
	};
	
	uint8_t DevCondBuf[] =  //9个字节
	{
/*  动作启用不关联房态             与卡无关       其他条件                执行方式   */		
		0x00,                           0x00,    0x00,0x00,0x00,0x00,0x00,0x00,    LIGHT_SCENE_ONE,
	};
	
	uint8_t DevCtrlBuf[] = 
	{
/*  设备类型          设备地址    输出回路          设备输出    数据备用   */		
//		DEV_RS485_IR_SEND,   0x01,     LOOPCH01,0x00,    0x01,0x00,   0x00,0x00,   //  
		Dev_Host_HVout, 		 0x00,      LOOPCH13,0x00,    0x02,0x00,  0x00,0x00,        //控制继电器
		
//		DEV_C5MUSIC_Type,  0x01,      LOOPCH01,0x00,    0x21,0x0C,   0x00,0x00,   //场景打开 指定播放词条  对于不同种类的背景音乐，执行方式有差异
		
//		Dev_Host_LVoutput,0x00,      LOOPCH01,0x00,      0x03,0x64,  0x00,0x00,
	};
	Dbg_Println(DBG_BIT_LOGIC_STATUS_bit,"Add Scene, ID:%d, Scene Name:%s",DevCoreBuf[0], DevName);
	//判断扩展设备个数
	BLV_DevAction_Add(DevCoreBuf, DevName, DevInputBuf, DevCondBuf, sizeof(DevCtrlBuf)/sizeof(Dev_Action_OutCfg), DevCtrlBuf);
}
/*485温控器停风速输出函数*/
void BLV_DevAction_C12ZhanTing_Rs485TemFanStop_Add(void)
{
	uint8_t DevCoreBuf[] = //2字节
	{
		0x00,0x00,//场景编号
	};
	char DevName[] = "FanStop";//32个字节
	
	uint8_t DevInputBuf[] = 
	{
/*   设备类型             设备地址   输入回路         输入类型 所有动作               */		
		 DEV_RS485_TEMP,   0x00,     LOOPCH01,0x00,    0x08, 0x00,            //温控器控制
	};
	
	uint8_t DevCondBuf[] =  //9个字节
	{
/*  动作启用不关联房态             与卡无关       其他条件                执行方式   */		
		0x00,                           0x00,    0x00,0x00,0x00,0x00,0x00,0x00,    LIGHT_SCENE_ONE,
	};
	
	uint8_t DevCtrlBuf[] = 
	{
/*  设备类型          设备地址    输出回路          设备输出    数据备用   */		
//		DEV_RS485_IR_SEND,   0x01,     LOOPCH01,0x00,    0x01,0x00,   0x00,0x00,   //
		Dev_Host_HVout, 		 0x00,      LOOPCH14,0x00,    0x02,0x00,  0x00,0x00,        //控制继电器
		Dev_Host_HVout, 		 0x00,      LOOPCH15,0x00,    0x02,0x00,  0x00,0x00,        //控制继电器
		Dev_Host_HVout, 		 0x00,      LOOPCH16,0x00,    0x02,0x00,  0x00,0x00,        //控制继电器
		
//		DEV_C5MUSIC_Type,  0x01,      LOOPCH01,0x00,    0x21,0x0C,   0x00,0x00,   //场景打开 指定播放词条  对于不同种类的背景音乐，执行方式有差异
		
//		Dev_Host_LVoutput,0x00,      LOOPCH01,0x00,      0x03,0x64,  0x00,0x00,
	};
	Dbg_Println(DBG_BIT_LOGIC_STATUS_bit,"Add Scene, ID:%d, Scene Name:%s",DevCoreBuf[0], DevName);
	//判断扩展设备个数
	BLV_DevAction_Add(DevCoreBuf, DevName, DevInputBuf, DevCondBuf, sizeof(DevCtrlBuf)/sizeof(Dev_Action_OutCfg), DevCtrlBuf);
}

/*485温控器低风速输出函数*/
void BLV_DevAction_C12ZhanTing_Rs485TemFanLow_Add(void)
{
	uint8_t DevCoreBuf[] = //2字节
	{
		0x00,0x00,//场景编号
	};
	char DevName[] = "FanLow";//32个字节
	
	uint8_t DevInputBuf[] = 
	{
/*   设备类型             设备地址   输入回路         输入类型 所有动作               */		
		 DEV_RS485_TEMP,   0x00,     LOOPCH01,0x00,    0x08, 0x08,            //温控器控制
	};
	
	uint8_t DevCondBuf[] =  //9个字节
	{
/*  动作启用不关联房态             与卡无关       其他条件                执行方式   */		
		0x00,                           0x00,    0x00,0x00,0x00,0x00,0x00,0x00,    LIGHT_SCENE_ONE,
	};
	
	uint8_t DevCtrlBuf[] = 
	{
/*  设备类型          设备地址    输出回路          设备输出    数据备用   */		
//		DEV_RS485_IR_SEND,   0x01,     LOOPCH01,0x00,    0x01,0x00,   0x00,0x00,   //
		Dev_Host_HVout, 		 0x00,      LOOPCH14,0x00,    0x02,0x00,  0x00,0x00,        //控制继电器
		Dev_Host_HVout, 		 0x00,      LOOPCH15,0x00,    0x02,0x00,  0x00,0x00,        //控制继电器
		Dev_Host_HVout, 		 0x00,      LOOPCH16,0x00,    0x01,0x00,  0x00,0x00,        //控制继电器
		
//		DEV_C5MUSIC_Type,  0x01,      LOOPCH01,0x00,    0x21,0x0C,   0x00,0x00,   //场景打开 指定播放词条  对于不同种类的背景音乐，执行方式有差异
		
//		Dev_Host_LVoutput,0x00,      LOOPCH01,0x00,      0x03,0x64,  0x00,0x00,
	};
	Dbg_Println(DBG_BIT_LOGIC_STATUS_bit,"Add Scene, ID:%d, Scene Name:%s",DevCoreBuf[0], DevName);
	//判断扩展设备个数
	BLV_DevAction_Add(DevCoreBuf, DevName, DevInputBuf, DevCondBuf, sizeof(DevCtrlBuf)/sizeof(Dev_Action_OutCfg), DevCtrlBuf);
}

/*485温控器中风速输出函数*/
void BLV_DevAction_C12ZhanTing_Rs485TemFanMid_Add(void)
{
	uint8_t DevCoreBuf[] = //2字节
	{
		0x00,0x00,//场景编号
	};
	char DevName[] = "FanMid";//32个字节
	
	uint8_t DevInputBuf[] = 
	{
/*   设备类型             设备地址   输入回路         输入类型 所有动作               */		
		 DEV_RS485_TEMP,   0x00,     LOOPCH01,0x00,    0x08, 0x10,            //温控器控制
	};
	
	uint8_t DevCondBuf[] =  //9个字节
	{
/*  动作启用不关联房态             与卡无关       其他条件                执行方式   */		
		0x00,                           0x00,    0x00,0x00,0x00,0x00,0x00,0x00,    LIGHT_SCENE_ONE,
	};
	
	uint8_t DevCtrlBuf[] = 
	{
/*  设备类型          设备地址    输出回路          设备输出    数据备用   */		
//		DEV_RS485_IR_SEND,   0x01,     LOOPCH01,0x00,    0x01,0x00,   0x00,0x00,   //  
		Dev_Host_HVout, 		 0x00,      LOOPCH14,0x00,    0x02,0x00,  0x00,0x00,        //控制继电器
		Dev_Host_HVout, 		 0x00,      LOOPCH15,0x00,    0x01,0x00,  0x00,0x00,        //控制继电器
		Dev_Host_HVout, 		 0x00,      LOOPCH16,0x00,    0x02,0x00,  0x00,0x00,        //控制继电器
				
//		DEV_C5MUSIC_Type,  0x01,      LOOPCH01,0x00,    0x21,0x0C,   0x00,0x00,   //场景打开 指定播放词条  对于不同种类的背景音乐，执行方式有差异
		
//		Dev_Host_LVoutput,0x00,      LOOPCH01,0x00,      0x03,0x64,  0x00,0x00,
	};
	Dbg_Println(DBG_BIT_LOGIC_STATUS_bit,"Add Scene, ID:%d, Scene Name:%s",DevCoreBuf[0], DevName);
	//判断扩展设备个数
	BLV_DevAction_Add(DevCoreBuf, DevName, DevInputBuf, DevCondBuf, sizeof(DevCtrlBuf)/sizeof(Dev_Action_OutCfg), DevCtrlBuf);
}

/*485温控器高风速输出函数*/
void BLV_DevAction_C12ZhanTing_Rs485TemFanHigh_Add(void)
{
	uint8_t DevCoreBuf[] = //2字节
	{
		0x00,0x00,//场景编号
	};
	char DevName[] = "FanHigh";//32个字节
	
	uint8_t DevInputBuf[] = 
	{
/*   设备类型             设备地址   输入回路         输入类型 所有动作               */		
		 DEV_RS485_TEMP,   0x00,     LOOPCH01,0x00,    0x08, 0x18,            //温控器控制
	};
	
	uint8_t DevCondBuf[] =  //9个字节
	{
/*  动作启用不关联房态             与卡无关       其他条件                执行方式   */		
		0x00,                           0x00,    0x00,0x00,0x00,0x00,0x00,0x00,    LIGHT_SCENE_ONE,
	};
	
	uint8_t DevCtrlBuf[] = 
	{
/*  设备类型          设备地址    输出回路          设备输出    数据备用   */		
//		DEV_RS485_IR_SEND,   0x01,     LOOPCH01,0x00,    0x01,0x00,   0x00,0x00,   //  
		Dev_Host_HVout, 		 0x00,      LOOPCH14,0x00,    0x01,0x00,  0x00,0x00,        //控制继电器
		Dev_Host_HVout, 		 0x00,      LOOPCH15,0x00,    0x02,0x00,  0x00,0x00,        //控制继电器
		Dev_Host_HVout, 		 0x00,      LOOPCH16,0x00,    0x02,0x00,  0x00,0x00,        //控制继电器
				
//		DEV_C5MUSIC_Type,  0x01,      LOOPCH01,0x00,    0x21,0x0C,   0x00,0x00,   //场景打开 指定播放词条  对于不同种类的背景音乐，执行方式有差异
		
//		Dev_Host_LVoutput,0x00,      LOOPCH01,0x00,      0x03,0x64,  0x00,0x00,
	};
	Dbg_Println(DBG_BIT_LOGIC_STATUS_bit,"Add Scene, ID:%d, Scene Name:%s",DevCoreBuf[0], DevName);
	//判断扩展设备个数
	BLV_DevAction_Add(DevCoreBuf, DevName, DevInputBuf, DevCondBuf, sizeof(DevCtrlBuf)/sizeof(Dev_Action_OutCfg), DevCtrlBuf);
}


/*干节点开取电服务*/
void BLV_DevAction_C12ZhanTing_LVin01Press_Add(void)
{
	uint8_t DevCoreBuf[] = //2字节
	{
		0x00,0x00,//场景编号
	};
	char DevName[] = "LVin01Press";//32个字节
	
	uint8_t DevInputBuf[] = 
	{
/*   设备类型           设备地址   输入回路         输入类型               */		
		 Dev_Host_LVinput,   0x00,     LOOPCH01,0x00,   KeyPress, 0x00,            //按下
	};
	
	uint8_t DevCondBuf[] =  //9个字节
	{
/*  动作启用不关联房态             与卡无关       其他条件                执行方式   */		
		0x00,                           0x00,    0x00,0x00,0x00,0x00,0x00,0x00,    LIGHT_SCENE_ONE,
	};
	
	
	uint8_t DevCtrlBuf[] = 
	{
/*  设备类型          设备地址    输出回路          设备输出    数据备用   */		
		Dev_Host_Service,  0x00,      LOOPCH01,0x00,    0x01,0x00,  0x00,0x00,        //控制取电服务
//		DEV_C5MUSIC_Type,  0x01,      LOOPCH01,0x00,    0x51,0x01,   0x00,0x00,   //场景打开 指定播放词条  对于不同种类的背景音乐，执行方式有差异

		
//		Dev_Host_LVoutput,0x00,      LOOPCH01,0x00,      0x03,0x64,  0x00,0x00,
	};
	Dbg_Println(DBG_BIT_LOGIC_STATUS_bit,"Add Scene, ID:%d, Scene Name:%s",DevCoreBuf[0], DevName);
	//判断扩展设备个数
	BLV_DevAction_Add(DevCoreBuf, DevName, DevInputBuf, DevCondBuf, sizeof(DevCtrlBuf)/sizeof(Dev_Action_OutCfg), DevCtrlBuf);
}

/*干节点关取电服务*/
void BLV_DevAction_C12ZhanTing_LVin01Release_Add(void)
{
	uint8_t DevCoreBuf[] = //2字节
	{
		0x00,0x00,//场景编号
	};
	char DevName[] = "LVin01Release";//32个字节
	
	uint8_t DevInputBuf[] = 
	{
/*   设备类型           设备地址   输入回路         输入类型               */		
		 Dev_Host_LVinput,   0x00,     LOOPCH01,0x00,   KeyRelease,  0x00,            //释放
	};
	
	uint8_t DevCondBuf[] =  //9个字节
	{
/*  动作启用不关联房态             与卡无关       其他条件                执行方式   */		
		0x00,                           0x00,   0x00,0x00,0x00,0x00,0x00,0x00,    LIGHT_SCENE_ONE,
	};
	
	
	uint8_t DevCtrlBuf[] = 
	{
/*  设备类型          设备地址    输出回路          设备输出    数据备用   */		
		Dev_Host_Service,  0x00,      LOOPCH01,0x00,    0x02,0x00,  0x05,0x02,        //控制取电服务延时关
//		DEV_C5MUSIC_Type,  0x01,      LOOPCH01,0x00,    0x21,0x0D,  0x00,0x00,   //场景打开 播放离开词条

		
//		Dev_Host_LVoutput,0x00,      LOOPCH01,0x00,      0x03,0x64,  0x00,0x00,
	};
	Dbg_Println(DBG_BIT_LOGIC_STATUS_bit,"Add Scene, ID:%d, Scene Name:%s",DevCoreBuf[0], DevName);
	//判断扩展设备个数
	BLV_DevAction_Add(DevCoreBuf, DevName, DevInputBuf, DevCondBuf, sizeof(DevCtrlBuf)/sizeof(Dev_Action_OutCfg), DevCtrlBuf);
}

/*插卡场景*/
void BLV_DevAction_C12ZhanTing_EleOpen_Add(void)
{
	uint8_t DevCoreBuf[] = //2字节
	{
		0x00,0x00,//场景编号
	};
	char DevName[] = "EleOpen";//32个字节
	
	uint8_t DevInputBuf[] = 
	{
/*   设备类型           设备地址   输入回路         输入类型               */		
		 Dev_Host_Service,   0x00,     LOOPCH01,0x00,   DEV_CTRLWAY_OPEN, 0x00,   
	};
	
	uint8_t DevCondBuf[] =  //9个字节
	{
/*  动作启用不关联房态             与卡无关       其他条件                执行方式   */		
		0x00,                           0x00,   0x00,0x00,0x00,0x00,0x00,0x00,    LIGHT_SCENE_ONE,
	};
	
	
	uint8_t DevCtrlBuf[] = 
	{
/*  设备类型         设备地址    输出回路          设备输出    数据备用   */		
		Dev_Host_HVout,  0x00,      LOOPCH01,0x00,    0x01,0x00,  0x00,0x00,        //控制继电器
//		Dev_Host_HVout,  0x00,      LOOPCH02,0x00,    0x01,0x00,  0x00,0x00,        //控制继电器
//		Dev_Host_HVout,  0x00,      LOOPCH03,0x00,    0x01,0x00,  0x00,0x00,        //控制继电器
//		Dev_Host_HVout,  0x00,      LOOPCH04,0x00,    0x01,0x00,  0x00,0x00,        //控制继电器
		Dev_Host_HVout,  0x00,      LOOPCH05,0x00,    0x01,0x00,  0x00,0x00,        //控制继电器
		Dev_Host_HVout,  0x00,      LOOPCH06,0x00,    0x01,0x00,  0x00,0x00,        //控制继电器
		
//		DEV_C12DIMMING_Type,  0x00,    LOOPCH01,0x00,    0x02,00,  0x00,0x00,        //控制调光
//		DEV_C12DIMMING_Type,  0x00,    LOOPCH02,0x00,    0x01,20,  0x00,0x00,        //控制调光
		DEV_C12DIMMING_Type,  0x00,    LOOPCH03,0x00,    0x01,80,  0x00,0x00,        //控制调光
		DEV_C12DIMMING_Type,  0x00,    LOOPCH04,0x00,    0x01,80,  0x00,0x00,        //控制调光
		DEV_C12DIMMING_Type,  0x00,    LOOPCH05,0x00,    0x01,80,  0x00,0x00,        //控制调光
		DEV_C12DIMMING_Type,  0x00,    LOOPCH06,0x00,    0x01,80,  0x00,0x00,        //控制调光
		DEV_C12DIMMING_Type,  0x00,    LOOPCH07,0x00,    0x01,80,  0x00,0x00,        //控制调光
//		DEV_C12DIMMING_Type,  0x00,    LOOPCH08,0x00,    0x0B,25,  0x00,0x00,        //控制调光
//		DEV_C12DIMMING_Type,  0x00,    LOOPCH09,0x00,    0x02,00,  0x00,0x00,        //控制调光
//		DEV_RS485_PWM,  0x01,      LOOPCH01,0x00,    0x01,100,  0x00,0x00,        //控制调光
		
		Dev_NodeCurtain, 0x00,      LOOPCH01,0x00,    0x01,0x00,  0x00,0x00,        //控制窗帘
		Dev_NodeCurtain, 0x01,      LOOPCH01,0x00,    0x02,0x00,  0x00,0x00,        //控制窗帘
		DEV_RS485_TEMP,0x01,   LOOPCH01,0x00,    0x00,0x40,  20,0x02,        //控制空调开机 延时20秒
		
		DEV_C5MUSIC_Type,  0x01,      LOOPCH01,0x00,    0x00,0x80,   0x00,0x00,		//
		DEV_C5MUSIC_Type,  0x01,      LOOPCH01,0x00,    0x51,0x01,   0x00,0x00,   //场景打开 指定播放词条  对于不同种类的背景音乐，执行方式有差异

		Dev_Host_LVoutput,0x00,      LOOPCH01,0x00,      0x01,0x00,  0x00,0x00,
	};
	Dbg_Println(DBG_BIT_LOGIC_STATUS_bit,"Add Scene, ID:%d, Scene Name:%s",DevCoreBuf[0], DevName);
	//判断扩展设备个数
	BLV_DevAction_Add(DevCoreBuf, DevName, DevInputBuf, DevCondBuf, sizeof(DevCtrlBuf)/sizeof(Dev_Action_OutCfg), DevCtrlBuf);
}

/*拔卡场景*/
void BLV_DevAction_C12ZhanTing_EleClose_Add(void)
{
	uint8_t DevCoreBuf[] = //2字节
	{
		0x00,0x00,//场景编号
	};
	char DevName[] = "EleClose";//32个字节
	
	uint8_t DevInputBuf[] = 
	{
/*   设备类型           设备地址   输入回路         输入类型               */		
		 Dev_Host_Service,   0x00,     LOOPCH01,0x00,   DEV_CTRLWAY_CLOSE,  0x00,  
	};
	
	uint8_t DevCondBuf[] =  //9个字节
	{
/*  动作启用不关联房态             与卡无关       其他条件                执行方式   */		
		0x00,                           0x00,   0x00,0x00,0x00,0x00,0x00,0x00,    LIGHT_SCENE_ONE,
	};
	
	
	uint8_t DevCtrlBuf[] = 
	{
/*  设备类型         设备地址    输出回路          设备输出    数据备用   */		
//		Dev_Host_HVout,  0x00,      LOOPCH01,0x00,    0x02,0x00,  0x00,0x00,        //控制继电器
//		Dev_Host_HVout,  0x00,      LOOPCH02,0x00,    0x02,0x00,  0x00,0x00,        //控制继电器
//		Dev_Host_HVout,  0x00,      LOOPCH03,0x00,    0x02,0x00,  0x00,0x00,        //控制继电器
//		Dev_Host_HVout,  0x00,      LOOPCH04,0x00,    0x02,0x00,  0x00,0x00,        //控制继电器
//		Dev_Host_HVout,  0x00,      LOOPCH05,0x00,    0x02,0x00,  0x00,0x00,        //控制继电器
//		Dev_Host_HVout,  0x00,      LOOPCH06,0x00,    0x02,0x00,  0x00,0x00,        //控制继电器
		Dev_Host_Invalid,   0x00,   CloseRelay,0x00,    0x01,0x00,  0x00,0x00,        //控制自定义场景
		
		DEV_C12DIMMING_Type,  0x00,    LOOPCH01,0x00,    0x02,00,  0x00,0x00,        //控制调光
		DEV_C12DIMMING_Type,  0x00,    LOOPCH02,0x00,    0x02,00,  0x00,0x00,        //控制调光
		DEV_C12DIMMING_Type,  0x00,    LOOPCH03,0x00,    0x02,00,  0x00,0x00,        //控制调光
		DEV_C12DIMMING_Type,  0x00,    LOOPCH04,0x00,    0x02,00,  0x00,0x00,        //控制调光
		DEV_C12DIMMING_Type,  0x00,    LOOPCH05,0x00,    0x02,00,  0x00,0x00,        //控制调光
		DEV_C12DIMMING_Type,  0x00,    LOOPCH06,0x00,    0x02,00,  0x00,0x00,        //控制调光
		DEV_C12DIMMING_Type,  0x00,    LOOPCH07,0x00,    0x02,00,  0x00,0x00,        //控制调光
		DEV_C12DIMMING_Type,  0x00,    LOOPCH08,0x00,    0x02,00,  0x00,0x00,        //控制调光
		DEV_C12DIMMING_Type,  0x00,    LOOPCH09,0x00,    0x02,00,  0x00,0x00,        //控制调光
		DEV_C12DIMMING_Type,  0x00,    LOOPCH10,0x00,    0x02,00,  0x00,0x00,        //控制调光
		
		Dev_NodeCurtain, 0x00,      LOOPCH01,0x00,    0x02,0x00,  0x00,0x00,        //控制窗帘
		Dev_NodeCurtain, 0x01,      LOOPCH01,0x00,    0x02,0x00,  0x00,0x00,        //控制窗帘
		
		DEV_RS485_TEMP,0x01,   LOOPCH01,0x00,    0x00,0x80,  0x00,0x00,        //控制空调关机
		
		Dev_Host_Invalid,   0x00,   OpenAllRGB,0x00,    0x02,0x00,  0x00,0x00,        //控制自定义场景
		
//		DEV_C5MUSIC_Type,  0x01,      LOOPCH01,0x00,    0x21,0x0D,  0x00,0x00,   //场景打开 播放离开词条
		DEV_C5MUSIC_Type,  0x01,      LOOPCH01,0x00,    0x21,41,  0x00,0x00,   //场景打开 播放离开词条

//		DEV_RS485_PWM,   0x01,      LOOPCH01,0x00,    0x02,0x00,   0x00,0x00,        //控制调光
//		DEV_RS485_PWM,   0x01,      LOOPCH02,0x00,    0x02,0x00,   0x00,0x00,        //控制调光
		
		Dev_Host_LVoutput,0x00,      LOOPCH01,0x00,      0x02,0x00,  0x00,0x00,
	};
	Dbg_Println(DBG_BIT_LOGIC_STATUS_bit,"Add Scene, ID:%d, Scene Name:%s",DevCoreBuf[0], DevName);
	//判断扩展设备个数
	BLV_DevAction_Add(DevCoreBuf, DevName, DevInputBuf, DevCondBuf, sizeof(DevCtrlBuf)/sizeof(Dev_Action_OutCfg), DevCtrlBuf);
}

/*勿扰打开*/
void BLV_DevAction_C12ZhanTing_DndOpen_Add(void)
{
	uint8_t DevCoreBuf[] = //2字节
	{
		0x00,0x00,//场景编号
	};
	char DevName[] = "DndOpen";//32个字节
	
	uint8_t DevInputBuf[] = 
	{
/*   设备类型           设备地址   输入回路         输入类型               */		
		 Dev_Host_Service,   0x00,     LOOPCH02,0x00,   DEV_CTRLWAY_OPEN, 0x00,   
	};
	
	uint8_t DevCondBuf[] =  //9个字节
	{
/*  动作启用不关联房态             与卡无关       其他条件                执行方式   */		
		0x00,                           0x00,   0x00,0x00,0x00,0x00,0x00,0x00,    LIGHT_SCENE_ONE,
	};
	
	
	uint8_t DevCtrlBuf[] = 
	{
/*  设备类型         设备地址    输出回路          设备输出    数据备用   */		
		Dev_Host_Service,  0x00,      LOOPCH03,0x00,    0x02,0x00,  0x00,0x00,        //关清理
		
		Dev_Host_LVoutput,0x00,      LOOPCH03,0x00,      0x01,0x00,  0x00,0x00,   //打开勿扰反馈灯
	};
	Dbg_Println(DBG_BIT_LOGIC_STATUS_bit,"Add Scene, ID:%d, Scene Name:%s",DevCoreBuf[0], DevName);
	//判断扩展设备个数
	BLV_DevAction_Add(DevCoreBuf, DevName, DevInputBuf, DevCondBuf, sizeof(DevCtrlBuf)/sizeof(Dev_Action_OutCfg), DevCtrlBuf);
}
/*勿扰关闭*/
void BLV_DevAction_C12ZhanTing_DndClose_Add(void)
{
	uint8_t DevCoreBuf[] = //2字节
	{
		0x00,0x00,//场景编号
	};
	char DevName[] = "DndClose";//32个字节
	
	uint8_t DevInputBuf[] = 
	{
/*   设备类型           设备地址   输入回路         输入类型               */		
		 Dev_Host_Service,   0x00,     LOOPCH02,0x00,   DEV_CTRLWAY_CLOSE, 0x00,   
	};
	
	uint8_t DevCondBuf[] =  //9个字节
	{
/*  动作启用不关联房态             与卡无关       其他条件                执行方式   */		
		0x00,                           0x00,   0x00,0x00,0x00,0x00,0x00,0x00,    LIGHT_SCENE_ONE,
	};
	
	
	uint8_t DevCtrlBuf[] = 
	{
/*  设备类型         设备地址    输出回路          设备输出    数据备用   */		
		
		Dev_Host_LVoutput,0x00,      LOOPCH03,0x00,      0x02,0x00,  0x00,0x00,   //关闭勿扰反馈灯
	};
	Dbg_Println(DBG_BIT_LOGIC_STATUS_bit,"Add Scene, ID:%d, Scene Name:%s",DevCoreBuf[0], DevName);
	//判断扩展设备个数
	BLV_DevAction_Add(DevCoreBuf, DevName, DevInputBuf, DevCondBuf, sizeof(DevCtrlBuf)/sizeof(Dev_Action_OutCfg), DevCtrlBuf);
}

/*清理打开*/
void BLV_DevAction_C12ZhanTing_CleanOpen_Add(void)
{
	uint8_t DevCoreBuf[] = //2字节
	{
		0x00,0x00,//场景编号
	};
	char DevName[] = "CleanOpen";//32个字节
	
	uint8_t DevInputBuf[] = 
	{
/*   设备类型           设备地址   输入回路         输入类型               */		
		 Dev_Host_Service,   0x00,     LOOPCH03,0x00,   DEV_CTRLWAY_OPEN, 0x00,   
	};
	
	uint8_t DevCondBuf[] =  //9个字节
	{
/*  动作启用不关联房态             与卡无关       其他条件                执行方式   */		
		0x00,                           0x00,   0x00,0x00,0x00,0x00,0x00,0x00,    LIGHT_SCENE_ONE,
	};
	
	
	uint8_t DevCtrlBuf[] = 
	{
/*  设备类型         设备地址    输出回路          设备输出    数据备用   */		
		Dev_Host_Service,  0x00,      LOOPCH02,0x00,    0x02,0x00,  0x00,0x00,        //关勿扰
		
		Dev_Host_LVoutput,0x00,      LOOPCH02,0x00,      0x01,0x00,  0x00,0x00,   //打开清理反馈灯
	};
	Dbg_Println(DBG_BIT_LOGIC_STATUS_bit,"Add Scene, ID:%d, Scene Name:%s",DevCoreBuf[0], DevName);
	//判断扩展设备个数
	BLV_DevAction_Add(DevCoreBuf, DevName, DevInputBuf, DevCondBuf, sizeof(DevCtrlBuf)/sizeof(Dev_Action_OutCfg), DevCtrlBuf);
}
/*清理关闭*/
void BLV_DevAction_C12ZhanTing_CleanClose_Add(void)
{
	uint8_t DevCoreBuf[] = //2字节
	{
		0x00,0x00,//场景编号
	};
	char DevName[] = "CleanClose";//32个字节
	
	uint8_t DevInputBuf[] = 
	{
/*   设备类型           设备地址   输入回路         输入类型               */		
		 Dev_Host_Service,   0x00,     LOOPCH03,0x00,   DEV_CTRLWAY_CLOSE, 0x00,   
	};
	
	uint8_t DevCondBuf[] =  //9个字节
	{
/*  动作启用不关联房态             与卡无关       其他条件                执行方式   */		
		0x00,                           0x00,   0x00,0x00,0x00,0x00,0x00,0x00,    LIGHT_SCENE_ONE,
	};
	
	
	uint8_t DevCtrlBuf[] = 
	{
/*  设备类型         设备地址    输出回路          设备输出    数据备用   */		
		
		Dev_Host_LVoutput,0x00,      LOOPCH02,0x00,      0x02,0x00,  0x00,0x00,   //关闭清理反馈灯
	};
	Dbg_Println(DBG_BIT_LOGIC_STATUS_bit,"Add Scene, ID:%d, Scene Name:%s",DevCoreBuf[0], DevName);
	//判断扩展设备个数
	BLV_DevAction_Add(DevCoreBuf, DevName, DevInputBuf, DevCondBuf, sizeof(DevCtrlBuf)/sizeof(Dev_Action_OutCfg), DevCtrlBuf);
}

/*自定义场景*/
void BLV_DevAction_C12ZhanTing_OpenAllRGBScene_Add(void)
{
	uint8_t DevCoreBuf[] = //2字节
	{
		OpenAllRGB,0x00,//场景编号
	};
	char DevName[] = "OpenAllRGBScene";//32个字节
	
	uint8_t DevInputBuf[] = 
	{
/*   设备类型           设备地址   输入回路         输入类型               */		
		 Dev_Host_Service,   0x00,     LOOPCH01,0x00,   DEV_CTRLWAY_OPEN, 0x00,   
	};
	
	uint8_t DevCondBuf[] =  //9个字节
	{
/*  动作锁定不关联房态             与卡无关       其他条件                执行方式   */		
		0x01,                           0x00,   0x00,0x00,0x00,0x00,0x00,0x00,    LIGHT_SCENE_ONE,
	};
	
	
	uint8_t DevCtrlBuf[] = 
	{
/*  设备类型         设备地址    输出回路          设备输出    数据备用   */		

//		Dev_Host_HVout,  0x00,      LOOPCH02,0x00,    0x02,0x00,  0x00,0x00,        //控制继电器
//		Dev_Host_HVout,  0x00,      LOOPCH03,0x00,    0x02,0x00,  0x00,0x00,        //控制继电器
//		Dev_Host_HVout,  0x00,      LOOPCH04,0x00,    0x02,0x00,  0x00,0x00,        //控制继电器
//		Dev_Host_HVout,  0x00,      LOOPCH05,0x00,    0x02,0x00,  0x00,0x00,        //控制继电器
		DEV_RGB_LIGHT_BELT_Type,0x01,LOOPCH01,0x00,    0x01,20,  0x00,0x00,        //控制RGB
		DEV_RGB_LIGHT_BELT_Type,0x01,LOOPCH02,0x00,    0x01,20,  0x00,0x00,        //控制RGB
		DEV_RGB_LIGHT_BELT_Type,0x01,LOOPCH03,0x00,    0x01,20,  0x00,0x00,        //控制RGB
		
		DEV_RGB_LIGHT_BELT_Type,0x02,LOOPCH01,0x00,    0x01,20,  0x00,0x00,        //控制RGB
		DEV_RGB_LIGHT_BELT_Type,0x02,LOOPCH02,0x00,    0x01,20,  0x00,0x00,        //控制RGB
		DEV_RGB_LIGHT_BELT_Type,0x02,LOOPCH03,0x00,    0x01,20,  0x00,0x00,        //控制RGB
		
		DEV_RGB_LIGHT_BELT_Type,0x03,LOOPCH01,0x00,    0x01,20,  0x00,0x00,        //控制RGB
		DEV_RGB_LIGHT_BELT_Type,0x03,LOOPCH02,0x00,    0x01,20,  0x00,0x00,        //控制RGB
		DEV_RGB_LIGHT_BELT_Type,0x03,LOOPCH03,0x00,    0x01,20,  0x00,0x00,        //控制RGB
		
//		Dev_Host_HVout,  0x01,     LOOPCH01,0x00,    0x01,0x00,  0x00,0x00,        //控制继电器
		
//		Dev_NodeCurtain, 0x00,      LOOPCH01,0x00,    0x01,0x00,  0x00,0x00,        //控制窗帘
//		Dev_NodeCurtain, 0x01,      LOOPCH01,0x00,    0x01,0x00,  0x00,0x00,        //控制窗帘
//		
//		DEV_RS485_TEMP,0x00,   LOOPCH01,0x00,    0x00,0x40,  20,0x02,        //控制空调开机 延时20秒
//		DEV_RS485_TEMP,0x01,   LOOPCH01,0x00,    0x00,0x40,  20,0x02,        //控制空调开机 延时20秒
//		
//		Dev_Host_LVoutput,0x00,      LOOPCH01,0x00,      0x01,0x00,  0x00,0x00,
	};
	Dbg_Println(DBG_BIT_LOGIC_STATUS_bit,"Add Scene, ID:%d, Scene Name:%s",DevCoreBuf[0], DevName);
	//判断扩展设备个数
	BLV_DevAction_Add(DevCoreBuf, DevName, DevInputBuf, DevCondBuf, sizeof(DevCtrlBuf)/sizeof(Dev_Action_OutCfg), (uint8_t *)DevCtrlBuf);
}

/*自定义场景*/
void BLV_DevAction_C12ZhanTing_CloseRelayScene_Add(void)
{
	uint8_t DevCoreBuf[] = //2字节
	{
		CloseRelay,0x00,//场景编号
	};
	char DevName[] = "CloseRelayScene";//32个字节
	
	uint8_t DevInputBuf[] = 
	{
/*   设备类型           设备地址   输入回路         输入类型               */		
		 Dev_Host_Service,   0x00,     LOOPCH01,0x00,   DEV_CTRLWAY_OPEN, 0x00,   
	};
	
	uint8_t DevCondBuf[] =  //9个字节
	{
/*  动作锁定不关联房态             与卡无关       其他条件                执行方式   */		
		0x01,                           0x00,   0x00,0x00,0x00,0x00,0x00,0x00,    LIGHT_SCENE_ONE,
	};
	
	
	uint8_t DevCtrlBuf[] = 
	{
/*  设备类型         设备地址    输出回路          设备输出    数据备用   */		

	  Dev_Host_HVout,  0x00,      LOOPCH01,0x00,    0x02,0x00,  0x00,0x00,        //控制继电器
		Dev_Host_HVout,  0x00,      LOOPCH02,0x00,    0x02,0x00,  0x00,0x00,        //控制继电器
		Dev_Host_HVout,  0x00,      LOOPCH03,0x00,    0x02,0x00,  0x00,0x00,        //控制继电器
		Dev_Host_HVout,  0x00,      LOOPCH04,0x00,    0x02,0x00,  0x00,0x00,        //控制继电器
		Dev_Host_HVout,  0x00,      LOOPCH05,0x00,    0x02,0x00,  0x00,0x00,        //控制继电器
		Dev_Host_HVout,  0x00,      LOOPCH06,0x00,    0x02,0x00,  0x00,0x00,        //控制继电器
		
		

	};
	Dbg_Println(DBG_BIT_LOGIC_STATUS_bit,"Add Scene, ID:%d, Scene Name:%s",DevCoreBuf[0], DevName);
	//判断扩展设备个数
	BLV_DevAction_Add(DevCoreBuf, DevName, DevInputBuf, DevCondBuf, sizeof(DevCtrlBuf)/sizeof(Dev_Action_OutCfg), (uint8_t *)DevCtrlBuf);
}

//void BLV_Dev_C5IO_Add(void)
//{
//	uint8_t DevBuf[] = //每类设备 一共3+4+5 = 12字节
//	{
///*  设备类型                   设备地址              端口号            波特率            协议类型   设备输入回路限制  设备输出回路限制    字符数据包 */		
//		DEV_C5IO_Type,              0x00,                Bus_port,        0x00,0x00,0x00,0x00,  0x01,      0x00,0x00,        0x00,0x00,                      //C5IO存在 用于提供继电器 弱电输入 弱电输出的服务
//	};
//	
//	char DevName[][DEVNAMELENMAX] = //设备别名  依次填写别名 没有的可不填
//	{
//		"C5IO",
//	};
//	
//	BLV_Dev_Add(DevBuf, sizeof(DevBuf)/DEVDATALEN);//如果设备存在时一个一个添加 ，每次添加都会改变整个外部SRAM的数据结构

//}

/*干节点关门磁服务*/
void BLV_DevAction_C12ZhanTing_DoorKeyPress_Add(void)
{
	uint8_t DevCoreBuf[] = //2字节
	{
		0x00,0x00,//场景编号
	};
	char DevName[] = "LVin02KeyPress";//32个字节
	
	uint8_t DevInputBuf[] = 
	{
/*   设备类型           设备地址   输入回路         输入类型               */		
		 Dev_Host_LVinput,   0x00,     LOOPCH02,0x00,   KeyPress, 0x00,          //按下
	};
	
	uint8_t DevCondBuf[] =  //9个字节
	{
/*  动作启用不关联房态             与卡无关       其他条件                执行方式   */		
		0x00,                           0x00,   0x00,0x00,0x00,0x00,0x00,0x00,    LIGHT_SCENE_ONE,
	};
	
	
	uint8_t DevCtrlBuf[] = 
	{
/*  设备类型          设备地址    输出回路          设备输出    数据备用   */		
		Dev_Host_Service,  0x00,      LOOPCH13,0x00,    0x02,0x00,  0x00,0x00,        //控制门磁服务关
//		DEV_C5MUSIC_Type,  0x01,      LOOPCH01,0x00,    0x21,0x0D,  0x00,0x00,   //场景打开 播放离开词条
//		DEV_C12DIMMING_Type,  0x00,    LOOPCH01,0x00,    0x01,80,  0x00,0x00,        //控制调光
		DEV_C12DIMMING_Type,  0x00,    LOOPCH01,0x00,    0x02,00,  10,0x02,        //控制调光

//		Dev_Host_Service,  0x00,      LOOPCH01,0x00,    0x02,0x00,  0x05,0x03,        //控制取电服务延时关
		
//		Dev_Host_LVoutput,0x00,      LOOPCH01,0x00,      0x03,0x64,  0x00,0x00,
	};
	Dbg_Println(DBG_BIT_LOGIC_STATUS_bit,"Add Scene, ID:%d, Scene Name:%s",DevCoreBuf[0], DevName);
	//判断扩展设备个数
	BLV_DevAction_Add(DevCoreBuf, DevName, DevInputBuf, DevCondBuf, sizeof(DevCtrlBuf)/sizeof(Dev_Action_OutCfg), DevCtrlBuf);
}
 
/*干节点开门磁服务*/
void BLV_DevAction_C12ZhanTing_DoorKeyRelease_Add(void)
{
	uint8_t DevCoreBuf[] = //2字节
	{
		0x00,0x00,//场景编号
	};
	char DevName[] = "LVin02KeyRelease";//32个字节
	
	uint8_t DevInputBuf[] = 
	{
/*   设备类型           设备地址   输入回路         输入类型               */		
		 Dev_Host_LVinput,   0x00,     LOOPCH02,0x00,   KeyRelease, 0x00,              //释放
	};
	
	uint8_t DevCondBuf[] =  //9个字节
	{
/*  动作启用不关联房态             与卡无关       其他条件                执行方式   */		
		0x00,                           0x00,   0x00,0x00,0x00,0x00,0x00,0x00,    LIGHT_SCENE_ONE,
	};
	
	
	uint8_t DevCtrlBuf[] = 
	{
/*  设备类型          设备地址    输出回路          设备输出    数据备用   */		
		Dev_Host_Service,  0x00,      LOOPCH13,0x00,    0x01,0x00,  0x00,0x00,        //控制门磁服务开
//		DEV_C5MUSIC_Type,  0x01,      LOOPCH01,0x00,    0x21,0x0D,  0x00,0x00,   //场景打开 播放离开词条
		DEV_C12DIMMING_Type,  0x00,    LOOPCH01,0x00,    0x01,80,  0x00,0x00,        //控制调光
		DEV_C12DIMMING_Type,  0x00,    LOOPCH01,0x00,    0x02,00,  2,0x03,        //控制调光

		
//		Dev_Host_LVoutput,0x00,      LOOPCH01,0x00,      0x03,0x64,  0x00,0x00,
	};
	Dbg_Println(DBG_BIT_LOGIC_STATUS_bit,"Add Scene, ID:%d, Scene Name:%s",DevCoreBuf[0], DevName);
	//判断扩展设备个数
	BLV_DevAction_Add(DevCoreBuf, DevName, DevInputBuf, DevCondBuf, sizeof(DevCtrlBuf)/sizeof(Dev_Action_OutCfg), DevCtrlBuf);
}

/*干节点开SOS服务*/
void BLV_DevAction_C12ZhanTing_SOSKeyPress_Add(void)
{
	uint8_t DevCoreBuf[] = //2字节
	{
		0x00,0x00,//场景编号
	};
	char DevName[] = "LVin03KeyPress";//32个字节
	
	uint8_t DevInputBuf[] = 
	{
/*   设备类型           设备地址   输入回路         输入类型               */		
		 Dev_Host_LVinput,   0x00,     LOOPCH03,0x00,   KeyPress, 0x00,          //按下
	};
	
	uint8_t DevCondBuf[] =  //9个字节
	{
/*  动作启用不关联房态             与卡无关       其他条件                执行方式   */		
		0x00,                           0x00,   0x00,0x00,0x00,0x00,0x00,0x00,    LIGHT_SCENE_ONE,
	};
	
	
	uint8_t DevCtrlBuf[] = 
	{
/*  设备类型          设备地址    输出回路          设备输出    数据备用   */		
		Dev_Host_Service,  0x00,      LOOPCH08,0x00,    0x01,0x00,  0x00,0x00,   //控制SOS服务开
		DEV_C5MUSIC_Type,  0x01,      LOOPCH01,0x00,    0x21,20,  0x00,0x00,   //场景打开 播放SOS服务开
		
//		Dev_Host_LVoutput,0x00,      LOOPCH01,0x00,      0x03,0x64,  0x00,0x00,
	};
	Dbg_Println(DBG_BIT_LOGIC_STATUS_bit,"Add Scene, ID:%d, Scene Name:%s",DevCoreBuf[0], DevName);
	//判断扩展设备个数
	BLV_DevAction_Add(DevCoreBuf, DevName, DevInputBuf, DevCondBuf, sizeof(DevCtrlBuf)/sizeof(Dev_Action_OutCfg), DevCtrlBuf);
}

/*干节点关SOS服务*/
void BLV_DevAction_C12ZhanTing_SOSKeyRelease_Add(void)
{
	uint8_t DevCoreBuf[] = //2字节
	{
		0x00,0x00,//场景编号
	};
	char DevName[] = "LVin03KeyRelease";//32个字节
	
	uint8_t DevInputBuf[] = 
	{
/*   设备类型           设备地址   输入回路         输入类型               */		
		 Dev_Host_LVinput,   0x00,     LOOPCH03,0x00,   KeyRelease, 0x00,              //释放
	};
	
	uint8_t DevCondBuf[] =  //9个字节
	{
/*  动作启用不关联房态             与卡无关       其他条件                执行方式   */		
		0x00,                           0x00,   0x00,0x00,0x00,0x00,0x00,0x00,    LIGHT_SCENE_ONE,
	};
	
	
	uint8_t DevCtrlBuf[] = 
	{
/*  设备类型          设备地址    输出回路          设备输出    数据备用   */		
		Dev_Host_Service,  0x00,      LOOPCH08,0x00,    0x02,0x00,  0x00,0x00,   //控制SOS服务关
		DEV_C5MUSIC_Type,  0x01,      LOOPCH01,0x00,    0x21,21,  0x00,0x00,   //场景关 播放SOS服务关

//		Dev_Host_LVoutput,0x00,      LOOPCH01,0x00,      0x03,0x64,  0x00,0x00,
	};
	Dbg_Println(DBG_BIT_LOGIC_STATUS_bit,"Add Scene, ID:%d, Scene Name:%s",DevCoreBuf[0], DevName);
	//判断扩展设备个数
	BLV_DevAction_Add(DevCoreBuf, DevName, DevInputBuf, DevCondBuf, sizeof(DevCtrlBuf)/sizeof(Dev_Action_OutCfg), DevCtrlBuf);
}

/*干节点关柜磁服务*/
void BLV_DevAction_C12ZhanTing_Pir4Press_Add(void)
{
	uint8_t DevCoreBuf[] = //2字节
	{
		0x00,0x00,//场景编号
	};
	char DevName[] = "LVin04KeyPress";//32个字节
	
	uint8_t DevInputBuf[] = 
	{
/*   设备类型           设备地址   输入回路         输入类型               */		
		 Dev_Host_LVinput,   0x00,     LOOPCH04,0x00,   KeyPress, 0x00,          //按下
	};
	
	uint8_t DevCondBuf[] =  //9个字节
	{
/*  动作启用不关联房态             与卡无关       其他条件                执行方式   */		
		0x00,                           0x00,   0x00,0x00,0x00,0x00,0x00,0x00,    LIGHT_SCENE_ONE,
	};
	
	
	uint8_t DevCtrlBuf[] = 
	{
/*  设备类型          设备地址    输出回路          设备输出    数据备用   */		
//		Dev_Host_Service,  0x00,      LOOPCH13,0x00,    0x02,0x00,  0x00,0x00,        //控制门磁服务关
//		DEV_C5MUSIC_Type,  0x01,      LOOPCH01,0x00,    0x21,0x0D,  0x00,0x00,   //场景打开 播放离开词条
		DEV_C12DIMMING_Type,  0x00,    LOOPCH02,0x00,    0x02,00,  0x00,0x00,        //控制调光
		
//		Dev_Host_HVout,  0x00,      LOOPCH02,0x00,    0x02,0x00,  10,0x02,        //控制继电器延时关

		
//		Dev_Host_LVoutput,0x00,      LOOPCH01,0x00,      0x03,0x64,  0x00,0x00,
	};
	Dbg_Println(DBG_BIT_LOGIC_STATUS_bit,"Add Scene, ID:%d, Scene Name:%s",DevCoreBuf[0], DevName);
	//判断扩展设备个数
	BLV_DevAction_Add(DevCoreBuf, DevName, DevInputBuf, DevCondBuf, sizeof(DevCtrlBuf)/sizeof(Dev_Action_OutCfg), DevCtrlBuf);
}
 
/*干节点开柜磁服务*/
void BLV_DevAction_C12ZhanTing_Pir4Release_Add(void)
{
	uint8_t DevCoreBuf[] = //2字节
	{
		0x00,0x00,//场景编号
	};
	char DevName[] = "LVin04KeyRelease";//32个字节
	
	uint8_t DevInputBuf[] = 
	{
/*   设备类型           设备地址   输入回路         输入类型               */		
		 Dev_Host_LVinput,   0x00,     LOOPCH04,0x00,   KeyRelease, 0x00,              //释放
	};
	
	uint8_t DevCondBuf[] =  //9个字节
	{
/*  动作启用不关联房态             与卡无关       其他条件                执行方式   */		
		0x00,                           0x00,   0x00,0x00,0x00,0x00,0x00,0x00,    LIGHT_SCENE_ONE,
	};
	
	
	uint8_t DevCtrlBuf[] = 
	{
/*  设备类型          设备地址    输出回路          设备输出    数据备用   */		
		DEV_C12DIMMING_Type,  0x00,    LOOPCH02,0x00,    0x01,80,  0x00,0x00,        //控制调光
//		Dev_Host_HVout,  0x00,      LOOPCH02,0x00,    0x02,0x00,  0x05,0x03,        //控制继电器延时关

		
//		Dev_Host_LVoutput,0x00,      LOOPCH01,0x00,      0x03,0x64,  0x00,0x00,
	};
	Dbg_Println(DBG_BIT_LOGIC_STATUS_bit,"Add Scene, ID:%d, Scene Name:%s",DevCoreBuf[0], DevName);
	//判断扩展设备个数
	BLV_DevAction_Add(DevCoreBuf, DevName, DevInputBuf, DevCondBuf, sizeof(DevCtrlBuf)/sizeof(Dev_Action_OutCfg), DevCtrlBuf);
}

/*干节点关窗磁服务*/
void BLV_DevAction_C12ZhanTing_Pir5Press_Add(void)
{
	uint8_t DevCoreBuf[] = //2字节
	{
		0x00,0x00,//场景编号
	};
	char DevName[] = "LVin05KeyPress";//32个字节
	
	uint8_t DevInputBuf[] = 
	{
/*   设备类型           设备地址   输入回路         输入类型               */		
		 Dev_Host_LVinput,   0x00,     LOOPCH05,0x00,   KeyPress, 0x00,          //按下
	};
	
	uint8_t DevCondBuf[] =  //9个字节
	{
/*  动作启用不关联房态             插卡有效       其他条件                执行方式   */		
		0x00,                           0x03,   0x00,0x00,0x00,0x00,0x00,0x00,    LIGHT_SCENE_ONE,
	};
	
	
	uint8_t DevCtrlBuf[] = 
	{
/*  设备类型          设备地址    输出回路          设备输出    数据备用   */		
//		Dev_Host_Service,  0x00,      LOOPCH13,0x00,    0x02,0x00,  0x00,0x00,        //控制门磁服务关
//		DEV_C5MUSIC_Type,  0x01,      LOOPCH01,0x00,    0x21,0x0D,  0x00,0x00,   //场景打开 播放离开词条
//		Dev_Host_HVout,  0x00,      LOOPCH02,0x00,    0x02,0x00,  0x00,0x00,        //控制继电器
//		Dev_Host_HVout,  0x00,      LOOPCH02,0x00,    0x02,0x00,  10,0x02,        //控制继电器延时关
			DEV_C12DIMMING_Type,  0x00,    LOOPCH07,0x00,    0x02,00,  0x00,0x00,        //控制调光
		
			DEV_RS485_TEMP,     0x01,      LOOPCH01,0x00,    0x00,0x40,  0x00,0x00,        //窗磁开空调
		
//		Dev_Host_LVoutput,0x00,      LOOPCH01,0x00,      0x03,0x64,  0x00,0x00,
	};
	Dbg_Println(DBG_BIT_LOGIC_STATUS_bit,"Add Scene, ID:%d, Scene Name:%s",DevCoreBuf[0], DevName);
	//判断扩展设备个数
	BLV_DevAction_Add(DevCoreBuf, DevName, DevInputBuf, DevCondBuf, sizeof(DevCtrlBuf)/sizeof(Dev_Action_OutCfg), DevCtrlBuf);
}
 
/*干节点开窗磁服务*/
void BLV_DevAction_C12ZhanTing_Pir5Release_Add(void)
{
	uint8_t DevCoreBuf[] = //2字节
	{
		0x00,0x00,//场景编号
	};
	char DevName[] = "LVin05KeyRelease";//32个字节
	
	uint8_t DevInputBuf[] = 
	{
/*   设备类型           设备地址   输入回路         输入类型               */		
		 Dev_Host_LVinput,   0x00,     LOOPCH05,0x00,   KeyRelease, 0x00,              //释放
	};
	
	uint8_t DevCondBuf[] =  //9个字节
	{
/*  动作启用不关联房态             插卡有效       其他条件                执行方式   */		
		0x00,                           0x03,   0x00,0x00,0x00,0x00,0x00,0x00,    LIGHT_SCENE_ONE,
	};
	
	
	uint8_t DevCtrlBuf[] = 
	{
/*  设备类型          设备地址    输出回路          设备输出    数据备用   */		
//		Dev_Host_HVout,  0x00,      LOOPCH02,0x00,    0x01,0x00,  0x00,0x00,        //控制继电器
//		Dev_Host_HVout,  0x00,      LOOPCH02,0x00,    0x02,0x00,  0x05,0x03,        //控制继电器延时关
		
		DEV_C12DIMMING_Type,  0x00,    LOOPCH07,0x00,    0x01,80,  0x00,0x00,        //控制调光		
		DEV_RS485_TEMP,     0x01,      LOOPCH01,0x00,    0x00,0x80,  0x00,0x00,        //窗磁关空调
		
//		Dev_Host_LVoutput,0x00,      LOOPCH01,0x00,      0x03,0x64,  0x00,0x00,
	};
	Dbg_Println(DBG_BIT_LOGIC_STATUS_bit,"Add Scene, ID:%d, Scene Name:%s",DevCoreBuf[0], DevName);
	//判断扩展设备个数
	BLV_DevAction_Add(DevCoreBuf, DevName, DevInputBuf, DevCondBuf, sizeof(DevCtrlBuf)/sizeof(Dev_Action_OutCfg), DevCtrlBuf);
}



/*人脸机IN6按下*/
void BLV_DevAction_C12ZhanTing_LVinput6Press_Add(void)
{
	uint8_t DevCoreBuf[] = //2字节
	{
		0x00,0x00,//场景编号
	};
	char DevName[] = "LVinput6Press";//32个字节
	
	uint8_t DevInputBuf[] = 
	{
/*   设备类型           设备地址   输入回路         输入类型               */		
		 Dev_Host_LVinput,   0x00,     LOOPCH06,0x00,   KeyPress, 0x00,          //按下
	};
	
	uint8_t DevCondBuf[] =  //9个字节
	{
/*  动作启用不关联房态             插卡有效       其他条件                执行方式   */		
		0x00,                           0x03,   0x00,0x00,0x00,0x00,0x00,0x00,    LIGHT_SCENE_ONE,
	};
	
	
	uint8_t DevCtrlBuf[] = 
	{
/*  设备类型          设备地址    输出回路          设备输出    数据备用   */		
		
		Dev_Host_Service,  0x00,    LOOPCH10,0x00,    0x01,0x00,  0x00,0x00,        //控制开锁服务开
		Dev_Host_Service,  0x00,    LOOPCH10,0x00,    0x02,0x00,  4,0x02,        //控制开锁服务延时关
		
		Dev_Host_LVoutput,0x00,      LOOPCH04,0x00,      0x01,0x64,  0x00,0x00,
		Dev_Host_LVoutput,0x00,      LOOPCH04,0x00,      0x02,0x00,  0x04,0x02,
		
//		Dev_Host_Service,  0x00,      LOOPCH13,0x00,    0x02,0x00,  0x00,0x00,        //控制门磁服务关
//		DEV_C5MUSIC_Type,  0x01,      LOOPCH01,0x00,    0x21,0x0D,  0x00,0x00,   //场景打开 播放离开词条
//		Dev_Host_HVout,  0x00,      LOOPCH02,0x00,    0x02,0x00,  0x00,0x00,        //控制继电器
//		Dev_Host_HVout,  0x00,      LOOPCH02,0x00,    0x02,0x00,  10,0x02,        //控制继电器延时关
//			DEV_RS485_TEMP,     0x01,      LOOPCH01,0x00,    0x00,0x40,  0x00,0x00,        //窗磁开空调
		
//		Dev_Host_LVoutput,0x00,      LOOPCH01,0x00,      0x03,0x64,  0x00,0x00,
	};
	Dbg_Println(DBG_BIT_LOGIC_STATUS_bit,"Add Scene, ID:%d, Scene Name:%s",DevCoreBuf[0], DevName);
	//判断扩展设备个数
	BLV_DevAction_Add(DevCoreBuf, DevName, DevInputBuf, DevCondBuf, sizeof(DevCtrlBuf)/sizeof(Dev_Action_OutCfg), DevCtrlBuf);
}

/*门铃按键按下*/
void BLV_DevAction_C12ZhanTing_BellPress_Add(void)
{
	uint8_t DevCoreBuf[] = //2字节
	{
		0x00,0x00,//场景编号
	};
	char DevName[] = "BellPress";//32个字节
	
	uint8_t DevInputBuf[] = 
	{
/*   设备类型           设备地址   输入回路         输入类型               */		
		 Dev_Host_LVinput,   0x00,     LOOPCH07,0x00,   KeyPress, 0x00,             //释放
	};
	
	uint8_t DevCondBuf[] =  //9个字节
	{                              //勿扰无效
/*  动作启用不关联房态             插卡有效       其他条件                执行方式   */		
		0x00,                           0x2B,   0x00,0x00,0x00,0x00,0x00,0x00,    LIGHT_SCENE_ONE,
	};
	
	
	uint8_t DevCtrlBuf[] = 
	{
/*  设备类型          设备地址    输出回路          设备输出    数据备用   */		
//		Dev_Host_Service,  0x00,      LOOPCH13,0x00,    0x02,0x00,  0x00,0x00,        //控制门磁服务关
		DEV_C5MUSIC_Type,  0x01,      LOOPCH01,0x00,    0x41,0x05,  0x00,0x00,   //场景打开 播放门铃提示音
//		Dev_Host_HVout,  0x00,      LOOPCH02,0x00,    0x01,0x00,  0x00,0x00,        //控制继电器
//		Dev_Host_HVout,  0x00,      LOOPCH02,0x00,    0x02,0x00,  0x0A,0x02,        //控制继电器延时关
		DEV_SWI_TYPE,     0x04,      LOOPCH03,0x00,      0x01,0x64,  0x00,0x00,   //开摄像头
		DEV_SWI_TYPE,     0x04,      LOOPCH03,0x00,      0x02,0x64,  10,0x02,
		
//		Dev_Host_LVoutput,0x00,      LOOPCH01,0x00,      0x03,0x64,  0x00,0x00,
	};
	Dbg_Println(DBG_BIT_LOGIC_STATUS_bit,"Add Scene, ID:%d, Scene Name:%s",DevCoreBuf[0], DevName);
	//判断扩展设备个数
	BLV_DevAction_Add(DevCoreBuf, DevName, DevInputBuf, DevCondBuf, sizeof(DevCtrlBuf)/sizeof(Dev_Action_OutCfg), DevCtrlBuf);
}

/*干节点红外服务*/
void BLV_DevAction_C12ZhanTing_Pir8Release_Add(void)
{
	uint8_t DevCoreBuf[] = //2字节
	{
		0x00,0x00,//场景编号
	};
	char DevName[] = "LVin08KeyRelease";//32个字节
	
	uint8_t DevInputBuf[] = 
	{
/*   设备类型           设备地址   输入回路         输入类型               */		
		 Dev_Host_LVinput,   0x00,     LOOPCH08,0x00,   KeyRelease, 0x00,              //释放
	};
	
	uint8_t DevCondBuf[] =  //9个字节
	{
/*  动作启用不关联房态             与卡无关       其他条件                执行方式   */		
		0x00,                           0x00,   0x00,0x00,0x00,0x00,0x00,0x00,    LIGHT_SCENE_ONE,
	};
	
	
	uint8_t DevCtrlBuf[] = 
	{
/*  设备类型          设备地址    输出回路          设备输出    数据备用   */		
		Dev_Host_Service,  0x00,    LOOPCH01,0x00,    0x01,0x00,  0x00,0x00,        //控制取电服务开
		Dev_Host_Service,  0x00,    LOOPCH12,0x00,    0x01,0x00,  0x00,0x00,        //控制保险箱服务开
		Dev_Host_Service,  0x00,    LOOPCH12,0x00,    0x02,0x00,  0x05,0x02,        //控制保险箱服务延时关
//		Dev_Host_LVoutput,0x00,      LOOPCH01,0x00,      0x03,0x64,  0x00,0x00,
	};
	Dbg_Println(DBG_BIT_LOGIC_STATUS_bit,"Add Scene, ID:%d, Scene Name:%s",DevCoreBuf[0], DevName);
	//判断扩展设备个数
	BLV_DevAction_Add(DevCoreBuf, DevName, DevInputBuf, DevCondBuf, sizeof(DevCtrlBuf)/sizeof(Dev_Action_OutCfg), DevCtrlBuf);
}



/*干节点红外服务*/
void BLV_DevAction_C12ZhanTing_Pir9Release_Add(void)
{
	uint8_t DevCoreBuf[] = //2字节
	{
		0x00,0x00,//场景编号
	};
	char DevName[] = "LVin09KeyRelease";//32个字节
	
	uint8_t DevInputBuf[] = 
	{
/*   设备类型           设备地址   输入回路         输入类型               */		
		 Dev_Host_LVinput,   0x00,     LOOPCH09,0x00,   KeyRelease, 0x00,              //释放
	};
	
	uint8_t DevCondBuf[] =  //9个字节
	{
/*  动作启用不关联房态             与卡无关       其他条件                执行方式   */		
		0x00,                           0x00,   0x00,0x00,0x00,0x00,0x00,0x00,    LIGHT_SCENE_ONE,
	};
	
	
	uint8_t DevCtrlBuf[] = 
	{
/*  设备类型          设备地址    输出回路          设备输出    数据备用   */		
		Dev_Host_Service,  0x00,    LOOPCH01,0x00,    0x02,0x00,  10,0x02,        //控制取电服务关
//		Dev_Host_Service,  0x00,    LOOPCH11,0x00,    0x01,0x00,  0x00,0x00,        //控制行李服务开
//		Dev_Host_Service,  0x00,    LOOPCH11,0x00,    0x02,0x00,  0x05,0x02,        //控制行李服务延时关
	};
	Dbg_Println(DBG_BIT_LOGIC_STATUS_bit,"Add Scene, ID:%d, Scene Name:%s",DevCoreBuf[0], DevName);
	//判断扩展设备个数
	BLV_DevAction_Add(DevCoreBuf, DevName, DevInputBuf, DevCondBuf, sizeof(DevCtrlBuf)/sizeof(Dev_Action_OutCfg), DevCtrlBuf);
}

/*干节点红外服务*/
void BLV_DevAction_C12ZhanTing_Pir9KeyPress_Add(void)
{
	uint8_t DevCoreBuf[] = //2字节
	{
		0x00,0x00,//场景编号
	};
	char DevName[] = "LVin09KeyPress";//32个字节
	
	uint8_t DevInputBuf[] = 
	{
/*   设备类型           设备地址   输入回路         输入类型               */		
		 Dev_Host_LVinput,   0x00,     LOOPCH09,0x00,   KeyPress, 0x00,              //释放
	};
	
	uint8_t DevCondBuf[] =  //9个字节
	{
/*  动作启用不关联房态             与卡无关       其他条件                执行方式   */		
		0x00,                           0x00,   0x00,0x00,0x00,0x00,0x00,0x00,    LIGHT_SCENE_ONE,
	};
	
	
	uint8_t DevCtrlBuf[] = 
	{
/*  设备类型          设备地址    输出回路          设备输出    数据备用   */		
		Dev_Host_Service,  0x00,    LOOPCH01,0x00,    0x01,0x00,  0x00,0x00,        //控制取电服务开
		
		Dev_Host_Service,  0x00,    LOOPCH11,0x00,    0x01,0x00,  0x00,0x00,        //控制行李服务开
		Dev_Host_Service,  0x00,    LOOPCH11,0x00,    0x02,0x00,  0x05,0x02,        //控制行李服务延时关
	};
	Dbg_Println(DBG_BIT_LOGIC_STATUS_bit,"Add Scene, ID:%d, Scene Name:%s",DevCoreBuf[0], DevName);
	//判断扩展设备个数
	BLV_DevAction_Add(DevCoreBuf, DevName, DevInputBuf, DevCondBuf, sizeof(DevCtrlBuf)/sizeof(Dev_Action_OutCfg), DevCtrlBuf);
}

/*干节点红外服务*/
void BLV_DevAction_C12ZhanTing_Pir10Release_Add(void)
{
	uint8_t DevCoreBuf[] = //2字节
	{
		0x00,0x00,//场景编号
	};
	char DevName[] = "LVin10KeyRelease";//32个字节
	
	uint8_t DevInputBuf[] = 
	{
/*   设备类型           设备地址   输入回路         输入类型               */		
		 Dev_Host_LVinput,   0x00,     LOOPCH10,0x00,   KeyRelease, 0x00,              //释放
	};
	
	uint8_t DevCondBuf[] =  //9个字节
	{
/*  动作启用不关联房态             与卡无关       其他条件                执行方式   */		
		0x00,                           0x00,   0x00,0x00,0x00,0x00,0x00,0x00,    LIGHT_SCENE_ONE,
	};
	
	
	uint8_t DevCtrlBuf[] = 
	{
/*  设备类型          设备地址    输出回路          设备输出    数据备用   */		
		Dev_Host_Service,  0x00,    LOOPCH01,0x00,    0x02,0x00,  10,0x02,        //控制取电服务关
//		Dev_Host_Service,  0x00,    LOOPCH04,0x00,    0x01,0x00,  0x00,0x00,        //控制呼叫服务开
//		Dev_Host_Service,  0x00,    LOOPCH04,0x00,    0x02,0x00,  0x05,0x02,        //控制呼叫服务延时关
	};
	Dbg_Println(DBG_BIT_LOGIC_STATUS_bit,"Add Scene, ID:%d, Scene Name:%s",DevCoreBuf[0], DevName);
	//判断扩展设备个数
	BLV_DevAction_Add(DevCoreBuf, DevName, DevInputBuf, DevCondBuf, sizeof(DevCtrlBuf)/sizeof(Dev_Action_OutCfg), DevCtrlBuf);
}

/*干节点红外服务*/
void BLV_DevAction_C12ZhanTing_Pir10KeyPress_Add(void)
{
	uint8_t DevCoreBuf[] = //2字节
	{
		0x00,0x00,//场景编号
	};
	char DevName[] = "LVin10KeyPress";//32个字节
	
	uint8_t DevInputBuf[] = 
	{
/*   设备类型           设备地址   输入回路         输入类型               */		
		 Dev_Host_LVinput,   0x00,     LOOPCH10,0x00,   KeyPress, 0x00,              //释放
	};
	
	uint8_t DevCondBuf[] =  //9个字节
	{
/*  动作启用不关联房态             与卡无关       其他条件                执行方式   */		
		0x00,                           0x00,   0x00,0x00,0x00,0x00,0x00,0x00,    LIGHT_SCENE_ONE,
	};
	
	
	uint8_t DevCtrlBuf[] = 
	{
/*  设备类型          设备地址    输出回路          设备输出    数据备用   */		
		Dev_Host_Service,  0x00,    LOOPCH01,0x00,    0x01,0x00,  00,0x00,        //控制取电服务开
		
		Dev_Host_Service,  0x00,    LOOPCH04,0x00,    0x01,0x00,  0x00,0x00,        //控制呼叫服务开
		Dev_Host_Service,  0x00,    LOOPCH04,0x00,    0x02,0x00,  0x05,0x02,        //控制呼叫服务延时关
	};
	Dbg_Println(DBG_BIT_LOGIC_STATUS_bit,"Add Scene, ID:%d, Scene Name:%s",DevCoreBuf[0], DevName);
	//判断扩展设备个数
	BLV_DevAction_Add(DevCoreBuf, DevName, DevInputBuf, DevCondBuf, sizeof(DevCtrlBuf)/sizeof(Dev_Action_OutCfg), DevCtrlBuf);
}


/*干节点红外服务*/
void BLV_DevAction_C12ZhanTing_Pir11Release_Add(void)
{
	uint8_t DevCoreBuf[] = //2字节
	{
		0x00,0x00,//场景编号
	};
	char DevName[] = "LVin11KeyRelease";//32个字节
	
	uint8_t DevInputBuf[] = 
	{
/*   设备类型           设备地址   输入回路         输入类型               */		
		 Dev_Host_LVinput,   0x00,     LOOPCH11,0x00,   KeyRelease, 0x00,              //释放
	};
	
	uint8_t DevCondBuf[] =  //9个字节
	{
/*  动作启用不关联房态             与卡无关       其他条件                执行方式   */		
		0x00,                           0x00,   0x00,0x00,0x00,0x00,0x00,0x00,    LIGHT_SCENE_ONE,
	};
	
	
	uint8_t DevCtrlBuf[] = 
	{
/*  设备类型          设备地址    输出回路          设备输出    数据备用   */		
		Dev_Host_Service,  0x00,    LOOPCH01,0x00,    0x01,0x00,  0x00,0x00,        //控制取电服务开
		
		DEV_C12DIMMING_Type,0x00,   LOOPCH08,0x00,    0x01,80,  0x00,0x00,
		DEV_C12DIMMING_Type,0x00,   LOOPCH09,0x00,    0x01,80,  0x00,0x00,
		DEV_C12DIMMING_Type,0x00,   LOOPCH10,0x00,    0x01,80,  0x00,0x00,
		DEV_C12DIMMING_Type,0x00,   LOOPCH08,0x00,    0x02,0x00,  30,0x02,     //延时30s关
		DEV_C12DIMMING_Type,0x00,   LOOPCH09,0x00,    0x02,0x00,  30,0x02,
		DEV_C12DIMMING_Type,0x00,   LOOPCH10,0x00,    0x02,0x00,  30,0x02,
		
		DEV_RGB_LIGHT_BELT_Type,0x03, LOOPCH01,0x00,    0x01,80,  0x00,0x00,
		DEV_RGB_LIGHT_BELT_Type,0x03, LOOPCH02,0x00,    0x01,80,  0x00,0x00,
		DEV_RGB_LIGHT_BELT_Type,0x03, LOOPCH03,0x00,    0x01,80,  0x00,0x00,
		DEV_RGB_LIGHT_BELT_Type,0x03, LOOPCH01,0x00,    0x02,0,  30,0x02,     //延时30s关
		DEV_RGB_LIGHT_BELT_Type,0x03, LOOPCH02,0x00,    0x02,0,  30,0x02,     //延时30s关
		DEV_RGB_LIGHT_BELT_Type,0x03, LOOPCH03,0x00,    0x02,0,  30,0x02,     //延时30s关
		
		Dev_Host_Service,  0x00,    LOOPCH09,0x00,    0x01,0x00,  0x00,0x00,        //控制预约带租服务开
		Dev_Host_Service,  0x00,    LOOPCH09,0x00,    0x02,0x00,  0x05,0x02,        //控制预约带租服务延时关
	};
	Dbg_Println(DBG_BIT_LOGIC_STATUS_bit,"Add Scene, ID:%d, Scene Name:%s",DevCoreBuf[0], DevName);
	//判断扩展设备个数
	BLV_DevAction_Add(DevCoreBuf, DevName, DevInputBuf, DevCondBuf, sizeof(DevCtrlBuf)/sizeof(Dev_Action_OutCfg), DevCtrlBuf);
}

/*窗帘开动作*/
void BLV_DevAction_C12ZhanTing_CurtainOpen_Add(void)
{
	uint8_t DevCoreBuf[] = //2字节
	{
		0x00,0x00,//场景编号
	};
	char DevName[] = "CurtainOpen";//32个字节
	
	uint8_t DevInputBuf[] = 
	{
/*   设备类型           设备地址   输入回路         输入类型               */		
		 Dev_NodeCurtain,   0x00,     LOOPCH01,0x00,   DEV_CTRLWAY_OPEN, 0x00,             //窗帘开
	};
	
	uint8_t DevCondBuf[] =  //9个字节
	{
/*  动作启用不关联房态             与卡无关       其他条件                执行方式   */		
		0x00,                           0x00,   0x00,0x00,0x00,0x00,0x00,0x00,    LIGHT_SCENE_ONE,
	};
	
	
	uint8_t DevCtrlBuf[] = 
	{
/*  设备类型          设备地址    输出回路          设备输出    数据备用   */		

		Dev_Host_HVout,  0x00,      LOOPCH10,0x00,    0x01,0x00,  0x00,0x00,        //控制继电器
		Dev_Host_HVout,  0x00,      LOOPCH10,0x00,    0x02,0x00,  0x14,0x02,        //控制继电器
		Dev_Host_HVout,  0x00,      LOOPCH11,0x00,    0x02,0x00,  0x00,0x00,        //控制继电器

		
		Dev_NodeCurtain, 0x00,      LOOPCH01,0x00,      0x03,0x64,  0x00,0x00,
	};
	Dbg_Println(DBG_BIT_LOGIC_STATUS_bit,"Add Scene, ID:%d, Scene Name:%s",DevCoreBuf[0], DevName);
	//判断扩展设备个数
	BLV_DevAction_Add(DevCoreBuf, DevName, DevInputBuf, DevCondBuf, sizeof(DevCtrlBuf)/sizeof(Dev_Action_OutCfg), DevCtrlBuf);
}

/*窗帘关动作*/
void BLV_DevAction_C12ZhanTing_CurtainClose_Add(void)
{
	uint8_t DevCoreBuf[] = //2字节
	{
		0x00,0x00,//场景编号
	};
	char DevName[] = "CurtainClose";//32个字节
	
	uint8_t DevInputBuf[] = 
	{
/*   设备类型           设备地址   输入回路         输入类型               */		
		 Dev_NodeCurtain,   0x00,     LOOPCH01,0x00,   DEV_CTRLWAY_CLOSE, 0x00,             //窗帘关
	};
	
	uint8_t DevCondBuf[] =  //9个字节
	{
/*  动作启用不关联房态             与卡无关       其他条件                执行方式   */		
		0x00,                           0x00,   0x00,0x00,0x00,0x00,0x00,0x00,    LIGHT_SCENE_ONE,
	};
	
	
	uint8_t DevCtrlBuf[] = 
	{
/*  设备类型          设备地址    输出回路          设备输出    数据备用   */		

		Dev_Host_HVout,  0x00,      LOOPCH10,0x00,    0x02,0x00,  0x00,0x00,        //控制继电器
		Dev_Host_HVout,  0x00,      LOOPCH11,0x00,    0x01,0x00,  0x00,0x00,        //控制继电器
		Dev_Host_HVout,  0x00,      LOOPCH11,0x00,    0x02,0x00,  0x14,0x02,        //控制继电器

		
		Dev_NodeCurtain, 0x00,      LOOPCH01,0x00,      0x03,0x64,  0x00,0x00,
	};
	Dbg_Println(DBG_BIT_LOGIC_STATUS_bit,"Add Scene, ID:%d, Scene Name:%s",DevCoreBuf[0], DevName);
	//判断扩展设备个数
	BLV_DevAction_Add(DevCoreBuf, DevName, DevInputBuf, DevCondBuf, sizeof(DevCtrlBuf)/sizeof(Dev_Action_OutCfg), DevCtrlBuf);
}

/*窗帘停动作*/
void BLV_DevAction_C12ZhanTing_CurtainStop_Add(void)
{
	uint8_t DevCoreBuf[] = //2字节
	{
		0x00,0x00,//场景编号
	};
	char DevName[] = "CurtainStop";//32个字节
	
	uint8_t DevInputBuf[] = 
	{
/*   设备类型           设备地址   输入回路         输入类型               */		
		 Dev_NodeCurtain,   0x00,     LOOPCH01,0x00,   DEV_CTRLWAY_STOP, 0x00,             //窗帘停
	};
	
	uint8_t DevCondBuf[] =  //9个字节
	{
/*  动作启用不关联房态             与卡无关       其他条件                执行方式   */		
		0x00,                           0x00,   0x00,0x00,0x00,0x00,0x00,0x00,    LIGHT_SCENE_ONE,
	};
	
	
	uint8_t DevCtrlBuf[] = 
	{
/*  设备类型          设备地址    输出回路          设备输出    数据备用   */		

		Dev_Host_HVout,  0x00,      LOOPCH10,0x00,    0x02,0x00,  0x00,0x00,        //控制继电器
		Dev_Host_HVout,  0x00,      LOOPCH11,0x00,    0x02,0x00,  0x00,0x00,        //控制继电器

		
		Dev_NodeCurtain, 0x00,      LOOPCH01,0x00,      0x03,0x64,  0x00,0x00,
	};
	Dbg_Println(DBG_BIT_LOGIC_STATUS_bit,"Add Scene, ID:%d, Scene Name:%s",DevCoreBuf[0], DevName);
	//判断扩展设备个数
	BLV_DevAction_Add(DevCoreBuf, DevName, DevInputBuf, DevCondBuf, sizeof(DevCtrlBuf)/sizeof(Dev_Action_OutCfg), DevCtrlBuf);
}

/*窗纱开动作*/
void BLV_DevAction_C12ZhanTing_ScreenOpen_Add(void)
{
	uint8_t DevCoreBuf[] = //2字节
	{
		0x00,0x00,//场景编号
	};
	char DevName[] = "ScreenOpen";//32个字节
	
	uint8_t DevInputBuf[] = 
	{
/*   设备类型           设备地址   输入回路         输入类型               */		
		 Dev_NodeCurtain,   0x01,     LOOPCH01,0x00,   DEV_CTRLWAY_OPEN, 0x00,             //窗纱开
	};
	
	uint8_t DevCondBuf[] =  //9个字节
	{
/*  动作启用不关联房态             与卡无关       其他条件                执行方式   */		
		0x00,                           0x00,   0x00,0x00,0x00,0x00,0x00,0x00,    LIGHT_SCENE_ONE,
	};
	
	
	uint8_t DevCtrlBuf[] = 
	{
/*  设备类型          设备地址    输出回路          设备输出    数据备用   */		

		Dev_Host_HVout,  0x00,      LOOPCH12,0x00,    0x01,0x00,  0x00,0x00,        //控制继电器
		Dev_Host_HVout,  0x00,      LOOPCH12,0x00,    0x02,0x00,  0x14,0x02,        //控制继电器
		Dev_Host_HVout,  0x00,      LOOPCH13,0x00,    0x02,0x00,  0x00,0x00,        //控制继电器

		
		Dev_NodeCurtain, 0x01,      LOOPCH01,0x00,      0x03,0x64,  0x00,0x00,
	};
	Dbg_Println(DBG_BIT_LOGIC_STATUS_bit,"Add Scene, ID:%d, Scene Name:%s",DevCoreBuf[0], DevName);
	//判断扩展设备个数
	BLV_DevAction_Add(DevCoreBuf, DevName, DevInputBuf, DevCondBuf, sizeof(DevCtrlBuf)/sizeof(Dev_Action_OutCfg), DevCtrlBuf);
}

/*窗纱关动作*/
void BLV_DevAction_C12ZhanTing_ScreenClose_Add(void)
{
	uint8_t DevCoreBuf[] = //2字节
	{
		0x00,0x00,//场景编号
	};
	char DevName[] = "ScreenClose";//32个字节
	
	uint8_t DevInputBuf[] = 
	{
/*   设备类型           设备地址   输入回路         输入类型               */		
		 Dev_NodeCurtain,   0x01,     LOOPCH01,0x00,   DEV_CTRLWAY_CLOSE, 0x00,             //窗纱关
	};
	
	uint8_t DevCondBuf[] =  //9个字节
	{
/*  动作启用不关联房态             与卡无关       其他条件                执行方式   */		
		0x00,                           0x00,   0x00,0x00,0x00,0x00,0x00,0x00,    LIGHT_SCENE_ONE,
	};
	
	
	uint8_t DevCtrlBuf[] = 
	{
/*  设备类型          设备地址    输出回路          设备输出    数据备用   */		

		Dev_Host_HVout,  0x00,      LOOPCH12,0x00,    0x02,0x00,  0x00,0x00,        //控制继电器
		Dev_Host_HVout,  0x00,      LOOPCH13,0x00,    0x01,0x00,  0x00,0x00,        //控制继电器
		Dev_Host_HVout,  0x00,      LOOPCH13,0x00,    0x02,0x00,  0x14,0x02,        //控制继电器

		
		Dev_NodeCurtain, 0x01,      LOOPCH01,0x00,      0x03,0x64,  0x00,0x00,
	};
	Dbg_Println(DBG_BIT_LOGIC_STATUS_bit,"Add Scene, ID:%d, Scene Name:%s",DevCoreBuf[0], DevName);
	//判断扩展设备个数
	BLV_DevAction_Add(DevCoreBuf, DevName, DevInputBuf, DevCondBuf, sizeof(DevCtrlBuf)/sizeof(Dev_Action_OutCfg), DevCtrlBuf);
}

/*窗纱停动作*/
void BLV_DevAction_C12ZhanTing_ScreenStop_Add(void)
{
	uint8_t DevCoreBuf[] = //2字节
	{
		0x00,0x00,//场景编号
	};
	char DevName[] = "ScreenStop";//32个字节
	
	uint8_t DevInputBuf[] = 
	{
/*   设备类型           设备地址   输入回路         输入类型               */		
		 Dev_NodeCurtain,   0x01,     LOOPCH01,0x00,   DEV_CTRLWAY_STOP, 0x00,             //窗纱停
	};
	
	uint8_t DevCondBuf[] =  //9个字节
	{
/*  动作启用不关联房态             与卡无关       其他条件                执行方式   */		
		0x00,                           0x00,   0x00,0x00,0x00,0x00,0x00,0x00,    LIGHT_SCENE_ONE,
	};
	
	
	uint8_t DevCtrlBuf[] = 
	{
/*  设备类型          设备地址    输出回路          设备输出    数据备用   */		

		Dev_Host_HVout,  0x00,      LOOPCH12,0x00,    0x02,0x00,  0x00,0x00,        //控制继电器
		Dev_Host_HVout,  0x00,      LOOPCH13,0x00,    0x02,0x00,  0x00,0x00,        //控制继电器

		
		Dev_NodeCurtain, 0x01,      LOOPCH01,0x00,      0x03,0x64,  0x00,0x00,
	};
	Dbg_Println(DBG_BIT_LOGIC_STATUS_bit,"Add Scene, ID:%d, Scene Name:%s",DevCoreBuf[0], DevName);
	//判断扩展设备个数
	BLV_DevAction_Add(DevCoreBuf, DevName, DevInputBuf, DevCondBuf, sizeof(DevCtrlBuf)/sizeof(Dev_Action_OutCfg), DevCtrlBuf);
}

/*空调的动作*/
void BLV_DevAction_C12ZhanTing_AirAction_Add(void)
{
	uint8_t DevCoreBuf[] = //2字节
	{
		0x00,0x00,//场景编号
	};
	char DevName[] = "AirAction";//32个字节
	
	uint8_t DevInputBuf[] = 
	{
/*   设备类型             设备地址   输入回路         输入类型               */		
		 DEV_RS485_TEMP,   0x01,     LOOPCH01,0x00,   DEV_CTRLWAY_OPEN, 0x00,             //空调变化
	};
	
	uint8_t DevCondBuf[] =  //9个字节
	{
/*  动作启用不关联房态             插卡无关       其他条件                执行方式   */		
		0x00,                           0x00,   0x00,0x00,0x00,0x00,0x00,0x00,    LIGHT_SCENE_ONE,
	};
	
	
	uint8_t DevCtrlBuf[] = 
	{
/*  设备类型          设备地址    输出回路          设备输出    数据备用   */		

		Dev_Host_HVout,  0x00,      LOOPCH19,0x00,    0x02,0x00,  0x00,0x00,        //控制继电器
		Dev_Host_HVout,  0x00,      LOOPCH20,0x00,    0x02,0x00,  0x00,0x00,        //控制继电器

		
//		Dev_Host_LVoutput,0x00,      LOOPCH01,0x00,      0x03,0x64,  0x00,0x00,
	};
	Dbg_Println(DBG_BIT_LOGIC_STATUS_bit,"Add Scene, ID:%d, Scene Name:%s",DevCoreBuf[0], DevName);
	//判断扩展设备个数
	BLV_DevAction_Add(DevCoreBuf, DevName, DevInputBuf, DevCondBuf, sizeof(DevCtrlBuf)/sizeof(Dev_Action_OutCfg), DevCtrlBuf);
}


void BLV_DevAction_C12ZhanTing_Swi1IN01_Add(void)
{
	uint8_t DevCoreBuf[] = //2字节
	{
		0x00,0x00,//场景编号
	};
	char DevName[] = "Swi1IN01";//32个字节
	
	uint8_t DevInputBuf[] = 
	{
/*  设备类型       设备地址   输入回路          输入类型            */		
		DEV_SWI_TYPE,   0x01,      LOOPCH01,0x00,   KeyPress, 0x00,       
	};
	
	uint8_t DevCondBuf[] =  //9个字节
	{
/*  动作启用不关联房态             插卡有效       其他条件 提示音    起夜          执行方式   */		
		0x00,                           0x03,   0x00,0x00,0x00,0x80,0x01,0x00,    LIGHT_SCENE_TWO,
	};
	
	
	uint8_t DevCtrlBuf[] = 
	{
/*  设备类型         设备地址     输出回路           设备输出    数据备用   */		
		
		//开锁...
		Dev_Host_Service,  0x00,    LOOPCH10,0x00,    0x01,0x00,  0x00,0x00,        //控制开锁服务开
		Dev_Host_Service,  0x00,    LOOPCH10,0x00,    0x02,0x00,  4,0x02,        //控制开锁服务延时关
		
		Dev_Host_LVoutput,0x00,      LOOPCH04,0x00,      0x01,0x64,  0x00,0x00,
		Dev_Host_LVoutput,0x00,      LOOPCH04,0x00,      0x02,0x00,  0x04,0x02,
	
		DEV_C5MUSIC_Type,  0x01,    LOOPCH01,0x00,    0x21,0x01,  0x00,0x00,   //场景打开 指定播放词条
		DEV_C5MUSIC_Type,  0x01,    LOOPCH01,0x00,    0x22,0x01,  0x00,0x00,   //场景打开 指定播放词条
		
//		DEV_RS485_STRIP,  0x01,      LOOPCH01,0x00,      0x01,0x64,  0x00,0x00,
		
		DEV_SWI_TYPE,     0x01,      LOOPCH01,0x00,      0x03,0x64,  0x00,0x00,
	};
	Dbg_Println(DBG_BIT_LOGIC_STATUS_bit,"Add Scene, ID:%d, Scene Name:%s",DevCoreBuf[0], DevName);
	//判断扩展设备个数
	BLV_DevAction_Add(DevCoreBuf, DevName, DevInputBuf, DevCondBuf, sizeof(DevCtrlBuf)/sizeof(Dev_Action_OutCfg), DevCtrlBuf);
}

void BLV_DevAction_C12ZhanTing_Swi1IN02_Add(void)
{
	uint8_t DevCoreBuf[] = //2字节
	{
		31,0x00,//场景编号
	};
	char DevName[] = "Swi1IN02";//32个字节
	
	uint8_t DevInputBuf[] = 
	{
/*  设备类型       设备地址   输入回路          输入类型            */		
		DEV_SWI_TYPE,   0x01,      LOOPCH02,0x00,   KeyPress, 0x00,       
	};
	
	uint8_t DevCondBuf[] =  //9个字节
	{
/*  动作启用不关联房态             插卡无关       其他条件 提示音               执行方式   */		
		0x00,                           0x00,   0x00,0x00,0x00,0x80,0x01,0x01,    LIGHT_SCENE_TWO,
	};
	
	
	uint8_t DevCtrlBuf[] = 
	{
/*  设备类型         设备地址     输出回路           设备输出    数据备用   */		
		
//		Dev_Host_Service,    0x00,      LOOPCH02,0x00,      0x02,0x00,  0x00,0x00,  //勿扰
		Dev_Host_Service,    0x00,      LOOPCH03,0x00,      0x01,0x00,  0x00,0x00,  //清理
		
		DEV_C5MUSIC_Type,  0x01,      LOOPCH01,0x00,    0x21,0x06,  0x00,0x00,   //场景打开 播放打开清理
		DEV_C5MUSIC_Type,  0x01,      LOOPCH01,0x00,    0x22,0x16,  0x00,0x00,   //场景关闭 播放关闭清理

//		Dev_Host_LVoutput,0x00,      LOOPCH02,0x00,      0x03,0x64,  0x00,0x00,   //清理反馈灯
		DEV_SWI_TYPE,     0x01,      LOOPCH02,0x00,      0x03,0x64,  0x00,0x00,
	};
	Dbg_Println(DBG_BIT_LOGIC_STATUS_bit,"Add Scene, ID:%d, Scene Name:%s",DevCoreBuf[0], DevName);
	//判断扩展设备个数
	BLV_DevAction_Add(DevCoreBuf, DevName, DevInputBuf, DevCondBuf, sizeof(DevCtrlBuf)/sizeof(Dev_Action_OutCfg), DevCtrlBuf);
}

void BLV_DevAction_C12ZhanTing_Swi1IN03_Add(void)
{
	uint8_t DevCoreBuf[] = //2字节
	{
		30,0x00,//场景编号
	};
	char DevName[] = "Swi1IN03";//32个字节
	
	uint8_t DevInputBuf[] = 
	{
/*  设备类型       设备地址   输入回路          输入类型            */		
		DEV_SWI_TYPE,   0x01,      LOOPCH03,0x00,   KeyPress, 0x00,       
	};
	
	uint8_t DevCondBuf[] =  //9个字节
	{
/*  动作启用不关联房态             插卡有效       其他条件提示音                执行方式   */		
		0x00,                           0x03,  0x00,0x00,0x00,0x80,0x01,0x01,    LIGHT_SCENE_TWO,
	};
	
	
	uint8_t DevCtrlBuf[] = 
	{
/*  设备类型         设备地址     输出回路           设备输出    数据备用   */		

//		Dev_Host_Service,    0x00,      LOOPCH03,0x00,      0x02,0x00,  0x00,0x00,  //清理
		Dev_Host_Service,    0x00,      LOOPCH02,0x00,      0x01,0x00,  0x00,0x00,  //勿扰
		
		DEV_C5MUSIC_Type,  0x01,      LOOPCH01,0x00,    0x21,0x09,  0x00,0x00,   //场景打开 播放打开勿扰
		DEV_C5MUSIC_Type,  0x01,      LOOPCH01,0x00,    0x22,0x17,  0x00,0x00,   //场景关闭 播放关闭勿扰
		
//		Dev_Host_LVoutput,0x00,      LOOPCH03,0x00,      0x03,0x64,  0x00,0x00,      //勿扰反馈灯
		DEV_SWI_TYPE,     0x01,      LOOPCH03,0x00,      0x03,0x64,  0x00,0x00,
		
	};
	Dbg_Println(DBG_BIT_LOGIC_STATUS_bit,"Add Scene, ID:%d, Scene Name:%s",DevCoreBuf[0], DevName);
	//判断扩展设备个数
	BLV_DevAction_Add(DevCoreBuf, DevName, DevInputBuf, DevCondBuf, sizeof(DevCtrlBuf)/sizeof(Dev_Action_OutCfg), DevCtrlBuf);
}
void BLV_DevAction_C12ZhanTing_Swi1IN04_Add(void)
{
	uint8_t DevCoreBuf[] = //2字节
	{
		0x00,0x00,//场景编号
	};
	char DevName[] = "Swi1IN04";//32个字节
	
	uint8_t DevInputBuf[] = 
	{
/*  设备类型       设备地址   输入回路          输入类型            */		
		DEV_SWI_TYPE,   0x01,      LOOPCH04,0x00,   KeyPress, 0x00,       
	};
	
	uint8_t DevCondBuf[] =  //9个字节
	{
/*  动作启用不关联房态             插卡有效       其他条件 提示音     起夜          执行方式   */		
		0x00,                           0x03,   0x00,0x00,0x00,0x80,0x01,0x01,    LIGHT_SCENE_TWO,
	};
	
	
	uint8_t DevCtrlBuf[] = 
	{
/*  设备类型         设备地址     输出回路           设备输出    数据备用   */		

//		Dev_Host_HVout,    0x00,      LOOPCH04,0x00,      0x01,0x00,  0x00,0x00,
		DEV_C12DIMMING_Type, 0x00,   LOOPCH01,0x00,      0x01,80,  0x00,0x00,
		
		DEV_C5MUSIC_Type, 0x01,      LOOPCH01,0x00,      0x21,0x01,  0x00,0x00,   //场景打开 指定播放词条  对于不同种类的背景音乐，执行方式有差异
		DEV_C5MUSIC_Type, 0x01,      LOOPCH01,0x00,      0x22,0x01,  0x00,0x00,   //场景打开 指定播放词条  对于不同种类的背景音乐，执行方式有差异
	
//		Dev_NodeCurtain, 0x00,      LOOPCH01,0x00,    0x01,0x00,  0x00,0x00,        //控制窗帘
//		Dev_NodeCurtain, 0x01,      LOOPCH01,0x00,    0x02,0x00,  0x00,0x00,        //控制窗帘	
		
		DEV_SWI_TYPE,     0x01,      LOOPCH04,0x00,      0x03,0x64,  0x00,0x00,
	};
	Dbg_Println(DBG_BIT_LOGIC_STATUS_bit,"Add Scene, ID:%d, Scene Name:%s",DevCoreBuf[0], DevName);
	//判断扩展设备个数
	BLV_DevAction_Add(DevCoreBuf, DevName, DevInputBuf, DevCondBuf, sizeof(DevCtrlBuf)/sizeof(Dev_Action_OutCfg), DevCtrlBuf);
}
void BLV_DevAction_C12ZhanTing_Swi1IN05_Add(void)
{
	uint8_t DevCoreBuf[] = //2字节
	{
		WarmModeNo,0x00,//场景编号
	};
	char DevName[] = "Swi1IN05";//32个字节
	
	uint8_t DevInputBuf[] = 
	{
/*  设备类型       设备地址   输入回路          输入类型            */		
		DEV_SWI_TYPE,   0x01,      LOOPCH05,0x00,   KeyPress, 0x00,       
	};
	
	uint8_t DevCondBuf[] =  //9个字节
	{
/*  动作锁定不关联房态             插卡有效       其他条件 提示音    起夜           执行方式   */		
		0x01,                           0x03,   0x00,0x00,0x00,0x80,0x01,0x01,    LIGHT_SCENE_ONE,
	};
	
	
	uint8_t DevCtrlBuf[] = 
	{
/*  设备类型         设备地址     输出回路           设备输出    数据备用   */		

		Dev_Host_HVout,    0x00,      LOOPCH02,0x00,      0x02,0x00,  0x00,0x00,
		DEV_C12DIMMING_Type, 0x00,   LOOPCH01,0x00,      0x02,0x00,  0x00,0x00,
		DEV_C12DIMMING_Type, 0x00,   LOOPCH03,0x00,      0x01,40,  0x00,0x00,
		DEV_C12DIMMING_Type, 0x00,   LOOPCH04,0x00,      0x01,40,  0x00,0x00,
		DEV_C12DIMMING_Type, 0x00,   LOOPCH05,0x00,      0x01,40,  0x00,0x00,
		DEV_C12DIMMING_Type, 0x00,   LOOPCH06,0x00,      0x01,40,  0x00,0x00,
		
		DEV_RGB_LIGHT_BELT_Type,0x01,LOOPCH01,0x00,      0x01,100,  0x00,0x00,
		DEV_RGB_LIGHT_BELT_Type,0x01,LOOPCH02,0x00,      0x01,50,  0x00,0x00,
		DEV_RGB_LIGHT_BELT_Type,0x01,LOOPCH03,0x00,      0x01,100,  0x00,0x00,
		
		DEV_RGB_LIGHT_BELT_Type,0x02,LOOPCH01,0x00,      0x01,100,  0x00,0x00,
		DEV_RGB_LIGHT_BELT_Type,0x02,LOOPCH02,0x00,      0x01,50,  0x00,0x00,
		DEV_RGB_LIGHT_BELT_Type,0x02,LOOPCH03,0x00,      0x01,100,  0x00,0x00,
		
		DEV_C5MUSIC_Type, 0x01,      LOOPCH01,0x00,      0x00,0x02,  0x00,0x00,    //音乐暂停
//		DEV_C5MUSIC_Type, 0x01,      LOOPCH01,0x00,      0x21,0x08,  0x00,0x00,   //场景打开 指定播放词条 温馨
//		DEV_C5MUSIC_Type, 0x01,      LOOPCH01,0x00,      0x22,0x01,  0x00,0x00,   //场景打开 指定播放词条  对于不同种类的背景音乐，执行方式有差异
				
//		Dev_NodeCurtain, 0x00,      LOOPCH01,0x00,    0x02,0x00,  0x00,0x00,        //控制窗帘
//		Dev_NodeCurtain, 0x01,      LOOPCH01,0x00,    0x02,0x00,  0x00,0x00,        //控制窗帘
		
	
//		DEV_SWI_TYPE,     0x01,      LOOPCH05,0x00,      0x03,0x64,  0x00,0x00,
	};
	Dbg_Println(DBG_BIT_LOGIC_STATUS_bit,"Add Scene, ID:%d, Scene Name:%s",DevCoreBuf[0], DevName);
	//判断扩展设备个数
	BLV_DevAction_Add(DevCoreBuf, DevName, DevInputBuf, DevCondBuf, sizeof(DevCtrlBuf)/sizeof(Dev_Action_OutCfg), DevCtrlBuf);
}
void BLV_DevAction_C12ZhanTing_Swi1IN05L_Add(void)
{
	uint8_t DevCoreBuf[] = //2字节
	{
		00,0x00,//场景编号
	};
	char DevName[] = "Swi1IN05L";//32个字节
	
	uint8_t DevInputBuf[] = 
	{
/*  设备类型       设备地址   输入回路          输入类型            */		
		DEV_SWI_TYPE,   0x01,      LOOPCH05,0x00,   KeyPress, 0x00,       
	};
	
	uint8_t DevCondBuf[] =  //9个字节
	{
/*  动作启用不关联房态             插卡有效       其他条件 提示音    起夜           执行方式   */		
		0x00,                           0x03,   0x00,0x00,0x00,0x80,0x01,0x01,    LIGHT_SCENE_ONE,
	};
	
	
	uint8_t DevCtrlBuf[] = 
	{
/*  设备类型         设备地址     输出回路           设备输出    数据备用   */		

		Dev_Host_HVout,    0x00,      LOOPCH02,0x00,      0x02,0x00,  0x00,0x00,
		DEV_C12DIMMING_Type, 0x00,   LOOPCH01,0x00,      0x02,0x00,  0x00,0x00,
		DEV_C12DIMMING_Type, 0x00,   LOOPCH03,0x00,      0x01,40,  0x00,0x00,
		DEV_C12DIMMING_Type, 0x00,   LOOPCH04,0x00,      0x01,40,  0x00,0x00,
		DEV_C12DIMMING_Type, 0x00,   LOOPCH05,0x00,      0x01,40,  0x00,0x00,
		DEV_C12DIMMING_Type, 0x00,   LOOPCH06,0x00,      0x01,40,  0x00,0x00,
		
		DEV_RGB_LIGHT_BELT_Type,0x01,LOOPCH01,0x00,      0x01,100,  0x00,0x00,
		DEV_RGB_LIGHT_BELT_Type,0x01,LOOPCH02,0x00,      0x01,50,  0x00,0x00,
		DEV_RGB_LIGHT_BELT_Type,0x01,LOOPCH03,0x00,      0x01,100,  0x00,0x00,
		
		DEV_RGB_LIGHT_BELT_Type,0x02,LOOPCH01,0x00,      0x01,100,  0x00,0x00,
		DEV_RGB_LIGHT_BELT_Type,0x02,LOOPCH02,0x00,      0x01,50,  0x00,0x00,
		DEV_RGB_LIGHT_BELT_Type,0x02,LOOPCH03,0x00,      0x01,100,  0x00,0x00,
//		Dev_Host_Invalid, 0x00,      WarmModeNo,0x00,    0x01,0x00,  0x00,0x00,   //温馨模式
		DEV_C5MUSIC_Type, 0x01,      LOOPCH01,0x00,      0x21,0x08,  0x00,0x00,   //场景打开 指定播放词条 温馨
//		DEV_C5MUSIC_Type, 0x01,      LOOPCH01,0x00,      0x22,0x01,  0x00,0x00,   //场景打开 指定播放词条  对于不同种类的背景音乐，执行方式有差异
				
//		Dev_NodeCurtain, 0x00,      LOOPCH01,0x00,    0x02,0x00,  0x00,0x00,        //控制窗帘
//		Dev_NodeCurtain, 0x01,      LOOPCH01,0x00,    0x02,0x00,  0x00,0x00,        //控制窗帘
		
	
		DEV_SWI_TYPE,     0x01,      LOOPCH05,0x00,      0x03,0x64,  0x00,0x00,
	};
	Dbg_Println(DBG_BIT_LOGIC_STATUS_bit,"Add Scene, ID:%d, Scene Name:%s",DevCoreBuf[0], DevName);
	//判断扩展设备个数
	BLV_DevAction_Add(DevCoreBuf, DevName, DevInputBuf, DevCondBuf, sizeof(DevCtrlBuf)/sizeof(Dev_Action_OutCfg), DevCtrlBuf);
}
void BLV_DevAction_C12ZhanTing_Swi1IN06_Add(void)
{
	uint8_t DevCoreBuf[] = //2字节
	{
		BrightModeNo,0x00,//场景编号
	};
	char DevName[] = "Swi1IN06";//32个字节
	
	uint8_t DevInputBuf[] = 
	{
/*  设备类型       设备地址   输入回路          输入类型            */		
		DEV_SWI_TYPE,   0x01,      LOOPCH06,0x00,   KeyPress, 0x00,       
	};
	
	uint8_t DevCondBuf[] =  //9个字节
	{
/*  动作锁定不关联房态             插卡有效       其他条件 提示音    起夜           执行方式   */		
		0x01,                           0x03,   0x00,0x00,0x00,0x80,0x01,0x01,    LIGHT_SCENE_ONE,
	};
	
	uint8_t DevCtrlBuf[] = 
	{
/*  设备类型         设备地址     输出回路           设备输出    数据备用   */		

		Dev_Host_HVout,    0x00,      LOOPCH02,0x00,      0x02,0x00,  0x00,0x00,
		DEV_C12DIMMING_Type, 0x00,   LOOPCH01,0x00,      0x01,100,  0x00,0x00,
		DEV_C12DIMMING_Type, 0x00,   LOOPCH03,0x00,      0x01,100,  0x00,0x00,
		DEV_C12DIMMING_Type, 0x00,   LOOPCH04,0x00,      0x01,100,  0x00,0x00,
		DEV_C12DIMMING_Type, 0x00,   LOOPCH05,0x00,      0x01,100,  0x00,0x00,
		DEV_C12DIMMING_Type, 0x00,   LOOPCH06,0x00,      0x01,100,  0x00,0x00,
		
		DEV_RGB_LIGHT_BELT_Type,0x01,LOOPCH01,0x00,      0x01,100,  0x00,0x00,
		DEV_RGB_LIGHT_BELT_Type,0x01,LOOPCH02,0x00,      0x01,100,  0x00,0x00,
		DEV_RGB_LIGHT_BELT_Type,0x01,LOOPCH03,0x00,      0x01,100,  0x00,0x00,
		
		DEV_RGB_LIGHT_BELT_Type,0x02,LOOPCH01,0x00,      0x01,100,  0x00,0x00,
		DEV_RGB_LIGHT_BELT_Type,0x02,LOOPCH02,0x00,      0x01,100,  0x00,0x00,
		DEV_RGB_LIGHT_BELT_Type,0x02,LOOPCH03,0x00,      0x01,100,  0x00,0x00,

		DEV_C5MUSIC_Type, 0x01,      LOOPCH01,0x00,      0x00,0x02,  0x00,0x00,    //音乐暂停
		
//		DEV_C5MUSIC_Type, 0x01,      LOOPCH01,0x00,      0x21,0x05,  0x00,0x00,   //场景打开 指定播放词条 明亮
//		DEV_C5MUSIC_Type, 0x01,      LOOPCH01,0x00,      0x22,0x01,  0x00,0x00,   //场景打开 指定播放词条  对于不同种类的背景音乐，执行方式有差异
				
//		Dev_NodeCurtain, 0x00,      LOOPCH01,0x00,    0x02,0x00,  0x00,0x00,        //控制窗帘
//		Dev_NodeCurtain, 0x01,      LOOPCH01,0x00,    0x02,0x00,  0x00,0x00,        //控制窗帘
		
	
//		DEV_SWI_TYPE,     0x01,      LOOPCH06,0x00,      0x03,0x64,  0x00,0x00,
	};
	Dbg_Println(DBG_BIT_LOGIC_STATUS_bit,"Add Scene, ID:%d, Scene Name:%s",DevCoreBuf[0], DevName);
	//判断扩展设备个数
	BLV_DevAction_Add(DevCoreBuf, DevName, DevInputBuf, DevCondBuf, sizeof(DevCtrlBuf)/sizeof(Dev_Action_OutCfg), DevCtrlBuf);
}
void BLV_DevAction_C12ZhanTing_Swi1IN06L_Add(void)
{
	uint8_t DevCoreBuf[] = //2字节
	{
		00,0x00,//场景编号
	};
	char DevName[] = "Swi1IN06L";//32个字节
	
	uint8_t DevInputBuf[] = 
	{
/*  设备类型       设备地址   输入回路          输入类型            */		
		DEV_SWI_TYPE,   0x01,      LOOPCH06,0x00,   KeyPress, 0x00,       
	};
	
	uint8_t DevCondBuf[] =  //9个字节
	{
/*  动作启用不关联房态             插卡有效       其他条件 提示音    起夜           执行方式   */		
		0x00,                           0x03,   0x00,0x00,0x00,0x80,0x01,0x01,    LIGHT_SCENE_ONE,
	};
	
	uint8_t DevCtrlBuf[] = 
	{
/*  设备类型         设备地址     输出回路           设备输出    数据备用   */		

		Dev_Host_HVout,    0x00,      LOOPCH02,0x00,      0x02,0x00,  0x00,0x00,
		DEV_C12DIMMING_Type, 0x00,   LOOPCH01,0x00,      0x01,100,  0x00,0x00,
		DEV_C12DIMMING_Type, 0x00,   LOOPCH03,0x00,      0x01,100,  0x00,0x00,
		DEV_C12DIMMING_Type, 0x00,   LOOPCH04,0x00,      0x01,100,  0x00,0x00,
		DEV_C12DIMMING_Type, 0x00,   LOOPCH05,0x00,      0x01,100,  0x00,0x00,
		DEV_C12DIMMING_Type, 0x00,   LOOPCH06,0x00,      0x01,100,  0x00,0x00,
		
		DEV_RGB_LIGHT_BELT_Type,0x01,LOOPCH01,0x00,      0x01,100,  0x00,0x00,
		DEV_RGB_LIGHT_BELT_Type,0x01,LOOPCH02,0x00,      0x01,100,  0x00,0x00,
		DEV_RGB_LIGHT_BELT_Type,0x01,LOOPCH03,0x00,      0x01,100,  0x00,0x00,
		
		DEV_RGB_LIGHT_BELT_Type,0x02,LOOPCH01,0x00,      0x01,100,  0x00,0x00,
		DEV_RGB_LIGHT_BELT_Type,0x02,LOOPCH02,0x00,      0x01,100,  0x00,0x00,
		DEV_RGB_LIGHT_BELT_Type,0x02,LOOPCH03,0x00,      0x01,100,  0x00,0x00,
//		Dev_Host_Invalid, 0x00,      BrightModeNo,0x00,    0x01,0x00, 0x00,0x00,
		DEV_C5MUSIC_Type, 0x01,      LOOPCH01,0x00,      0x21,0x05,  0x00,0x00,   //场景打开 指定播放词条 明亮
//		DEV_C5MUSIC_Type, 0x01,      LOOPCH01,0x00,      0x22,0x01,  0x00,0x00,   //场景打开 指定播放词条  对于不同种类的背景音乐，执行方式有差异
				
//		Dev_NodeCurtain, 0x00,      LOOPCH01,0x00,    0x02,0x00,  0x00,0x00,        //控制窗帘
//		Dev_NodeCurtain, 0x01,      LOOPCH01,0x00,    0x02,0x00,  0x00,0x00,        //控制窗帘
		
	
		DEV_SWI_TYPE,     0x01,      LOOPCH06,0x00,      0x03,0x64,  0x00,0x00,
	};
	Dbg_Println(DBG_BIT_LOGIC_STATUS_bit,"Add Scene, ID:%d, Scene Name:%s",DevCoreBuf[0], DevName);
	//判断扩展设备个数
	BLV_DevAction_Add(DevCoreBuf, DevName, DevInputBuf, DevCondBuf, sizeof(DevCtrlBuf)/sizeof(Dev_Action_OutCfg), DevCtrlBuf);
}
void BLV_DevAction_C12ZhanTing_Swi1IN07_Add(void)
{
	uint8_t DevCoreBuf[] = //2字节
	{
		ReadingModeNo,0x00,//场景编号
	};
	char DevName[] = "Swi1IN07";//32个字节
	
	uint8_t DevInputBuf[] = 
	{
/*  设备类型       设备地址   输入回路          输入类型            */		
		DEV_SWI_TYPE,   0x01,      LOOPCH07,0x00,   KeyPress, 0x00,       
	};
	
	uint8_t DevCondBuf[] =  //9个字节
	{
/*  动作锁定不关联房态             插卡有效       其他条件  提示音    起夜有关         执行方式   */		
		0x01,                           0x03,    0x00,0x00,0x00,0x80,0x01,0x01,    LIGHT_SCENE_ONE,
	};
	
	uint8_t DevCtrlBuf[] = 
	{
/*  设备类型         设备地址     输出回路           设备输出    数据备用   */		

		Dev_Host_HVout,    0x00,      LOOPCH02,0x00,      0x02,0x00,  0x00,0x00,
		DEV_C12DIMMING_Type, 0x00,   LOOPCH01,0x00,      0x02,0x00,  0x00,0x00,
		DEV_C12DIMMING_Type, 0x00,   LOOPCH03,0x00,      0x02,0x00,  0x00,0x00,
		DEV_C12DIMMING_Type, 0x00,   LOOPCH04,0x00,      0x01,100,  0x00,0x00,
		DEV_C12DIMMING_Type, 0x00,   LOOPCH05,0x00,      0x01,100,  0x00,0x00,
		DEV_C12DIMMING_Type, 0x00,   LOOPCH06,0x00,      0x02,0x00,  0x00,0x00,
		
		DEV_RGB_LIGHT_BELT_Type,0x01,LOOPCH01,0x00,      0x01,50,  0x00,0x00,
		DEV_RGB_LIGHT_BELT_Type,0x01,LOOPCH02,0x00,      0x01,50,  0x00,0x00,
		DEV_RGB_LIGHT_BELT_Type,0x01,LOOPCH03,0x00,      0x01,50,  0x00,0x00,
		
		DEV_RGB_LIGHT_BELT_Type,0x02,LOOPCH01,0x00,      0x01,50,  0x00,0x00,
		DEV_RGB_LIGHT_BELT_Type,0x02,LOOPCH02,0x00,      0x01,50,  0x00,0x00,
		DEV_RGB_LIGHT_BELT_Type,0x02,LOOPCH03,0x00,      0x01,50,  0x00,0x00,
		
		DEV_C5MUSIC_Type, 0x01,      LOOPCH01,0x00,      0x00,0x02,  0x00,0x00,    //音乐暂停

//		DEV_C5MUSIC_Type, 0x01,      LOOPCH01,0x00,      0x21,10,  0x00,0x00,   //场景打开 指定播放词条 阅读
//		DEV_C5MUSIC_Type, 0x01,      LOOPCH01,0x00,      0x22,0x01,  0x00,0x00,   //场景打开 指定播放词条  对于不同种类的背景音乐，执行方式有差异
				
//		Dev_NodeCurtain, 0x00,      LOOPCH01,0x00,    0x02,0x00,  0x00,0x00,        //控制窗帘
//		Dev_NodeCurtain, 0x01,      LOOPCH01,0x00,    0x02,0x00,  0x00,0x00,        //控制窗帘
		
	
//		DEV_SWI_TYPE,     0x01,      LOOPCH07,0x00,      0x03,0x64,  0x00,0x00,
	};
	Dbg_Println(DBG_BIT_LOGIC_STATUS_bit,"Add Scene, ID:%d, Scene Name:%s",DevCoreBuf[0], DevName);
	//判断扩展设备个数
	BLV_DevAction_Add(DevCoreBuf, DevName, DevInputBuf, DevCondBuf, sizeof(DevCtrlBuf)/sizeof(Dev_Action_OutCfg), DevCtrlBuf);
}
void BLV_DevAction_C12ZhanTing_Swi1IN07L_Add(void)
{
	uint8_t DevCoreBuf[] = //2字节
	{
		00,0x00,//场景编号
	};
	char DevName[] = "Swi1IN07L";//32个字节
	
	uint8_t DevInputBuf[] = 
	{
/*  设备类型       设备地址   输入回路          输入类型            */		
		DEV_SWI_TYPE,   0x01,      LOOPCH07,0x00,   KeyPress, 0x00,       
	};
	
	uint8_t DevCondBuf[] =  //9个字节
	{
/*  动作启用不关联房态             插卡有效       其他条件  提示音    起夜有关         执行方式   */		
		0x00,                           0x03,    0x00,0x00,0x00,0x80,0x01,0x01,    LIGHT_SCENE_ONE,
	};
	
	uint8_t DevCtrlBuf[] = 
	{
/*  设备类型         设备地址     输出回路           设备输出    数据备用   */		

		Dev_Host_HVout,    0x00,      LOOPCH02,0x00,      0x02,0x00,  0x00,0x00,
		DEV_C12DIMMING_Type, 0x00,   LOOPCH01,0x00,      0x02,0x00,  0x00,0x00,
		DEV_C12DIMMING_Type, 0x00,   LOOPCH03,0x00,      0x02,0x00,  0x00,0x00,
		DEV_C12DIMMING_Type, 0x00,   LOOPCH04,0x00,      0x01,100,  0x00,0x00,
		DEV_C12DIMMING_Type, 0x00,   LOOPCH05,0x00,      0x01,100,  0x00,0x00,
		DEV_C12DIMMING_Type, 0x00,   LOOPCH06,0x00,      0x02,0x00,  0x00,0x00,
		
		DEV_RGB_LIGHT_BELT_Type,0x01,LOOPCH01,0x00,      0x01,50,  0x00,0x00,
		DEV_RGB_LIGHT_BELT_Type,0x01,LOOPCH02,0x00,      0x01,50,  0x00,0x00,
		DEV_RGB_LIGHT_BELT_Type,0x01,LOOPCH03,0x00,      0x01,50,  0x00,0x00,
		
		DEV_RGB_LIGHT_BELT_Type,0x02,LOOPCH01,0x00,      0x01,50,  0x00,0x00,
		DEV_RGB_LIGHT_BELT_Type,0x02,LOOPCH02,0x00,      0x01,50,  0x00,0x00,
		DEV_RGB_LIGHT_BELT_Type,0x02,LOOPCH03,0x00,      0x01,50,  0x00,0x00,
//		Dev_Host_Invalid, 0x00,    ReadingModeNo,0x00,   0x01,0x00, 0x00,0x00,
		DEV_C5MUSIC_Type, 0x01,      LOOPCH01,0x00,      0x21,10,  0x00,0x00,   //场景打开 指定播放词条 阅读
//		DEV_C5MUSIC_Type, 0x01,      LOOPCH01,0x00,      0x22,0x01,  0x00,0x00,   //场景打开 指定播放词条  对于不同种类的背景音乐，执行方式有差异
				
//		Dev_NodeCurtain, 0x00,      LOOPCH01,0x00,    0x02,0x00,  0x00,0x00,        //控制窗帘
//		Dev_NodeCurtain, 0x01,      LOOPCH01,0x00,    0x02,0x00,  0x00,0x00,        //控制窗帘
		
	
		DEV_SWI_TYPE,     0x01,      LOOPCH07,0x00,      0x03,0x64,  0x00,0x00,
	};
	Dbg_Println(DBG_BIT_LOGIC_STATUS_bit,"Add Scene, ID:%d, Scene Name:%s",DevCoreBuf[0], DevName);
	//判断扩展设备个数
	BLV_DevAction_Add(DevCoreBuf, DevName, DevInputBuf, DevCondBuf, sizeof(DevCtrlBuf)/sizeof(Dev_Action_OutCfg), DevCtrlBuf);
}

void BLV_DevAction_C12ZhanTing_Swi1IN08_Add(void)
{
	uint8_t DevCoreBuf[] = //2字节
	{
		RomanceModeNo,0x00,//场景编号
	};
	char DevName[] = "Swi1IN08";//32个字节
	
	uint8_t DevInputBuf[] = 
	{
/*  设备类型       设备地址   输入回路          输入类型            */		
		DEV_SWI_TYPE,   0x01,      LOOPCH08,0x00,   KeyPress, 0x00,       
	};
	
	uint8_t DevCondBuf[] =  //9个字节
	{
/*  动作锁定不关联房态             插卡有效       其他条件   提示音   起夜          执行方式   */		
		0x01,                           0x03,    0x00,0x00,0x00,0x80,0x01,0x01,    LIGHT_SCENE_ONE,
	};
	
	uint8_t DevCtrlBuf[] = 
	{
/*  设备类型         设备地址     输出回路           设备输出    数据备用   */		

		Dev_Host_HVout,    0x00,      LOOPCH02,0x00,      0x02,0x00,  0x00,0x00,
		DEV_C12DIMMING_Type, 0x00,   LOOPCH01,0x00,      0x02,0x00,  0x00,0x00,
		DEV_C12DIMMING_Type, 0x00,   LOOPCH03,0x00,      0x01,40,  0x00,0x00,
		DEV_C12DIMMING_Type, 0x00,   LOOPCH04,0x00,      0x02,0x00,  0x00,0x00,
		DEV_C12DIMMING_Type, 0x00,   LOOPCH05,0x00,      0x02,0x00,  0x00,0x00,
		DEV_C12DIMMING_Type, 0x00,   LOOPCH06,0x00,      0x01,40,  0x00,0x00,
		
		DEV_RGB_LIGHT_BELT_Type,0x01,LOOPCH01,0x00,      0x01,100,  0x00,0x00,
		DEV_RGB_LIGHT_BELT_Type,0x01,LOOPCH02,0x00,      0x02,0x00,  0x00,0x00,
		DEV_RGB_LIGHT_BELT_Type,0x01,LOOPCH03,0x00,      0x01,100,  0x00,0x00,
		
		DEV_RGB_LIGHT_BELT_Type,0x02,LOOPCH01,0x00,      0x01,100,  0x00,0x00,
		DEV_RGB_LIGHT_BELT_Type,0x02,LOOPCH02,0x00,      0x02,0x00,  0x00,0x00,
		DEV_RGB_LIGHT_BELT_Type,0x02,LOOPCH03,0x00,      0x01,100,  0x00,0x00,
		DEV_C5MUSIC_Type, 0x01,      LOOPCH01,0x00,      0x00,0x02,  0x00,0x00,    //音乐暂停
		
//		DEV_C5MUSIC_Type, 0x01,      LOOPCH01,0x00,      0x21,4,  0x00,0x00,   //场景打开 指定播放词条 阅读
//		DEV_C5MUSIC_Type, 0x01,      LOOPCH01,0x00,      0x22,0x01,  0x00,0x00,   //场景打开 指定播放词条  对于不同种类的背景音乐，执行方式有差异
				
//		Dev_NodeCurtain, 0x00,      LOOPCH01,0x00,    0x02,0x00,  0x00,0x00,        //控制窗帘
//		Dev_NodeCurtain, 0x01,      LOOPCH01,0x00,    0x02,0x00,  0x00,0x00,        //控制窗帘
		
	
//		DEV_SWI_TYPE,     0x01,      LOOPCH08,0x00,      0x03,0x64,  0x00,0x00,
	};
	Dbg_Println(DBG_BIT_LOGIC_STATUS_bit,"Add Scene, ID:%d, Scene Name:%s",DevCoreBuf[0], DevName);
	//判断扩展设备个数
	BLV_DevAction_Add(DevCoreBuf, DevName, DevInputBuf, DevCondBuf, sizeof(DevCtrlBuf)/sizeof(Dev_Action_OutCfg), DevCtrlBuf);
}
void BLV_DevAction_C12ZhanTing_Swi1IN08L_Add(void)
{
	uint8_t DevCoreBuf[] = //2字节
	{
		00,0x00,//场景编号
	};
	char DevName[] = "Swi1IN08L";//32个字节
	
	uint8_t DevInputBuf[] = 
	{
/*  设备类型       设备地址   输入回路          输入类型            */		
		DEV_SWI_TYPE,   0x01,      LOOPCH08,0x00,   KeyPress, 0x00,       
	};
	
	uint8_t DevCondBuf[] =  //9个字节
	{
/*  动作启用不关联房态             插卡有效       其他条件   提示音   起夜          执行方式   */		
		0x00,                           0x03,    0x00,0x00,0x00,0x80,0x01,0x01,    LIGHT_SCENE_ONE,
	};
	
	uint8_t DevCtrlBuf[] = 
	{
/*  设备类型         设备地址     输出回路           设备输出    数据备用   */		

		Dev_Host_HVout,    0x00,      LOOPCH02,0x00,      0x02,0x00,  0x00,0x00,
		DEV_C12DIMMING_Type, 0x00,   LOOPCH01,0x00,      0x02,0x00,  0x00,0x00,
		DEV_C12DIMMING_Type, 0x00,   LOOPCH03,0x00,      0x01,40,  0x00,0x00,
		DEV_C12DIMMING_Type, 0x00,   LOOPCH04,0x00,      0x02,0x00,  0x00,0x00,
		DEV_C12DIMMING_Type, 0x00,   LOOPCH05,0x00,      0x02,0x00,  0x00,0x00,
		DEV_C12DIMMING_Type, 0x00,   LOOPCH06,0x00,      0x01,40,  0x00,0x00,
		
		DEV_RGB_LIGHT_BELT_Type,0x01,LOOPCH01,0x00,      0x01,100,  0x00,0x00,
		DEV_RGB_LIGHT_BELT_Type,0x01,LOOPCH02,0x00,      0x02,0x00,  0x00,0x00,
		DEV_RGB_LIGHT_BELT_Type,0x01,LOOPCH03,0x00,      0x01,100,  0x00,0x00,
		
		DEV_RGB_LIGHT_BELT_Type,0x02,LOOPCH01,0x00,      0x01,100,  0x00,0x00,
		DEV_RGB_LIGHT_BELT_Type,0x02,LOOPCH02,0x00,      0x02,0x00,  0x00,0x00,
		DEV_RGB_LIGHT_BELT_Type,0x02,LOOPCH03,0x00,      0x01,100,  0x00,0x00,
		
//		Dev_Host_Invalid, 0x00,    RomanceModeNo,0x00,   0x01,0x00, 0x00,0x00,
		DEV_C5MUSIC_Type, 0x01,      LOOPCH01,0x00,      0x21,4,  0x00,0x00,   //场景打开 指定播放词条 阅读
//		DEV_C5MUSIC_Type, 0x01,      LOOPCH01,0x00,      0x22,0x01,  0x00,0x00,   //场景打开 指定播放词条  对于不同种类的背景音乐，执行方式有差异
				
//		Dev_NodeCurtain, 0x00,      LOOPCH01,0x00,    0x02,0x00,  0x00,0x00,        //控制窗帘
//		Dev_NodeCurtain, 0x01,      LOOPCH01,0x00,    0x02,0x00,  0x00,0x00,        //控制窗帘
		
	
		DEV_SWI_TYPE,     0x01,      LOOPCH08,0x00,      0x03,0x64,  0x00,0x00,
	};
	Dbg_Println(DBG_BIT_LOGIC_STATUS_bit,"Add Scene, ID:%d, Scene Name:%s",DevCoreBuf[0], DevName);
	//判断扩展设备个数
	BLV_DevAction_Add(DevCoreBuf, DevName, DevInputBuf, DevCondBuf, sizeof(DevCtrlBuf)/sizeof(Dev_Action_OutCfg), DevCtrlBuf);
}

void BLV_DevAction_C12ZhanTing_Swi1IN09_Add(void)
{
	uint8_t DevCoreBuf[] = //2字节
	{
		NeightModeNo,0x00,//场景编号
	};
	char DevName[] = "Swi1IN09";//32个字节
	
	uint8_t DevInputBuf[] = 
	{
/*  设备类型       设备地址   输入回路          输入类型            */		
		DEV_SWI_TYPE,   0x01,      LOOPCH09,0x00,   KeyPress, 0x00,       
	};
	
	uint8_t DevCondBuf[] =  //9个字节
	{
/*  动作锁定不关联房态             插卡有效       其他条件  提示音    起夜        执行方式   */		
		0x01,                           0x03,    0x00,0x00,0x00,0x80,0x01,0x00,    LIGHT_SCENE_SLEEP,
	};
	
	uint8_t DevCtrlBuf[] = 
	{
/*  设备类型         设备地址     输出回路           设备输出    数据备用   */		

		Dev_Host_HVout,    0x00,      LOOPCH02,0x00,      0x02,0x00,  0x00,0x00,
		Dev_Host_HVout,    0x00,      LOOPCH03,0x00,      0x02,0x00,  0x00,0x00,
		Dev_Host_HVout,    0x00,      LOOPCH04,0x00,      0x02,0x00,  0x00,0x00,
		Dev_Host_HVout,    0x00,      LOOPCH05,0x00,      0x02,0x00,  0x00,0x00,
		Dev_Host_HVout,    0x00,      LOOPCH06,0x00,      0x02,0x00,  0x00,0x00,
		
		DEV_C12DIMMING_Type, 0x00,   LOOPCH01,0x00,      0x02,0x00,  0x00,0x00,
		DEV_C12DIMMING_Type, 0x00,   LOOPCH03,0x00,      0x02,0x00,  0x00,0x00,
		DEV_C12DIMMING_Type, 0x00,   LOOPCH04,0x00,      0x02,0x00,  0x00,0x00,
		DEV_C12DIMMING_Type, 0x00,   LOOPCH05,0x00,      0x02,0x00,  0x00,0x00,
		DEV_C12DIMMING_Type, 0x00,   LOOPCH06,0x00,      0x02,0x00,  0x00,0x00,
		DEV_C12DIMMING_Type, 0x00,   LOOPCH07,0x00,      0x02,0x00,  0x00,0x00,
		DEV_C12DIMMING_Type, 0x00,   LOOPCH08,0x00,      0x02,0x00,  0x00,0x00,
		DEV_C12DIMMING_Type, 0x00,   LOOPCH09,0x00,      0x02,0x00,  0x00,0x00,
		DEV_C12DIMMING_Type, 0x00,   LOOPCH10,0x00,      0x02,0x00,  0x00,0x00,
		
		Dev_Host_Invalid,   0x00,   OpenAllRGB,0x00,    0x01,0x00,  0x00,0x00,        //控制自定义场景
		
		DEV_C5MUSIC_Type, 0x01,      LOOPCH01,0x00,      0x00,0x02,  0x00,0x00,    //音乐暂停
	
//		DEV_RGB_LIGHT_BELT_Type,0x01,LOOPCH01,0x00,      0x01,100,  0x00,0x00,
//		DEV_RGB_LIGHT_BELT_Type,0x01,LOOPCH02,0x00,      0x02,0x00,  0x00,0x00,
//		DEV_RGB_LIGHT_BELT_Type,0x01,LOOPCH03,0x00,      0x01,100,  0x00,0x00,
//		
//		DEV_RGB_LIGHT_BELT_Type,0x02,LOOPCH01,0x00,      0x01,100,  0x00,0x00,
//		DEV_RGB_LIGHT_BELT_Type,0x02,LOOPCH02,0x00,      0x02,0x00,  0x00,0x00,
//		DEV_RGB_LIGHT_BELT_Type,0x02,LOOPCH03,0x00,      0x01,100,  0x00,0x00,
		
//		DEV_C5MUSIC_Type, 0x01,      LOOPCH01,0x00,      0x21,7,  0x00,0x00,   //场景打开 指定播放词条 睡眠
//		DEV_C5MUSIC_Type, 0x01,      LOOPCH01,0x00,      0x22,0x01,  0x00,0x00,   //场景打开 指定播放词条  对于不同种类的背景音乐，执行方式有差异
				
		Dev_NodeCurtain, 0x00,      LOOPCH01,0x00,    0x02,0x00,  0x00,0x00,        //控制窗帘
		Dev_NodeCurtain, 0x01,      LOOPCH01,0x00,    0x02,0x00,  0x00,0x00,        //控制窗帘
		
	
//		DEV_SWI_TYPE,     0x01,      LOOPCH09,0x00,      0x03,0x64,  0x00,0x00,
	};
	Dbg_Println(DBG_BIT_LOGIC_STATUS_bit,"Add Scene, ID:%d, Scene Name:%s",DevCoreBuf[0], DevName);
	//判断扩展设备个数
	BLV_DevAction_Add(DevCoreBuf, DevName, DevInputBuf, DevCondBuf, sizeof(DevCtrlBuf)/sizeof(Dev_Action_OutCfg), DevCtrlBuf);
}
void BLV_DevAction_C12ZhanTing_Swi1IN09L_Add(void)
{
	uint8_t DevCoreBuf[] = //2字节
	{
		00,0x00,//场景编号
	};
	char DevName[] = "Swi1IN09";//32个字节
	
	uint8_t DevInputBuf[] = 
	{
/*  设备类型       设备地址   输入回路          输入类型            */		
		DEV_SWI_TYPE,   0x01,      LOOPCH09,0x00,   KeyPress, 0x00,       
	};
	
	uint8_t DevCondBuf[] =  //9个字节
	{
/*  动作启用不关联房态             插卡有效       其他条件  提示音    起夜        执行方式   */		
		0x00,                           0x03,    0x00,0x00,0x00,0x80,0x01,0x00,    LIGHT_SCENE_SLEEP,
	};
	
	uint8_t DevCtrlBuf[] = 
	{
/*  设备类型         设备地址     输出回路           设备输出    数据备用   */		

		Dev_Host_HVout,    0x00,      LOOPCH02,0x00,      0x02,0x00,  0x00,0x00,
		Dev_Host_HVout,    0x00,      LOOPCH03,0x00,      0x02,0x00,  0x00,0x00,
		Dev_Host_HVout,    0x00,      LOOPCH04,0x00,      0x02,0x00,  0x00,0x00,
		Dev_Host_HVout,    0x00,      LOOPCH05,0x00,      0x02,0x00,  0x00,0x00,
		Dev_Host_HVout,    0x00,      LOOPCH06,0x00,      0x02,0x00,  0x00,0x00,
		
		DEV_C12DIMMING_Type, 0x00,   LOOPCH01,0x00,      0x02,0x00,  0x00,0x00,
		DEV_C12DIMMING_Type, 0x00,   LOOPCH03,0x00,      0x02,0x00,  0x00,0x00,
		DEV_C12DIMMING_Type, 0x00,   LOOPCH04,0x00,      0x02,0x00,  0x00,0x00,
		DEV_C12DIMMING_Type, 0x00,   LOOPCH05,0x00,      0x02,0x00,  0x00,0x00,
		DEV_C12DIMMING_Type, 0x00,   LOOPCH06,0x00,      0x02,0x00,  0x00,0x00,
		DEV_C12DIMMING_Type, 0x00,   LOOPCH07,0x00,      0x02,0x00,  0x00,0x00,
		DEV_C12DIMMING_Type, 0x00,   LOOPCH08,0x00,      0x02,0x00,  0x00,0x00,
		DEV_C12DIMMING_Type, 0x00,   LOOPCH09,0x00,      0x02,0x00,  0x00,0x00,
		DEV_C12DIMMING_Type, 0x00,   LOOPCH10,0x00,      0x02,0x00,  0x00,0x00,
		
//		Dev_Host_Invalid,   0x00,   OpenAllRGB,0x00,    0x01,0x00,  0x00,0x00,        //控制自定义场景
		DEV_RGB_LIGHT_BELT_Type,0x01,LOOPCH01,0x00,      0x02,00,  0x00,0x00,
		DEV_RGB_LIGHT_BELT_Type,0x01,LOOPCH02,0x00,      0x02,0x00,  0x00,0x00,
		DEV_RGB_LIGHT_BELT_Type,0x01,LOOPCH03,0x00,      0x02,00,  0x00,0x00,
		
		DEV_RGB_LIGHT_BELT_Type,0x02,LOOPCH01,0x00,      0x01,20,  0x00,0x00,
		DEV_RGB_LIGHT_BELT_Type,0x02,LOOPCH02,0x00,      0x01,20,  0x00,0x00,
		DEV_RGB_LIGHT_BELT_Type,0x02,LOOPCH03,0x00,      0x01,20,  0x00,0x00,
		
		DEV_RGB_LIGHT_BELT_Type,0x03,LOOPCH01,0x00,      0x02,00,  0x00,0x00,
		DEV_RGB_LIGHT_BELT_Type,0x03,LOOPCH02,0x00,      0x02,0x00,  0x00,0x00,
		DEV_RGB_LIGHT_BELT_Type,0x03,LOOPCH03,0x00,      0x02,00,  0x00,0x00,
		
		DEV_C5MUSIC_Type, 0x01,      LOOPCH01,0x00,      0x21,7,  0x00,0x00,   //场景打开 指定播放词条 睡眠
//		DEV_C5MUSIC_Type, 0x01,      LOOPCH01,0x00,      0x22,0x01,  0x00,0x00,   //场景打开 指定播放词条  对于不同种类的背景音乐，执行方式有差异
				
		Dev_NodeCurtain, 0x00,      LOOPCH01,0x00,    0x02,0x00,  0x00,0x00,        //控制窗帘
		Dev_NodeCurtain, 0x01,      LOOPCH01,0x00,    0x02,0x00,  0x00,0x00,        //控制窗帘
		
	
		DEV_SWI_TYPE,     0x01,      LOOPCH09,0x00,      0x03,0x64,  0x00,0x00,
	};
	Dbg_Println(DBG_BIT_LOGIC_STATUS_bit,"Add Scene, ID:%d, Scene Name:%s",DevCoreBuf[0], DevName);
	//判断扩展设备个数
	BLV_DevAction_Add(DevCoreBuf, DevName, DevInputBuf, DevCondBuf, sizeof(DevCtrlBuf)/sizeof(Dev_Action_OutCfg), DevCtrlBuf);
}

void BLV_DevAction_C12ZhanTing_Swi1IN10_Add(void)
{
	uint8_t DevCoreBuf[] = //2字节
	{
		TVModeNo,0x00,//场景编号
	};
	char DevName[] = "Swi1IN10";//32个字节
	
	uint8_t DevInputBuf[] = 
	{
/*  设备类型       设备地址   输入回路          输入类型            */		
		DEV_SWI_TYPE,   0x01,      LOOPCH10,0x00,   KeyPress, 0x00,       
	};
	
	uint8_t DevCondBuf[] =  //9个字节
	{
/*  动作锁定不关联房态             插卡有效       其他条件  提示音              执行方式   */		
		0x01,                           0x03,    0x00,0x00,0x00,0x80,0x01,0x01,    LIGHT_SCENE_ONE,
	};
	
	uint8_t DevCtrlBuf[] = 
	{
/*  设备类型         设备地址     输出回路           设备输出    数据备用   */		

//		Dev_Host_HVout,    0x00,      LOOPCH02,0x00,      0x02,0x00,  0x00,0x00,
//		Dev_Host_HVout,    0x00,      LOOPCH03,0x00,      0x02,0x00,  0x00,0x00,
//		Dev_Host_HVout,    0x00,      LOOPCH04,0x00,      0x02,0x00,  0x00,0x00,
//		Dev_Host_HVout,    0x00,      LOOPCH02,0x00,      0x02,0x00,  0x00,0x00,
		
		DEV_C12DIMMING_Type, 0x00,   LOOPCH01,0x00,      0x02,0x00,  0x00,0x00,
		DEV_C12DIMMING_Type, 0x00,   LOOPCH03,0x00,      0x01,50,  0x00,0x00,
		DEV_C12DIMMING_Type, 0x00,   LOOPCH04,0x00,      0x02,0x00,  0x00,0x00,
		DEV_C12DIMMING_Type, 0x00,   LOOPCH05,0x00,      0x02,0x00,  0x00,0x00,
		DEV_C12DIMMING_Type, 0x00,   LOOPCH06,0x00,      0x02,0x00,  0x00,0x00,
//		DEV_C12DIMMING_Type, 0x00,   LOOPCH07,0x00,      0x02,0x00,  0x00,0x00,
//		DEV_C12DIMMING_Type, 0x00,   LOOPCH08,0x00,      0x02,0x00,  0x00,0x00,
//		DEV_C12DIMMING_Type, 0x00,   LOOPCH09,0x00,      0x02,0x00,  0x00,0x00,
//		DEV_C12DIMMING_Type, 0x00,   LOOPCH10,0x00,      0x02,0x00,  0x00,0x00,
		
//		Dev_Host_Invalid,   0x00,   CloseAllRGB,0x00,    0x01,0x00,  0x00,0x00,        //控制自定义场景
		DEV_RGB_LIGHT_BELT_Type,0x01,LOOPCH01,0x00,      0x02,0x00,  0x00,0x00,
		DEV_RGB_LIGHT_BELT_Type,0x01,LOOPCH02,0x00,      0x01,100,   0x00,0x00,
		DEV_RGB_LIGHT_BELT_Type,0x01,LOOPCH03,0x00,      0x01,100,  0x00,0x00,
		
		DEV_RGB_LIGHT_BELT_Type,0x02,LOOPCH01,0x00,      0x02,0x00,  0x00,0x00,
		DEV_RGB_LIGHT_BELT_Type,0x02,LOOPCH02,0x00,      0x02,0x00,  0x00,0x00,
		DEV_RGB_LIGHT_BELT_Type,0x02,LOOPCH03,0x00,      0x02,0x00,  0x00,0x00,
		DEV_C5MUSIC_Type, 0x01,      LOOPCH01,0x00,      0x00,0x02,  0x00,0x00,    //音乐暂停
		
//		DEV_C5MUSIC_Type, 0x01,      LOOPCH01,0x00,      0x21,40,  0x00,0x00,   //场景打开 指定播放词条 电视
//		DEV_C5MUSIC_Type, 0x01,      LOOPCH01,0x00,      0x22,0x01,  0x00,0x00,   //场景打开 指定播放词条  对于不同种类的背景音乐，执行方式有差异
				
//		Dev_NodeCurtain, 0x00,      LOOPCH01,0x00,    0x02,0x00,  0x00,0x00,        //控制窗帘
//		Dev_NodeCurtain, 0x01,      LOOPCH01,0x00,    0x02,0x00,  0x00,0x00,        //控制窗帘
		
	
//		DEV_SWI_TYPE,     0x01,      LOOPCH10,0x00,      0x03,0x64,  0x00,0x00,
	};
	Dbg_Println(DBG_BIT_LOGIC_STATUS_bit,"Add Scene, ID:%d, Scene Name:%s",DevCoreBuf[0], DevName);
	//判断扩展设备个数
	BLV_DevAction_Add(DevCoreBuf, DevName, DevInputBuf, DevCondBuf, sizeof(DevCtrlBuf)/sizeof(Dev_Action_OutCfg), DevCtrlBuf);
}
void BLV_DevAction_C12ZhanTing_Swi1IN10L_Add(void)
{
	uint8_t DevCoreBuf[] = //2字节
	{
		00,0x00,//场景编号
	};
	char DevName[] = "Swi1IN10L";//32个字节
	
	uint8_t DevInputBuf[] = 
	{
/*  设备类型       设备地址   输入回路          输入类型            */		
		DEV_SWI_TYPE,   0x01,      LOOPCH10,0x00,   KeyPress, 0x00,       
	};
	
	uint8_t DevCondBuf[] =  //9个字节
	{
/*  动作启用不关联房态             插卡有效       其他条件  提示音              执行方式   */		
		0x00,                           0x03,    0x00,0x00,0x00,0x80,0x01,0x01,    LIGHT_SCENE_ONE,
	};
	
	uint8_t DevCtrlBuf[] = 
	{
/*  设备类型         设备地址     输出回路           设备输出    数据备用   */		

//		Dev_Host_HVout,    0x00,      LOOPCH02,0x00,      0x02,0x00,  0x00,0x00,
//		Dev_Host_HVout,    0x00,      LOOPCH03,0x00,      0x02,0x00,  0x00,0x00,
//		Dev_Host_HVout,    0x00,      LOOPCH04,0x00,      0x02,0x00,  0x00,0x00,
//		Dev_Host_HVout,    0x00,      LOOPCH02,0x00,      0x02,0x00,  0x00,0x00,
		
		DEV_C12DIMMING_Type, 0x00,   LOOPCH01,0x00,      0x02,0x00,  0x00,0x00,
		DEV_C12DIMMING_Type, 0x00,   LOOPCH03,0x00,      0x01,50,  0x00,0x00,
		DEV_C12DIMMING_Type, 0x00,   LOOPCH04,0x00,      0x02,0x00,  0x00,0x00,
		DEV_C12DIMMING_Type, 0x00,   LOOPCH05,0x00,      0x02,0x00,  0x00,0x00,
		DEV_C12DIMMING_Type, 0x00,   LOOPCH06,0x00,      0x02,0x00,  0x00,0x00,
//		DEV_C12DIMMING_Type, 0x00,   LOOPCH07,0x00,      0x02,0x00,  0x00,0x00,
//		DEV_C12DIMMING_Type, 0x00,   LOOPCH08,0x00,      0x02,0x00,  0x00,0x00,
//		DEV_C12DIMMING_Type, 0x00,   LOOPCH09,0x00,      0x02,0x00,  0x00,0x00,
//		DEV_C12DIMMING_Type, 0x00,   LOOPCH10,0x00,      0x02,0x00,  0x00,0x00,
//		
//		Dev_Host_Invalid,   0x00,   CloseAllRGB,0x00,    0x01,0x00,  0x00,0x00,        //控制自定义场景
		DEV_RGB_LIGHT_BELT_Type,0x01,LOOPCH01,0x00,      0x02,0x00,  0x00,0x00,
		DEV_RGB_LIGHT_BELT_Type,0x01,LOOPCH02,0x00,      0x01,100,   0x00,0x00,
		DEV_RGB_LIGHT_BELT_Type,0x01,LOOPCH03,0x00,      0x01,100,  0x00,0x00,
		
		DEV_RGB_LIGHT_BELT_Type,0x02,LOOPCH01,0x00,      0x02,0x00,  0x00,0x00,
		DEV_RGB_LIGHT_BELT_Type,0x02,LOOPCH02,0x00,      0x02,0x00,  0x00,0x00,
		DEV_RGB_LIGHT_BELT_Type,0x02,LOOPCH03,0x00,      0x02,0x00,  0x00,0x00,
//		Dev_Host_Invalid, 0x00,    TVModeNo,0x00,   0x01,0x00, 0x00,0x00,
		
		DEV_C5MUSIC_Type, 0x01,      LOOPCH01,0x00,      0x21,40,  0x00,0x00,   //场景打开 指定播放词条 电视
//		DEV_C5MUSIC_Type, 0x01,      LOOPCH01,0x00,      0x22,0x01,  0x00,0x00,   //场景打开 指定播放词条  对于不同种类的背景音乐，执行方式有差异
				
//		Dev_NodeCurtain, 0x00,      LOOPCH01,0x00,    0x02,0x00,  0x00,0x00,        //控制窗帘
//		Dev_NodeCurtain, 0x01,      LOOPCH01,0x00,    0x02,0x00,  0x00,0x00,        //控制窗帘
		
	
		DEV_SWI_TYPE,     0x01,      LOOPCH10,0x00,      0x03,0x64,  0x00,0x00,
	};
	Dbg_Println(DBG_BIT_LOGIC_STATUS_bit,"Add Scene, ID:%d, Scene Name:%s",DevCoreBuf[0], DevName);
	//判断扩展设备个数
	BLV_DevAction_Add(DevCoreBuf, DevName, DevInputBuf, DevCondBuf, sizeof(DevCtrlBuf)/sizeof(Dev_Action_OutCfg), DevCtrlBuf);
}


void BLV_DevAction_C12ZhanTing_Swi1IN11_Add(void)
{
	uint8_t DevCoreBuf[] = //2字节
	{
		31,0x00,//场景编号
	};
	char DevName[] = "Swi1IN11";//32个字节
	
	uint8_t DevInputBuf[] = 
	{
/*  设备类型       设备地址   输入回路          输入类型            */		
		DEV_SWI_TYPE,   0x01,      LOOPCH11,0x00,   KeyPress, 0x00,       
	};
	
	uint8_t DevCondBuf[] =  //9个字节
	{
/*  动作启用不关联房态             插卡无关       其他条件 提示音               执行方式   */		
		0x00,                           0x00,   0x00,0x00,0x00,0x80,0x01,0x01,    LIGHT_SCENE_TWO,
	};
	
	
	uint8_t DevCtrlBuf[] = 
	{
/*  设备类型         设备地址     输出回路           设备输出    数据备用   */		
		
//		Dev_Host_Service,    0x00,      LOOPCH02,0x00,      0x02,0x00,  0x00,0x00,  //勿扰
		Dev_Host_Service,    0x00,      LOOPCH03,0x00,      0x01,0x00,  0x00,0x00,  //清理
		
		DEV_C5MUSIC_Type,  0x01,      LOOPCH01,0x00,    0x21,0x06,  0x00,0x00,   //场景打开 播放打开清理
		DEV_C5MUSIC_Type,  0x01,      LOOPCH01,0x00,    0x22,0x16,  0x00,0x00,   //场景关闭 播放关闭清理

//		Dev_Host_LVoutput,0x00,      LOOPCH02,0x00,      0x03,0x64,  0x00,0x00,   //清理反馈灯
		DEV_SWI_TYPE,     0x01,      LOOPCH11,0x00,      0x03,0x64,  0x00,0x00,
	};
	Dbg_Println(DBG_BIT_LOGIC_STATUS_bit,"Add Scene, ID:%d, Scene Name:%s",DevCoreBuf[0], DevName);
	//判断扩展设备个数
	BLV_DevAction_Add(DevCoreBuf, DevName, DevInputBuf, DevCondBuf, sizeof(DevCtrlBuf)/sizeof(Dev_Action_OutCfg), DevCtrlBuf);
}
void BLV_DevAction_C12ZhanTing_Swi1IN12_Add(void)
{
	uint8_t DevCoreBuf[] = //2字节
	{
		30,0x00,//场景编号
	};
	char DevName[] = "Swi1IN12";//32个字节
	
	uint8_t DevInputBuf[] = 
	{
/*  设备类型       设备地址   输入回路          输入类型            */		
		DEV_SWI_TYPE,   0x01,      LOOPCH12,0x00,   KeyPress, 0x00,       
	};
	
	uint8_t DevCondBuf[] =  //9个字节
	{
/*  动作启用不关联房态             插卡有效       其他条件提示音                执行方式   */		
		0x00,                           0x03,  0x00,0x00,0x00,0x80,0x01,0x01,    LIGHT_SCENE_TWO,
	};
	
	
	uint8_t DevCtrlBuf[] = 
	{
/*  设备类型         设备地址     输出回路           设备输出    数据备用   */		

//		Dev_Host_Service,    0x00,      LOOPCH03,0x00,      0x02,0x00,  0x00,0x00,  //清理
		Dev_Host_Service,    0x00,      LOOPCH02,0x00,      0x01,0x00,  0x00,0x00,  //勿扰
		
		DEV_C5MUSIC_Type,  0x01,      LOOPCH01,0x00,    0x21,0x09,  0x00,0x00,   //场景打开 播放打开勿扰
		DEV_C5MUSIC_Type,  0x01,      LOOPCH01,0x00,    0x22,0x17,  0x00,0x00,   //场景关闭 播放关闭勿扰
		
//		Dev_Host_LVoutput,0x00,      LOOPCH03,0x00,      0x03,0x64,  0x00,0x00,      //勿扰反馈灯
		DEV_SWI_TYPE,     0x01,      LOOPCH12,0x00,      0x03,0x64,  0x00,0x00,
		
	};
	Dbg_Println(DBG_BIT_LOGIC_STATUS_bit,"Add Scene, ID:%d, Scene Name:%s",DevCoreBuf[0], DevName);
	//判断扩展设备个数
	BLV_DevAction_Add(DevCoreBuf, DevName, DevInputBuf, DevCondBuf, sizeof(DevCtrlBuf)/sizeof(Dev_Action_OutCfg), DevCtrlBuf);
}
void BLV_DevAction_C12ZhanTing_Swi1IN13_Add(void)
{
	uint8_t DevCoreBuf[] = //2字节
	{
		0x00,0x00,//场景编号
	};
	char DevName[] = "Swi1IN13";//32个字节
	
	uint8_t DevInputBuf[] = 
	{
/*  设备类型       设备地址   输入回路          输入类型            */		
		DEV_SWI_TYPE,   0x01,      LOOPCH13,0x00,   KeyPress, 0x00,       
	};
	
	uint8_t DevCondBuf[] =  //9个字节
	{
/*  动作启用不关联房态             插卡有效       其他条件 提示音               执行方式   */		
		0x00,                           0x03,   0x00,0x00,0x00,0x80,0x01,0x01,    LIGHT_SCENE_TWO,
	};
	
	
	uint8_t DevCtrlBuf[] = 
	{
/*  设备类型         设备地址     输出回路           设备输出    数据备用   */		

//		Dev_Host_HVout,    0x00,      LOOPCH04,0x00,      0x01,0x00,  0x00,0x00,
		DEV_C12DIMMING_Type, 0x00,   LOOPCH01,0x00,      0x01,80,  0x00,0x00,
		
		DEV_C5MUSIC_Type, 0x01,      LOOPCH01,0x00,      0x21,0x01,  0x00,0x00,   //场景打开 指定播放词条  对于不同种类的背景音乐，执行方式有差异
		DEV_C5MUSIC_Type, 0x01,      LOOPCH01,0x00,      0x22,0x01,  0x00,0x00,   //场景打开 指定播放词条  对于不同种类的背景音乐，执行方式有差异
	
//		Dev_NodeCurtain, 0x00,      LOOPCH01,0x00,    0x01,0x00,  0x00,0x00,        //控制窗帘
//		Dev_NodeCurtain, 0x01,      LOOPCH01,0x00,    0x02,0x00,  0x00,0x00,        //控制窗帘	
		
		DEV_SWI_TYPE,     0x01,      LOOPCH13,0x00,      0x03,0x64,  0x00,0x00,
	};
	Dbg_Println(DBG_BIT_LOGIC_STATUS_bit,"Add Scene, ID:%d, Scene Name:%s",DevCoreBuf[0], DevName);
	//判断扩展设备个数
	BLV_DevAction_Add(DevCoreBuf, DevName, DevInputBuf, DevCondBuf, sizeof(DevCtrlBuf)/sizeof(Dev_Action_OutCfg), DevCtrlBuf);
}
void BLV_DevAction_C12ZhanTing_Swi1IN14_Add(void)
{
	uint8_t DevCoreBuf[] = //2字节
	{
		0x00,0x00,//场景编号
	};
	char DevName[] = "Swi1IN14";//32个字节
	
	uint8_t DevInputBuf[] = 
	{
/*  设备类型       设备地址   输入回路          输入类型            */		
		DEV_SWI_TYPE,   0x01,      LOOPCH14,0x00,   KeyPress, 0x00,       
	};
	
	uint8_t DevCondBuf[] =  //9个字节
	{
/*  动作启用不关联房态             插卡有效       其他条件 提示音               执行方式   */		
		0x00,                           0x03,   0x00,0x00,0x00,0x80,0x01,0x01,    LIGHT_SCENE_TWO,
	};
	
	
	uint8_t DevCtrlBuf[] = 
	{
/*  设备类型         设备地址     输出回路           设备输出    数据备用   */		

//		Dev_Host_HVout,    0x00,      LOOPCH04,0x00,      0x01,0x00,  0x00,0x00,
		DEV_C12DIMMING_Type, 0x00,   LOOPCH01,0x00,      0x01,80,  0x00,0x00,
		
		DEV_C5MUSIC_Type, 0x01,      LOOPCH01,0x00,      0x21,0x01,  0x00,0x00,   //场景打开 指定播放词条  对于不同种类的背景音乐，执行方式有差异
		DEV_C5MUSIC_Type, 0x01,      LOOPCH01,0x00,      0x22,0x01,  0x00,0x00,   //场景打开 指定播放词条  对于不同种类的背景音乐，执行方式有差异
	
//		Dev_NodeCurtain, 0x00,      LOOPCH01,0x00,    0x01,0x00,  0x00,0x00,        //控制窗帘
//		Dev_NodeCurtain, 0x01,      LOOPCH01,0x00,    0x02,0x00,  0x00,0x00,        //控制窗帘	
		
		DEV_SWI_TYPE,     0x01,      LOOPCH14,0x00,      0x03,0x64,  0x00,0x00,
	};
	Dbg_Println(DBG_BIT_LOGIC_STATUS_bit,"Add Scene, ID:%d, Scene Name:%s",DevCoreBuf[0], DevName);
	//判断扩展设备个数
	BLV_DevAction_Add(DevCoreBuf, DevName, DevInputBuf, DevCondBuf, sizeof(DevCtrlBuf)/sizeof(Dev_Action_OutCfg), DevCtrlBuf);
}

void BLV_DevAction_C12ZhanTing_Swi1IN15_Add(void)
{
	uint8_t DevCoreBuf[] = //2字节
	{
		0x00,0x00,//场景编号
	};
	char DevName[] = "Swi1IN15";//32个字节
	
	uint8_t DevInputBuf[] = 
	{
/*  设备类型       设备地址   输入回路          输入类型            */		
		DEV_SWI_TYPE,   0x01,      LOOPCH15,0x00,   KeyPress, 0x00,       
	};
	
	uint8_t DevCondBuf[] =  //9个字节
	{
/*  动作启用不关联房态             插卡有效       其他条件  提示音    起夜有关         执行方式   */		
		0x00,                           0x03,    0x00,0x00,0x00,0x80,0x01,0x01,    LIGHT_SCENE_TWO,
	};
	
	uint8_t DevCtrlBuf[] = 
	{
/*  设备类型         设备地址     输出回路           设备输出    数据备用   */		
		
//		Dev_Host_HVout,    0x00,      LOOPCH02,0x00,      0x02,0x00,  0x00,0x00,
//		Dev_Host_HVout,    0x00,      LOOPCH03,0x00,      0x02,0x00,  0x00,0x00,
//		Dev_Host_HVout,    0x00,      LOOPCH04,0x00,      0x02,0x00,  0x00,0x00,
//		Dev_Host_HVout,    0x00,      LOOPCH05,0x00,      0x02,0x00,  0x00,0x00,
//		Dev_Host_HVout,    0x00,      LOOPCH06,0x00,      0x01,0x00,  0x00,0x00,
		
//		Dev_Host_HVout,    0x00,      LOOPCH11,0x00,      0x01,0x00,  0x00,0x00,
//		Dev_Host_HVout,    0x00,      LOOPCH12,0x00,      0x01,0x00,  0x00,0x00,
//		DEV_RS485_PWM,     0x01,      LOOPCH01,0x00,      0x01,0x64,  0x00,0x00,
//		DEV_RS485_PWM,     0x01,      LOOPCH02,0x00,      0x01,0x64,  0x00,0x00,
		DEV_C12DIMMING_Type, 0x00,   LOOPCH04,0x00,      0x01,80,  0x00,0x00,
		DEV_C12DIMMING_Type, 0x00,   LOOPCH05,0x00,      0x01,80,  0x00,0x00,
		
		DEV_C5MUSIC_Type, 0x01,      LOOPCH01,0x00,      0x21,0x01,  0x00,0x00,   //场景打开 指定播放词条  明亮模式
		DEV_C5MUSIC_Type, 0x01,      LOOPCH01,0x00,      0x22,0x01,  0x00,0x00,   //场景打开 指定播放词条  对于不同种类的背景音乐，执行方式有差异
		
		DEV_SWI_TYPE,     0x01,      LOOPCH15,0x00,      0x03,0x64,  0x00,0x00,
	};
	Dbg_Println(DBG_BIT_LOGIC_STATUS_bit,"Add Scene, ID:%d, Scene Name:%s",DevCoreBuf[0], DevName);
	//判断扩展设备个数
	BLV_DevAction_Add(DevCoreBuf, DevName, DevInputBuf, DevCondBuf, sizeof(DevCtrlBuf)/sizeof(Dev_Action_OutCfg), DevCtrlBuf);
}
void BLV_DevAction_C12ZhanTing_Swi1IN16_Add(void)
{
	uint8_t DevCoreBuf[] = //2字节
	{
		0x00,0x00,//场景编号
	};
	char DevName[] = "Swi1IN16";//32个字节
	
	uint8_t DevInputBuf[] = 
	{
/*  设备类型       设备地址   输入回路          输入类型            */		
		DEV_SWI_TYPE,   0x01,      LOOPCH16,0x00,   KeyPress, 0x00,       
	};
	
	uint8_t DevCondBuf[] =  //9个字节
	{
/*  动作启用不关联房态             插卡有效       其他条件  提示音    起夜有关         执行方式   */		
		0x00,                           0x03,    0x00,0x00,0x00,0x80,0x01,0x01,    LIGHT_SCENE_TWO,
	};
	
	uint8_t DevCtrlBuf[] = 
	{
/*  设备类型         设备地址     输出回路           设备输出    数据备用   */		
		   
//		Dev_Host_HVout,    0x00,      LOOPCH11,0x00,      0x02,0x00,  0x00,0x00,
//		Dev_Host_HVout,    0x00,      LOOPCH12,0x00,      0x02,0x00,  0x00,0x00,
		DEV_C12DIMMING_Type, 0x00,   LOOPCH06,0x00,      0x01,80,  0x00,0x00,
		
//		DEV_RS485_PWM,     0x01,      LOOPCH01,0x00,      0x01,40,  0x00,0x00,
//		DEV_RS485_PWM,     0x01,      LOOPCH02,0x00,      0x01,40,  0x00,0x00,
		
		DEV_C5MUSIC_Type, 0x01,      LOOPCH01,0x00,      0x21,0x01,  0x00,0x00,   //场景打开 指定播放词条 
		DEV_C5MUSIC_Type, 0x01,      LOOPCH01,0x00,      0x22,0x01,  0x00,0x00,   //场景打开 指定播放词条  对于不同种类的背景音乐，执行方式有差异
		
		DEV_SWI_TYPE,     0x01,      LOOPCH16,0x00,      0x03,0x64,  0x00,0x00,
	};
	Dbg_Println(DBG_BIT_LOGIC_STATUS_bit,"Add Scene, ID:%d, Scene Name:%s",DevCoreBuf[0], DevName);
	//判断扩展设备个数
	BLV_DevAction_Add(DevCoreBuf, DevName, DevInputBuf, DevCondBuf, sizeof(DevCtrlBuf)/sizeof(Dev_Action_OutCfg), DevCtrlBuf);
}

void BLV_DevAction_C12ZhanTing_Swi1IN17_Add(void)
{
	uint8_t DevCoreBuf[] = //2字节
	{
		0x00,0x00,//场景编号
	};
	char DevName[] = "Swi1IN17";//32个字节
	
	uint8_t DevInputBuf[] = 
	{
/*  设备类型       设备地址   输入回路          输入类型            */		
		DEV_SWI_TYPE,   0x01,      LOOPCH17,0x00,   KeyPress, 0x00,       
	};
	
	uint8_t DevCondBuf[] =  //9个字节
	{
/*  动作启用不关联房态             插卡有效       其他条件  提示音    起夜有关         执行方式   */		
		0x00,                           0x03,    0x00,0x00,0x00,0x80,0x01,0x01,    LIGHT_SCENE_TWO,
	};
	
	uint8_t DevCtrlBuf[] = 
	{
/*  设备类型         设备地址     输出回路           设备输出    数据备用   */		
		   
		Dev_Host_HVout,    0x00,      LOOPCH04,0x00,      0x01,0x00,  0x00,0x00,
//		Dev_Host_HVout,    0x00,      LOOPCH12,0x00,      0x02,0x00,  0x00,0x00,
//		DEV_C12DIMMING_Type, 0x00,   LOOPCH06,0x00,      0x01,80,  0x00,0x00,
		
//		DEV_RS485_PWM,     0x01,      LOOPCH01,0x00,      0x01,40,  0x00,0x00,
//		DEV_RS485_PWM,     0x01,      LOOPCH02,0x00,      0x01,40,  0x00,0x00,
		
		DEV_C5MUSIC_Type, 0x01,      LOOPCH01,0x00,      0x21,0x01,  0x00,0x00,   //场景打开 指定播放词条 
		DEV_C5MUSIC_Type, 0x01,      LOOPCH01,0x00,      0x22,0x01,  0x00,0x00,   //场景打开 指定播放词条  对于不同种类的背景音乐，执行方式有差异
		
		DEV_SWI_TYPE,     0x01,      LOOPCH17,0x00,      0x03,0x64,  0x00,0x00,
	};
	Dbg_Println(DBG_BIT_LOGIC_STATUS_bit,"Add Scene, ID:%d, Scene Name:%s",DevCoreBuf[0], DevName);
	//判断扩展设备个数
	BLV_DevAction_Add(DevCoreBuf, DevName, DevInputBuf, DevCondBuf, sizeof(DevCtrlBuf)/sizeof(Dev_Action_OutCfg), DevCtrlBuf);
}

void BLV_DevAction_C12ZhanTing_Swi1IN18_Add(void)
{
	uint8_t DevCoreBuf[] = //2字节
	{
		0x00,0x00,//场景编号
	};
	char DevName[] = "Swi1IN18";//32个字节
	
	uint8_t DevInputBuf[] = 
	{
/*  设备类型       设备地址   输入回路          输入类型            */		
		DEV_SWI_TYPE,   0x01,      LOOPCH18,0x00,   KeyPress, 0x00,       
	};
	
	uint8_t DevCondBuf[] =  //9个字节
	{
/*  动作启用不关联房态             插卡有效       其他条件  提示音    起夜有关         执行方式   */		
		0x00,                           0x03,    0x00,0x00,0x00,0x80,0x01,0x01,    LIGHT_SCENE_TWO,
	};
	
	uint8_t DevCtrlBuf[] = 
	{
/*  设备类型         设备地址     输出回路           设备输出    数据备用   */		
		   
//		Dev_Host_HVout,    0x00,      LOOPCH11,0x00,      0x02,0x00,  0x00,0x00,
//		Dev_Host_HVout,    0x00,      LOOPCH12,0x00,      0x02,0x00,  0x00,0x00,
		DEV_C12DIMMING_Type, 0x00,   LOOPCH10,0x00,      0x01,80,  0x00,0x00,
		
//		DEV_RS485_PWM,     0x01,      LOOPCH01,0x00,      0x01,40,  0x00,0x00,
//		DEV_RS485_PWM,     0x01,      LOOPCH02,0x00,      0x01,40,  0x00,0x00,
		
		DEV_C5MUSIC_Type, 0x01,      LOOPCH01,0x00,      0x21,0x01,  0x00,0x00,   //场景打开 指定播放词条 
		DEV_C5MUSIC_Type, 0x01,      LOOPCH01,0x00,      0x22,0x01,  0x00,0x00,   //场景打开 指定播放词条  对于不同种类的背景音乐，执行方式有差异
		
		DEV_SWI_TYPE,     0x01,      LOOPCH18,0x00,      0x03,0x64,  0x00,0x00,
	};
	Dbg_Println(DBG_BIT_LOGIC_STATUS_bit,"Add Scene, ID:%d, Scene Name:%s",DevCoreBuf[0], DevName);
	//判断扩展设备个数
	BLV_DevAction_Add(DevCoreBuf, DevName, DevInputBuf, DevCondBuf, sizeof(DevCtrlBuf)/sizeof(Dev_Action_OutCfg), DevCtrlBuf);
}

void BLV_DevAction_C12ZhanTing_Swi1IN19_Add(void)
{
	uint8_t DevCoreBuf[] = //2字节
	{
		0x00,0x00,//场景编号
	};
	char DevName[] = "Swi1IN19";//32个字节
	
	uint8_t DevInputBuf[] = 
	{
/*  设备类型       设备地址   输入回路          输入类型            */		
		DEV_SWI_TYPE,   0x01,      LOOPCH19,0x00,   KeyPress, 0x00,       
	};
	
	uint8_t DevCondBuf[] =  //9个字节
	{
/*  动作启用不关联房态             插卡有效       其他条件  提示音    起夜有关         执行方式   */		
		0x00,                           0x03,    0x00,0x00,0x00,0x80,0x01,0x01,    LIGHT_SCENE_TWO,
	};
	
	uint8_t DevCtrlBuf[] = 
	{
/*  设备类型         设备地址     输出回路           设备输出    数据备用   */		
		   
		Dev_Host_HVout,    0x00,      LOOPCH03,0x00,      0x01,0x00,  0x00,0x00,
//		Dev_Host_HVout,    0x00,      LOOPCH12,0x00,      0x02,0x00,  0x00,0x00,
//		DEV_C12DIMMING_Type, 0x00,   LOOPCH10,0x00,      0x01,80,  0x00,0x00,
		
//		DEV_RS485_PWM,     0x01,      LOOPCH01,0x00,      0x01,40,  0x00,0x00,
//		DEV_RS485_PWM,     0x01,      LOOPCH02,0x00,      0x01,40,  0x00,0x00,
		
		DEV_C5MUSIC_Type, 0x01,      LOOPCH01,0x00,      0x21,0x01,  0x00,0x00,   //场景打开 指定播放词条 
		DEV_C5MUSIC_Type, 0x01,      LOOPCH01,0x00,      0x22,0x01,  0x00,0x00,   //场景打开 指定播放词条  对于不同种类的背景音乐，执行方式有差异
		
		DEV_SWI_TYPE,     0x01,      LOOPCH19,0x00,      0x03,0x64,  0x00,0x00,
	};
	Dbg_Println(DBG_BIT_LOGIC_STATUS_bit,"Add Scene, ID:%d, Scene Name:%s",DevCoreBuf[0], DevName);
	//判断扩展设备个数
	BLV_DevAction_Add(DevCoreBuf, DevName, DevInputBuf, DevCondBuf, sizeof(DevCtrlBuf)/sizeof(Dev_Action_OutCfg), DevCtrlBuf);
}

void BLV_DevAction_C12ZhanTing_Swi1IN20_Add(void)
{
	uint8_t DevCoreBuf[] = //2字节
	{
		0x00,0x00,//场景编号
	};
	char DevName[] = "Swi1IN20";//32个字节
	
	uint8_t DevInputBuf[] = 
	{
/*  设备类型       设备地址   输入回路          输入类型            */		
		DEV_SWI_TYPE,   0x01,      LOOPCH20,0x00,   KeyPress, 0x00,       
	};
	
	uint8_t DevCondBuf[] =  //9个字节
	{
/*  动作启用不关联房态             插卡有效       其他条件 提示音               执行方式   */		
		0x00,                           0x03,   0x00,0x00,0x00,0x80,0x01,0x01,    LIGHT_SCENE_TWO,
	};
	
	
	uint8_t DevCtrlBuf[] = 
	{
/*  设备类型         设备地址     输出回路           设备输出    数据备用   */		

//		Dev_Host_HVout,    0x00,      LOOPCH04,0x00,      0x01,0x00,  0x00,0x00,
//		DEV_C12DIMMING_Type, 0x00,   LOOPCH01,0x00,      0x01,80,  0x00,0x00,
		
		DEV_C5MUSIC_Type, 0x01,      LOOPCH01,0x00,      0x21,0x01,  0x00,0x00,   //场景打开 指定播放词条  对于不同种类的背景音乐，执行方式有差异
		DEV_C5MUSIC_Type, 0x01,      LOOPCH01,0x00,      0x22,0x01,  0x00,0x00,   //场景打开 指定播放词条  对于不同种类的背景音乐，执行方式有差异
	
		Dev_NodeCurtain, 0x00,      LOOPCH01,0x00,    0x01,0x00,  0x00,0x00,        //控制窗帘
//		Dev_NodeCurtain, 0x01,      LOOPCH01,0x00,    0x02,0x00,  0x00,0x00,        //控制窗帘	
		
		DEV_SWI_TYPE,     0x01,      LOOPCH20,0x00,      0x03,0x64,  0x00,0x00,
	};
	Dbg_Println(DBG_BIT_LOGIC_STATUS_bit,"Add Scene, ID:%d, Scene Name:%s",DevCoreBuf[0], DevName);
	//判断扩展设备个数
	BLV_DevAction_Add(DevCoreBuf, DevName, DevInputBuf, DevCondBuf, sizeof(DevCtrlBuf)/sizeof(Dev_Action_OutCfg), DevCtrlBuf);
}

void BLV_DevAction_C12ZhanTing_Swi1IN21_Add(void)
{
	uint8_t DevCoreBuf[] = //2字节
	{
		0x00,0x00,//场景编号
	};
	char DevName[] = "Swi1IN21";//32个字节
	
	uint8_t DevInputBuf[] = 
	{
/*  设备类型       设备地址   输入回路          输入类型            */		
		DEV_SWI_TYPE,   0x01,      LOOPCH21,0x00,   KeyPress, 0x00,       
	};
	
	uint8_t DevCondBuf[] =  //9个字节
	{
/*  动作启用不关联房态             插卡有效       其他条件 提示音               执行方式   */		
		0x00,                           0x03,   0x00,0x00,0x00,0x80,0x01,0x01,    LIGHT_SCENE_TWO,
	};
	
	
	uint8_t DevCtrlBuf[] = 
	{
/*  设备类型         设备地址     输出回路           设备输出    数据备用   */		

//		Dev_Host_HVout,    0x00,      LOOPCH04,0x00,      0x01,0x00,  0x00,0x00,
//		DEV_C12DIMMING_Type, 0x00,   LOOPCH01,0x00,      0x01,80,  0x00,0x00,
		
		DEV_C5MUSIC_Type, 0x01,      LOOPCH01,0x00,      0x21,0x01,  0x00,0x00,   //场景打开 指定播放词条  对于不同种类的背景音乐，执行方式有差异
		DEV_C5MUSIC_Type, 0x01,      LOOPCH01,0x00,      0x22,0x01,  0x00,0x00,   //场景打开 指定播放词条  对于不同种类的背景音乐，执行方式有差异
	
		Dev_NodeCurtain, 0x00,      LOOPCH01,0x00,    0x02,0x00,  0x00,0x00,        //控制窗帘
//		Dev_NodeCurtain, 0x01,      LOOPCH01,0x00,    0x02,0x00,  0x00,0x00,        //控制窗帘	
		
		DEV_SWI_TYPE,     0x01,      LOOPCH21,0x00,      0x03,0x64,  0x00,0x00,
	};
	Dbg_Println(DBG_BIT_LOGIC_STATUS_bit,"Add Scene, ID:%d, Scene Name:%s",DevCoreBuf[0], DevName);
	//判断扩展设备个数
	BLV_DevAction_Add(DevCoreBuf, DevName, DevInputBuf, DevCondBuf, sizeof(DevCtrlBuf)/sizeof(Dev_Action_OutCfg), DevCtrlBuf);
}

void BLV_DevAction_C12ZhanTing_Swi1IN22_Add(void)
{
	uint8_t DevCoreBuf[] = //2字节
	{
		0x00,0x00,//场景编号
	};
	char DevName[] = "Swi1IN22";//32个字节
	
	uint8_t DevInputBuf[] = 
	{
/*  设备类型       设备地址   输入回路          输入类型            */		
		DEV_SWI_TYPE,   0x01,      LOOPCH22,0x00,   KeyPress, 0x00,       
	};
	
	uint8_t DevCondBuf[] =  //9个字节
	{
/*  动作启用不关联房态             插卡有效       其他条件 提示音               执行方式   */		
		0x00,                           0x03,   0x00,0x00,0x00,0x80,0x01,0x01,    LIGHT_SCENE_TWO,
	};
	
	
	uint8_t DevCtrlBuf[] = 
	{
/*  设备类型         设备地址     输出回路           设备输出    数据备用   */		

//		Dev_Host_HVout,    0x00,      LOOPCH04,0x00,      0x01,0x00,  0x00,0x00,
//		DEV_C12DIMMING_Type, 0x00,   LOOPCH01,0x00,      0x01,80,  0x00,0x00,
		
		DEV_C5MUSIC_Type, 0x01,      LOOPCH01,0x00,      0x21,0x01,  0x00,0x00,   //场景打开 指定播放词条  对于不同种类的背景音乐，执行方式有差异
		DEV_C5MUSIC_Type, 0x01,      LOOPCH01,0x00,      0x22,0x01,  0x00,0x00,   //场景打开 指定播放词条  对于不同种类的背景音乐，执行方式有差异
	
//		Dev_NodeCurtain, 0x00,      LOOPCH01,0x00,    0x01,0x00,  0x00,0x00,        //控制窗帘
		Dev_NodeCurtain, 0x01,      LOOPCH01,0x00,    0x01,0x00,  0x00,0x00,        //控制窗帘	
		
		DEV_SWI_TYPE,     0x01,      LOOPCH22,0x00,      0x03,0x64,  0x00,0x00,
	};
	Dbg_Println(DBG_BIT_LOGIC_STATUS_bit,"Add Scene, ID:%d, Scene Name:%s",DevCoreBuf[0], DevName);
	//判断扩展设备个数
	BLV_DevAction_Add(DevCoreBuf, DevName, DevInputBuf, DevCondBuf, sizeof(DevCtrlBuf)/sizeof(Dev_Action_OutCfg), DevCtrlBuf);
}

void BLV_DevAction_C12ZhanTing_Swi1IN23_Add(void)
{
	uint8_t DevCoreBuf[] = //2字节
	{
		0x00,0x00,//场景编号
	};
	char DevName[] = "Swi1IN23";//32个字节
	
	uint8_t DevInputBuf[] = 
	{
/*  设备类型       设备地址   输入回路          输入类型            */		
		DEV_SWI_TYPE,   0x01,      LOOPCH23,0x00,   KeyPress, 0x00,       
	};
	
	uint8_t DevCondBuf[] =  //9个字节
	{
/*  动作启用不关联房态             插卡有效       其他条件 提示音               执行方式   */		
		0x00,                           0x03,   0x00,0x00,0x00,0x80,0x01,0x01,    LIGHT_SCENE_TWO,
	};
	
	
	uint8_t DevCtrlBuf[] = 
	{
/*  设备类型         设备地址     输出回路           设备输出    数据备用   */		

//		Dev_Host_HVout,    0x00,      LOOPCH04,0x00,      0x01,0x00,  0x00,0x00,
//		DEV_C12DIMMING_Type, 0x00,   LOOPCH01,0x00,      0x01,80,  0x00,0x00,
		
		DEV_C5MUSIC_Type, 0x01,      LOOPCH01,0x00,      0x21,0x01,  0x00,0x00,   //场景打开 指定播放词条  对于不同种类的背景音乐，执行方式有差异
		DEV_C5MUSIC_Type, 0x01,      LOOPCH01,0x00,      0x22,0x01,  0x00,0x00,   //场景打开 指定播放词条  对于不同种类的背景音乐，执行方式有差异
	
//		Dev_NodeCurtain, 0x00,      LOOPCH01,0x00,    0x02,0x00,  0x00,0x00,        //控制窗帘
		Dev_NodeCurtain, 0x01,      LOOPCH01,0x00,    0x02,0x00,  0x00,0x00,        //控制窗帘	
		
		DEV_SWI_TYPE,     0x01,      LOOPCH23,0x00,      0x03,0x64,  0x00,0x00,
	};
	Dbg_Println(DBG_BIT_LOGIC_STATUS_bit,"Add Scene, ID:%d, Scene Name:%s",DevCoreBuf[0], DevName);
	//判断扩展设备个数
	BLV_DevAction_Add(DevCoreBuf, DevName, DevInputBuf, DevCondBuf, sizeof(DevCtrlBuf)/sizeof(Dev_Action_OutCfg), DevCtrlBuf);
}

/*9号服务打开*/
void BLV_DevAction_C12ZhanTing_Service09Open_Add(void)
{
	uint8_t DevCoreBuf[] = //2字节
	{
		0x00,0x00,//场景编号
	};
	char DevName[] = "Service09Open";//32个字节
	
	uint8_t DevInputBuf[] = 
	{
/*   设备类型           设备地址   输入回路         输入类型               */		
		 Dev_Host_Service,   0x00,     LOOPCH09,0x00,   DEV_CTRLWAY_OPEN, 0x00,   
	};
	
	uint8_t DevCondBuf[] =  //9个字节
	{
/*  动作启用不关联房态             与卡无关       其他条件                执行方式   */		
		0x00,                           0x00,   0x00,0x00,0x00,0x00,0x00,0x00,    LIGHT_SCENE_ONE,
	};
	
	
	uint8_t DevCtrlBuf[] = 
	{
/*  设备类型         设备地址    输出回路          设备输出    数据备用   */		
//		Dev_Host_Service,  0x00,      LOOPCH03,0x00,    0x02,0x00,  0x00,0x00,        //关清理
//		DEV_SWI_TYPE,     0x02,      LOOPCH02,0x00,      0x01,0x64,  0x00,0x00,   //开
//		DEV_SWI_TYPE,     0x02,      LOOPCH02,0x00,      0x02,0x00,  0x01,0x02,   //关 
		  DEV_SWI_TYPE,     0x02,      LOOPCH02,0x00,      0x0E,0x64,  0x01,0x02,   //对应闪烁
//		Dev_Host_LVoutput,0x00,      LOOPCH03,0x00,      0x01,0x00,  0x00,0x00,   //打开勿扰反馈灯
	};
	Dbg_Println(DBG_BIT_LOGIC_STATUS_bit,"Add Scene, ID:%d, Scene Name:%s",DevCoreBuf[0], DevName);
	//判断扩展设备个数
	BLV_DevAction_Add(DevCoreBuf, DevName, DevInputBuf, DevCondBuf, sizeof(DevCtrlBuf)/sizeof(Dev_Action_OutCfg), DevCtrlBuf);
}
/*9号服务关闭*/
void BLV_DevAction_C12ZhanTing_Service09Close_Add(void)
{
	uint8_t DevCoreBuf[] = //2字节
	{
		0x00,0x00,//场景编号
	};
	char DevName[] = "Service09Close";//32个字节
	
	uint8_t DevInputBuf[] = 
	{
/*   设备类型           设备地址   输入回路         输入类型               */		
		 Dev_Host_Service,   0x00,     LOOPCH09,0x00,   DEV_CTRLWAY_CLOSE, 0x00,   
	};
	
	uint8_t DevCondBuf[] =  //9个字节
	{
/*  动作启用不关联房态             与卡无关       其他条件                执行方式   */		
		0x00,                           0x00,   0x00,0x00,0x00,0x00,0x00,0x00,    LIGHT_SCENE_ONE,
	};
	
	
	uint8_t DevCtrlBuf[] = 
	{
/*  设备类型         设备地址    输出回路          设备输出    数据备用   */		
		DEV_SWI_TYPE,     0x02,      LOOPCH02,0x00,      0x02,0x00,  0x01,0x02,   //关
//		Dev_Host_LVoutput,0x00,      LOOPCH03,0x00,      0x02,0x00,  0x00,0x00,   //关闭勿扰反馈灯
	};
	Dbg_Println(DBG_BIT_LOGIC_STATUS_bit,"Add Scene, ID:%d, Scene Name:%s",DevCoreBuf[0], DevName);
	//判断扩展设备个数
	BLV_DevAction_Add(DevCoreBuf, DevName, DevInputBuf, DevCondBuf, sizeof(DevCtrlBuf)/sizeof(Dev_Action_OutCfg), DevCtrlBuf);
}

void BLV_DevAction_C12ZhanTing_Swi2IN02_Add(void)
{
	uint8_t DevCoreBuf[] = //2字节
	{
		0x00,0x00,//场景编号
	};
	char DevName[] = "Swi2IN02";//32个字节
	
	uint8_t DevInputBuf[] = 
	{
/*  设备类型       设备地址   输入回路          输入类型            */		
		DEV_SWI_TYPE,   0x02,      LOOPCH02,0x00,   KeyPress, 0x00,       
	};
	
	uint8_t DevCondBuf[] =  //9个字节
	{
		/*  动作启用不关联房态                  退房无效  服务9关联 提示音               执行方式   */		
		0x00,                           0x00,   0x80,0x02,0x05,0x80,0x01,0x00,    LIGHT_SCENE_ONE,
	};
	
	
	uint8_t DevCtrlBuf[] = 
	{
/*  设备类型         设备地址     输出回路           设备输出    数据备用   */		

//		Dev_Host_HVout,    0x00,      LOOPCH06,0x00,      0x01,0x00,  0x00,0x00,
//		Dev_Host_HVout,    0x00,      LOOPCH04,0x00,      0x01,0x00,  0x00,0x00,
		Dev_Host_Service,  0x00,      LOOPCH09,0x00,    0x01,0x00,  0x00,0x00,        //控制服务9开
		Dev_Host_Service,  0x00,      LOOPCH09,0x00,    0x02,0x00,  0x0A,0x02,        //控制服务9关
//		Dev_Host_Service,  0x00,      LOOPCH06,0x00,    0x02,0x00,  0x0A,0x02,        //控制服务6关
		
		DEV_C5MUSIC_Type, 0x01,      LOOPCH01,0x00,      0x21,24,  0x00,0x00,   //场景打开 指定播放词条  对于不同种类的背景音乐，执行方式有差异
		
		DEV_SWI_TYPE,     0x02,      LOOPCH02,0x00,      0x0E,0x64,  0x01,0x02,   //对应闪烁0x0E

//		DEV_C5MUSIC_Type, 0x01,      LOOPCH01,0x00,      0x21,18,  0x00,0x00,   //场景打开 指定播放词条  对于不同种类的背景音乐，执行方式有差异
//		DEV_C5MUSIC_Type, 0x01,      LOOPCH01,0x00,      0x22,19,  0x00,0x00,   //场景打开 指定播放词条  对于不同种类的背景音乐，执行方式有差异
		
//		DEV_RS485_STRIP,  0x01,      LOOPCH01,0x00,      0x01,0x64,  0x00,0x00,
		
//		DEV_SWI_TYPE,     0x02,      LOOPCH02,0x00,      0x03,0x64,  0x00,0x00,
	};
	Dbg_Println(DBG_BIT_LOGIC_STATUS_bit,"Add Scene, ID:%d, Scene Name:%s",DevCoreBuf[0], DevName);
	//判断扩展设备个数
	BLV_DevAction_Add(DevCoreBuf, DevName, DevInputBuf, DevCondBuf, sizeof(DevCtrlBuf)/sizeof(Dev_Action_OutCfg), DevCtrlBuf);
}


void BLV_DevAction_C12ZhanTing_Swi2IN02Open_Add(void)
{
	uint8_t DevCoreBuf[] = //2字节
	{
		0x00,0x00,//场景编号
	};
	char DevName[] = "Swi2IN02Open";//32个字节
	
	uint8_t DevInputBuf[] = 
	{
/*  设备类型       设备地址   输入回路          输入类型            */		
		DEV_SWI_TYPE,   0x02,      LOOPCH02,0x00,   KeyPress, 0x00,       
	};
	
	uint8_t DevCondBuf[] =  //9个字节
	{
		/*  动作启用不关联房态                  退房关联 服务9关联 提示音               执行方式   */		
		0x00,                           0x00,   0x80,0x02,0x03,     0x80,0x01,0x00,    LIGHT_SCENE_ONE,
	};
	
	
	uint8_t DevCtrlBuf[] = 
	{
/*  设备类型         设备地址     输出回路           设备输出    数据备用   */		

//		Dev_Host_HVout,    0x00,      LOOPCH06,0x00,      0x01,0x00,  0x00,0x00,
//		Dev_Host_HVout,    0x00,      LOOPCH04,0x00,      0x01,0x00,  0x00,0x00,
		Dev_Host_Service,  0x00,      LOOPCH06,0x00,    0x01,0x00,  0x00,0x00,        //控制退房服务
		
		DEV_C5MUSIC_Type, 0x01,      LOOPCH01,0x00,      0x21,18,  0x00,0x00,   //场景打开 指定播放词条  对于不同种类的背景音乐，执行方式有差异
//		DEV_C5MUSIC_Type, 0x01,      LOOPCH01,0x00,      0x22,19,  0x00,0x00,   //场景打开 指定播放词条  对于不同种类的背景音乐，执行方式有差异
		
//		DEV_RS485_STRIP,  0x01,      LOOPCH01,0x00,      0x01,0x64,  0x00,0x00,
		
		DEV_SWI_TYPE,     0x02,      LOOPCH02,0x00,      0x03,0x64,  0x00,0x00,
	};
	Dbg_Println(DBG_BIT_LOGIC_STATUS_bit,"Add Scene, ID:%d, Scene Name:%s",DevCoreBuf[0], DevName);
	//判断扩展设备个数
	BLV_DevAction_Add(DevCoreBuf, DevName, DevInputBuf, DevCondBuf, sizeof(DevCtrlBuf)/sizeof(Dev_Action_OutCfg), DevCtrlBuf);
}

void BLV_DevAction_C12ZhanTing_Swi2IN02Close_Add(void)
{
	uint8_t DevCoreBuf[] = //2字节
	{
		0x00,0x00,//场景编号
	};
	char DevName[] = "Swi2IN02Close";//32个字节
	
	uint8_t DevInputBuf[] = 
	{
/*  设备类型       设备地址   输入回路          输入类型            */		
		DEV_SWI_TYPE,   0x02,      LOOPCH02,0x00,   KeyPress, 0x00,       
	};
	
	uint8_t DevCondBuf[] =  //9个字节
	{
		/*  动作启用不关联房态                  退房关联 服务不关联 提示音               执行方式   */		
		0x00,                           0x00,   0x80,0x01,0x00,     0x80,0x01,0x00,    LIGHT_SCENE_ONE,
	};
	
	
	uint8_t DevCtrlBuf[] = 
	{
/*  设备类型         设备地址     输出回路           设备输出    数据备用   */		

//		Dev_Host_HVout,    0x00,      LOOPCH06,0x00,      0x01,0x00,  0x00,0x00,
//		Dev_Host_HVout,    0x00,      LOOPCH04,0x00,      0x01,0x00,  0x00,0x00,
		Dev_Host_Service,  0x00,      LOOPCH06,0x00,    0x02,0x00,  0x00,0x00,        //控制退房服务
		
//		DEV_C5MUSIC_Type, 0x01,      LOOPCH01,0x00,      0x21,18,  0x00,0x00,   //场景打开 指定播放词条  对于不同种类的背景音乐，执行方式有差异
		DEV_C5MUSIC_Type, 0x01,      LOOPCH01,0x00,      0x21,19,  0x00,0x00,   //场景打开 指定播放词条  对于不同种类的背景音乐，执行方式有差异
		
//		DEV_RS485_STRIP,  0x01,      LOOPCH01,0x00,      0x01,0x64,  0x00,0x00,
		
//		DEV_SWI_TYPE,     0x02,      LOOPCH02,0x00,      0x03,0x64,  0x00,0x00,
	};
	Dbg_Println(DBG_BIT_LOGIC_STATUS_bit,"Add Scene, ID:%d, Scene Name:%s",DevCoreBuf[0], DevName);
	//判断扩展设备个数
	BLV_DevAction_Add(DevCoreBuf, DevName, DevInputBuf, DevCondBuf, sizeof(DevCtrlBuf)/sizeof(Dev_Action_OutCfg), DevCtrlBuf);
}


void BLV_DevAction_C12ZhanTing_Swi2IN04_Add(void)
{
	uint8_t DevCoreBuf[] = //2字节
	{
		31,0x00,//场景编号
	};
	char DevName[] = "Swi2IN04";//32个字节
	
	uint8_t DevInputBuf[] = 
	{
/*  设备类型       设备地址   输入回路          输入类型            */		
		DEV_SWI_TYPE,   0x02,      LOOPCH04,0x00,   KeyPress, 0x00,       
	};
	
	uint8_t DevCondBuf[] =  //9个字节
	{
/*  动作启用不关联房态             插卡无关       其他条件 提示音               执行方式   */		
		0x00,                           0x00,   0x00,0x00,0x00,0x80,0x01,0x00,    LIGHT_SCENE_TWO,
	};
	
	
	uint8_t DevCtrlBuf[] = 
	{
/*  设备类型         设备地址     输出回路           设备输出    数据备用   */		
		
//		Dev_Host_Service,    0x00,      LOOPCH02,0x00,      0x02,0x00,  0x00,0x00,  //勿扰
		Dev_Host_Service,    0x00,      LOOPCH03,0x00,      0x01,0x00,  0x00,0x00,  //清理
		
		DEV_C5MUSIC_Type,  0x01,      LOOPCH01,0x00,    0x21,0x06,  0x00,0x00,   //场景打开 播放打开清理
		DEV_C5MUSIC_Type,  0x01,      LOOPCH01,0x00,    0x22,0x16,  0x00,0x00,   //场景关闭 播放关闭清理

//		Dev_Host_LVoutput,0x00,      LOOPCH02,0x00,      0x03,0x64,  0x00,0x00,   //清理反馈灯
		DEV_SWI_TYPE,     0x02,      LOOPCH04,0x00,      0x03,0x64,  0x00,0x00,
	};
	Dbg_Println(DBG_BIT_LOGIC_STATUS_bit,"Add Scene, ID:%d, Scene Name:%s",DevCoreBuf[0], DevName);
	//判断扩展设备个数
	BLV_DevAction_Add(DevCoreBuf, DevName, DevInputBuf, DevCondBuf, sizeof(DevCtrlBuf)/sizeof(Dev_Action_OutCfg), DevCtrlBuf);
}

void BLV_DevAction_C12ZhanTing_Swi2IN06_Add(void)
{
	uint8_t DevCoreBuf[] = //2字节
	{
		30,0x00,//场景编号
	};
	char DevName[] = "Swi2IN06";//32个字节
	
	uint8_t DevInputBuf[] = 
	{
/*  设备类型       设备地址   输入回路          输入类型            */		
		DEV_SWI_TYPE,   0x02,      LOOPCH06,0x00,   KeyPress, 0x00,       
	};
	
	uint8_t DevCondBuf[] =  //9个字节
	{
/*  动作启用不关联房态             插卡有效       其他条件提示音                执行方式   */		
		0x00,                           0x03,  0x00,0x00,0x00,0x80,0x01,0x00,    LIGHT_SCENE_TWO,
	};
	
	
	uint8_t DevCtrlBuf[] = 
	{
/*  设备类型         设备地址     输出回路           设备输出    数据备用   */		

//		Dev_Host_Service,    0x00,      LOOPCH03,0x00,      0x02,0x00,  0x00,0x00,  //清理
		Dev_Host_Service,    0x00,      LOOPCH02,0x00,      0x01,0x00,  0x00,0x00,  //勿扰
		
		DEV_C5MUSIC_Type,  0x01,      LOOPCH01,0x00,    0x21,0x09,  0x00,0x00,   //场景打开 播放打开勿扰
		DEV_C5MUSIC_Type,  0x01,      LOOPCH01,0x00,    0x22,0x17,  0x00,0x00,   //场景关闭 播放关闭勿扰
		
//		Dev_Host_LVoutput,0x00,      LOOPCH03,0x00,      0x03,0x64,  0x00,0x00,      //勿扰反馈灯
		DEV_SWI_TYPE,     0x02,      LOOPCH06,0x00,      0x03,0x64,  0x00,0x00,
		
	};
	Dbg_Println(DBG_BIT_LOGIC_STATUS_bit,"Add Scene, ID:%d, Scene Name:%s",DevCoreBuf[0], DevName);
	//判断扩展设备个数
	BLV_DevAction_Add(DevCoreBuf, DevName, DevInputBuf, DevCondBuf, sizeof(DevCtrlBuf)/sizeof(Dev_Action_OutCfg), DevCtrlBuf);
}




void BLV_DevAction_C12ZhanTing_Swi3IN02_Add(void)
{
	uint8_t DevCoreBuf[] = //2字节
	{
		0x00,0x00,//场景编号
	};
	char DevName[] = "Swi3IN02";//32个字节
	
	uint8_t DevInputBuf[] = 
	{
/*  设备类型       设备地址   输入回路          输入类型            */		
		DEV_SWI_TYPE,   0x03,      LOOPCH02,0x00,   KeyPress, 0x00,       
	};
	
	uint8_t DevCondBuf[] =  //9个字节
	{
/*  动作启用不关联房态             插卡有效       其他条件  提示音    起夜有关         执行方式   */		
		0x00,                           0x03,    0x00,0x00,0x00,0x80,0x01,0x01,    LIGHT_SCENE_TWO,
	};
	
	uint8_t DevCtrlBuf[] = 
	{
/*  设备类型         设备地址     输出回路           设备输出    数据备用   */		

//		Dev_Host_HVout,    0x00,      LOOPCH11,0x00,      0x02,0x00,  0x00,0x00,
//		Dev_Host_HVout,    0x00,      LOOPCH12,0x00,      0x02,0x00,  0x00,0x00,
//		DEV_RS485_PWM,     0x01,      LOOPCH01,0x00,      0x02,0x00,  0x00,0x00,
//		DEV_RS485_PWM,     0x01,      LOOPCH02,0x00,      0x02,0x00,  0x00,0x00,
		DEV_C12DIMMING_Type, 0x00,   LOOPCH01,0x00,      0x01,80,  0x00,0x00,
		
		DEV_C5MUSIC_Type, 0x01,      LOOPCH01,0x00,      0x21,0x01,  0x00,0x00,   //场景打开 指定播放词条 
		DEV_C5MUSIC_Type, 0x01,      LOOPCH01,0x00,      0x22,0x01,  0x00,0x00,   //场景打开 指定播放词条  对于不同种类的背景音乐，执行方式有差异
		
		DEV_SWI_TYPE,     0x03,      LOOPCH02,0x00,      0x03,0x64,  0x00,0x00,
	};
	Dbg_Println(DBG_BIT_LOGIC_STATUS_bit,"Add Scene, ID:%d, Scene Name:%s",DevCoreBuf[0], DevName);
	//判断扩展设备个数
	BLV_DevAction_Add(DevCoreBuf, DevName, DevInputBuf, DevCondBuf, sizeof(DevCtrlBuf)/sizeof(Dev_Action_OutCfg), DevCtrlBuf);
}

void BLV_DevAction_C12ZhanTing_Swi3IN04_Add(void)
{
	uint8_t DevCoreBuf[] = //2字节
	{
		WelcomeModeNo,0x00,//场景编号
	};
	char DevName[] = "Swi3IN04";//32个字节
	
	uint8_t DevInputBuf[] = 
	{
/*  设备类型       设备地址   输入回路          输入类型            */		
		DEV_SWI_TYPE,   0x03,      LOOPCH04,0x00,   KeyPress, 0x00,       
	};
	
	uint8_t DevCondBuf[] =  //9个字节
	{
/*  动作锁定不关联房态             插卡有效       其他条件  提示音    起夜有关         执行方式   */		
		0x01,                           0x03,    0x00,0x00,0x00,0x80,0x01,0x01,    LIGHT_SCENE_ONE,
	};
	
	uint8_t DevCtrlBuf[] = 
	{
/*  设备类型         设备地址     输出回路           设备输出    数据备用   */		
		
//		Dev_Host_HVout,    0x00,      LOOPCH11,0x00,      0x02,0x00,  0x00,0x00,
		Dev_Host_HVout,    0x00,      LOOPCH02,0x00,      0x02,0x00,  0x00,0x00,
		DEV_C12DIMMING_Type, 0x00,   LOOPCH01,0x00,      0x01,100,  0x00,0x00,
		DEV_C12DIMMING_Type, 0x00,   LOOPCH03,0x00,      0x01,100,  0x00,0x00,
		DEV_C12DIMMING_Type, 0x00,   LOOPCH04,0x00,      0x01,50,  0x00,0x00,
		DEV_C12DIMMING_Type, 0x00,   LOOPCH05,0x00,      0x01,50,  0x00,0x00,
		DEV_C12DIMMING_Type, 0x00,   LOOPCH06,0x00,      0x01,100,  0x00,0x00,
		
		DEV_RGB_LIGHT_BELT_Type,0x01,LOOPCH01,0x00,      0x01,100,  0x00,0x00,
		DEV_RGB_LIGHT_BELT_Type,0x01,LOOPCH02,0x00,      0x01,100,  0x00,0x00,
		DEV_RGB_LIGHT_BELT_Type,0x01,LOOPCH03,0x00,      0x01,100,  0x00,0x00,
		
		DEV_RGB_LIGHT_BELT_Type,0x02,LOOPCH01,0x00,      0x01,100,  0x00,0x00,
		DEV_RGB_LIGHT_BELT_Type,0x02,LOOPCH02,0x00,      0x01,100,  0x00,0x00,
		DEV_RGB_LIGHT_BELT_Type,0x02,LOOPCH03,0x00,      0x01,100,  0x00,0x00,
		DEV_C5MUSIC_Type, 0x01,      LOOPCH01,0x00,      0x00,0x02,  0x00,0x00,    //音乐暂停
		
//		DEV_C5MUSIC_Type, 0x01,      LOOPCH01,0x00,      0x21,29,  0x00,0x00,   //场景打开 指定播放词条 欢迎
//		DEV_C5MUSIC_Type, 0x01,      LOOPCH01,0x00,      0x22,16,  0x00,0x00,   //场景打开 指定播放词条 已关闭提示音
		
//		DEV_SWI_TYPE,     0x03,      LOOPCH04,0x00,      0x03,0x64,  0x00,0x00,
	};
	Dbg_Println(DBG_BIT_LOGIC_STATUS_bit,"Add Scene, ID:%d, Scene Name:%s",DevCoreBuf[0], DevName);
	//判断扩展设备个数
	BLV_DevAction_Add(DevCoreBuf, DevName, DevInputBuf, DevCondBuf, sizeof(DevCtrlBuf)/sizeof(Dev_Action_OutCfg), DevCtrlBuf);
}
void BLV_DevAction_C12ZhanTing_Swi3IN04L_Add(void)
{
	uint8_t DevCoreBuf[] = //2字节
	{
		00,0x00,//场景编号
	};
	char DevName[] = "Swi3IN04L";//32个字节
	
	uint8_t DevInputBuf[] = 
	{
/*  设备类型       设备地址   输入回路          输入类型            */		
		DEV_SWI_TYPE,   0x03,      LOOPCH04,0x00,   KeyPress, 0x00,       
	};
	
	uint8_t DevCondBuf[] =  //9个字节
	{
/*  动作启用不关联房态             插卡有效       其他条件  提示音    起夜有关         执行方式   */		
		0x00,                           0x03,    0x00,0x00,0x00,0x80,0x01,0x01,    LIGHT_SCENE_ONE,
	};
	
	uint8_t DevCtrlBuf[] = 
	{
/*  设备类型         设备地址     输出回路           设备输出    数据备用   */		
		
//		Dev_Host_HVout,    0x00,      LOOPCH11,0x00,      0x02,0x00,  0x00,0x00,
		Dev_Host_HVout,    0x00,      LOOPCH02,0x00,      0x02,0x00,  0x00,0x00,
		DEV_C12DIMMING_Type, 0x00,   LOOPCH01,0x00,      0x01,100,  0x00,0x00,
		DEV_C12DIMMING_Type, 0x00,   LOOPCH03,0x00,      0x01,100,  0x00,0x00,
		DEV_C12DIMMING_Type, 0x00,   LOOPCH04,0x00,      0x01,50,  0x00,0x00,
		DEV_C12DIMMING_Type, 0x00,   LOOPCH05,0x00,      0x01,50,  0x00,0x00,
		DEV_C12DIMMING_Type, 0x00,   LOOPCH06,0x00,      0x01,100,  0x00,0x00,
		
		DEV_RGB_LIGHT_BELT_Type,0x01,LOOPCH01,0x00,      0x01,100,  0x00,0x00,
		DEV_RGB_LIGHT_BELT_Type,0x01,LOOPCH02,0x00,      0x01,100,  0x00,0x00,
		DEV_RGB_LIGHT_BELT_Type,0x01,LOOPCH03,0x00,      0x01,100,  0x00,0x00,
		
		DEV_RGB_LIGHT_BELT_Type,0x02,LOOPCH01,0x00,      0x01,100,  0x00,0x00,
		DEV_RGB_LIGHT_BELT_Type,0x02,LOOPCH02,0x00,      0x01,100,  0x00,0x00,
		DEV_RGB_LIGHT_BELT_Type,0x02,LOOPCH03,0x00,      0x01,100,  0x00,0x00,
		
//		Dev_Host_Invalid, 0x00,    WelcomeModeNo,0x00,   0x01,0x00, 0x00,0x00,
		DEV_C5MUSIC_Type, 0x01,      LOOPCH01,0x00,      0x21,29,  0x00,0x00,   //场景打开 指定播放词条 欢迎
//		DEV_C5MUSIC_Type, 0x01,      LOOPCH01,0x00,      0x22,16,  0x00,0x00,   //场景打开 指定播放词条 已关闭提示音
		
		DEV_SWI_TYPE,     0x03,      LOOPCH04,0x00,      0x03,0x64,  0x00,0x00,
	};
	Dbg_Println(DBG_BIT_LOGIC_STATUS_bit,"Add Scene, ID:%d, Scene Name:%s",DevCoreBuf[0], DevName);
	//判断扩展设备个数
	BLV_DevAction_Add(DevCoreBuf, DevName, DevInputBuf, DevCondBuf, sizeof(DevCtrlBuf)/sizeof(Dev_Action_OutCfg), DevCtrlBuf);
}

void BLV_DevAction_C12ZhanTing_Swi3IN06_Add(void)
{
	uint8_t DevCoreBuf[] = //2字节
	{
		ReceptionModeNo,0x00,//场景编号
	};
	char DevName[] = "Swi3IN06";//32个字节
	
	uint8_t DevInputBuf[] = 
	{
/*  设备类型       设备地址   输入回路          输入类型            */		
		DEV_SWI_TYPE,   0x03,      LOOPCH06,0x00,   KeyPress, 0x00,       
	};
	
	uint8_t DevCondBuf[] =  //9个字节
	{
/*  动作锁定不关联房态             插卡有效       其他条件  提示音    起夜有关         执行方式   */		
		0x01,                           0x03,    0x00,0x00,0x00,0x80,0x01,0x01,    LIGHT_SCENE_ONE,
	};
	
	uint8_t DevCtrlBuf[] = 
	{
/*  设备类型         设备地址     输出回路           设备输出    数据备用   */		
		
//		Dev_Host_HVout,    0x00,      LOOPCH11,0x00,      0x02,0x00,  0x00,0x00,
		Dev_Host_HVout,    0x00,      LOOPCH02,0x00,      0x02,0x00,  0x00,0x00,
		DEV_C12DIMMING_Type, 0x00,   LOOPCH01,0x00,      0x01,80,  0x00,0x00,
		DEV_C12DIMMING_Type, 0x00,   LOOPCH03,0x00,      0x01,80,  0x00,0x00,
		DEV_C12DIMMING_Type, 0x00,   LOOPCH04,0x00,      0x02,0,  0x00,0x00,
		DEV_C12DIMMING_Type, 0x00,   LOOPCH05,0x00,      0x02,0,  0x00,0x00,
		DEV_C12DIMMING_Type, 0x00,   LOOPCH06,0x00,      0x01,80,  0x00,0x00,
		
		DEV_RGB_LIGHT_BELT_Type,0x01,LOOPCH01,0x00,      0x01,100,  0x00,0x00,
		DEV_RGB_LIGHT_BELT_Type,0x01,LOOPCH02,0x00,      0x01,100,  0x00,0x00,
		DEV_RGB_LIGHT_BELT_Type,0x01,LOOPCH03,0x00,      0x02,0,  0x00,0x00,
		
		DEV_RGB_LIGHT_BELT_Type,0x02,LOOPCH01,0x00,      0x01,100,  0x00,0x00,
		DEV_RGB_LIGHT_BELT_Type,0x02,LOOPCH02,0x00,      0x01,100,  0x00,0x00,
		DEV_RGB_LIGHT_BELT_Type,0x02,LOOPCH03,0x00,      0x02,0,  0x00,0x00,
		
		Dev_NodeCurtain, 0x00,      LOOPCH01,0x00,    0x01,0x00,  0x00,0x00,        //控制窗帘
		Dev_NodeCurtain, 0x01,      LOOPCH01,0x00,    0x02,0x00,  0x00,0x00,        //控制窗帘
		DEV_C5MUSIC_Type, 0x01,      LOOPCH01,0x00,      0x00,0x02,  0x00,0x00,    //音乐暂停
		
//		DEV_C5MUSIC_Type, 0x01,      LOOPCH01,0x00,      0x21,3,  0x00,0x00,   //场景打开 指定播放词条 会客
//		DEV_C5MUSIC_Type, 0x01,      LOOPCH01,0x00,      0x22,16,  0x00,0x00,   //场景打开 指定播放词条 已关闭提示音
		
//		DEV_SWI_TYPE,     0x03,      LOOPCH06,0x00,      0x03,0x64,  0x00,0x00,
	};
	Dbg_Println(DBG_BIT_LOGIC_STATUS_bit,"Add Scene, ID:%d, Scene Name:%s",DevCoreBuf[0], DevName);
	//判断扩展设备个数
	BLV_DevAction_Add(DevCoreBuf, DevName, DevInputBuf, DevCondBuf, sizeof(DevCtrlBuf)/sizeof(Dev_Action_OutCfg), DevCtrlBuf);
}

void BLV_DevAction_C12ZhanTing_Swi3IN06L_Add(void)
{
	uint8_t DevCoreBuf[] = //2字节
	{
		00,0x00,//场景编号
	};
	char DevName[] = "Swi3IN06L";//32个字节
	
	uint8_t DevInputBuf[] = 
	{
/*  设备类型       设备地址   输入回路          输入类型            */		
		DEV_SWI_TYPE,   0x03,      LOOPCH06,0x00,   KeyPress, 0x00,       
	};
	
	uint8_t DevCondBuf[] =  //9个字节
	{
/*  动作正常不关联房态             插卡有效       其他条件  提示音    起夜有关         执行方式   */		
		0x00,                           0x03,    0x00,0x00,0x00,0x80,0x01,0x01,    LIGHT_SCENE_ONE,
	};
	
	uint8_t DevCtrlBuf[] = 
	{
/*  设备类型         设备地址     输出回路           设备输出    数据备用   */		
		
//		Dev_Host_HVout,    0x00,      LOOPCH11,0x00,      0x02,0x00,  0x00,0x00,
		Dev_Host_HVout,    0x00,      LOOPCH02,0x00,      0x02,0x00,  0x00,0x00,
		DEV_C12DIMMING_Type, 0x00,   LOOPCH01,0x00,      0x01,80,  0x00,0x00,
		DEV_C12DIMMING_Type, 0x00,   LOOPCH03,0x00,      0x01,80,  0x00,0x00,
		DEV_C12DIMMING_Type, 0x00,   LOOPCH04,0x00,      0x02,0,  0x00,0x00,
		DEV_C12DIMMING_Type, 0x00,   LOOPCH05,0x00,      0x02,0,  0x00,0x00,
		DEV_C12DIMMING_Type, 0x00,   LOOPCH06,0x00,      0x01,80,  0x00,0x00,
		
		DEV_RGB_LIGHT_BELT_Type,0x01,LOOPCH01,0x00,      0x01,100,  0x00,0x00,
		DEV_RGB_LIGHT_BELT_Type,0x01,LOOPCH02,0x00,      0x01,100,  0x00,0x00,
		DEV_RGB_LIGHT_BELT_Type,0x01,LOOPCH03,0x00,      0x02,0,  0x00,0x00,
		
		DEV_RGB_LIGHT_BELT_Type,0x02,LOOPCH01,0x00,      0x01,100,  0x00,0x00,
		DEV_RGB_LIGHT_BELT_Type,0x02,LOOPCH02,0x00,      0x01,100,  0x00,0x00,
		DEV_RGB_LIGHT_BELT_Type,0x02,LOOPCH03,0x00,      0x02,0,  0x00,0x00,
		
		Dev_NodeCurtain, 0x00,      LOOPCH01,0x00,    0x01,0x00,  0x00,0x00,        //控制窗帘
		Dev_NodeCurtain, 0x01,      LOOPCH01,0x00,    0x02,0x00,  0x00,0x00,        //控制窗帘
		
//		Dev_Host_Invalid, 0x00,    ReceptionModeNo,0x00,   0x01,0x00, 0x00,0x00,
		
		DEV_C5MUSIC_Type, 0x01,      LOOPCH01,0x00,      0x21,3,  0x00,0x00,   //场景打开 指定播放词条 会客
//		DEV_C5MUSIC_Type, 0x01,      LOOPCH01,0x00,      0x22,16,  0x00,0x00,   //场景打开 指定播放词条 已关闭提示音
		
		DEV_SWI_TYPE,     0x03,      LOOPCH06,0x00,      0x03,0x64,  0x00,0x00,
	};
	Dbg_Println(DBG_BIT_LOGIC_STATUS_bit,"Add Scene, ID:%d, Scene Name:%s",DevCoreBuf[0], DevName);
	//判断扩展设备个数
	BLV_DevAction_Add(DevCoreBuf, DevName, DevInputBuf, DevCondBuf, sizeof(DevCtrlBuf)/sizeof(Dev_Action_OutCfg), DevCtrlBuf);
}


void BLV_DevAction_C12ZhanTing_Swi4IN01_Add(void)
{
	uint8_t DevCoreBuf[] = //2字节
	{
		RelaxationModeNo,0x00,//场景编号
	};
	char DevName[] = "Swi4IN01";//32个字节
	
	uint8_t DevInputBuf[] = 
	{
/*  设备类型       设备地址   输入回路          输入类型            */		
		DEV_SWI_TYPE,   0x04,      LOOPCH01,0x00,   KeyPress, 0x00,       
	};
	
	uint8_t DevCondBuf[] =  //9个字节
	{
/*  动作锁定不关联房态             插卡有效       其他条件  提示音    起夜有关         执行方式   */		
		0x01,                           0x03,    0x00,0x00,0x00,0x80,0x01,0x01,    LIGHT_SCENE_ONE,
	};
	
	uint8_t DevCtrlBuf[] = 
	{
/*  设备类型         设备地址     输出回路           设备输出    数据备用   */		
		
//		Dev_Host_HVout,    0x00,      LOOPCH11,0x00,      0x02,0x00,  0x00,0x00,
		Dev_Host_HVout,    0x00,      LOOPCH02,0x00,      0x02,0x00,  0x00,0x00,
		DEV_C12DIMMING_Type, 0x00,   LOOPCH01,0x00,      0x02,0,  0x00,0x00,
		DEV_C12DIMMING_Type, 0x00,   LOOPCH03,0x00,      0x02,0,  0x00,0x00,
		DEV_C12DIMMING_Type, 0x00,   LOOPCH04,0x00,      0x02,0,  0x00,0x00,
		DEV_C12DIMMING_Type, 0x00,   LOOPCH05,0x00,      0x02,0,  0x00,0x00,
		DEV_C12DIMMING_Type, 0x00,   LOOPCH06,0x00,      0x01,100,  0x00,0x00,
		
		DEV_RGB_LIGHT_BELT_Type,0x01,LOOPCH01,0x00,      0x01,100,  0x00,0x00,
		DEV_RGB_LIGHT_BELT_Type,0x01,LOOPCH02,0x00,      0x01,100,  0x00,0x00,
		DEV_RGB_LIGHT_BELT_Type,0x01,LOOPCH03,0x00,      0x01,100,  0x00,0x00,
		
		DEV_RGB_LIGHT_BELT_Type,0x02,LOOPCH01,0x00,      0x01,100,  0x00,0x00,
		DEV_RGB_LIGHT_BELT_Type,0x02,LOOPCH02,0x00,      0x01,100,  0x00,0x00,
		DEV_RGB_LIGHT_BELT_Type,0x02,LOOPCH03,0x00,      0x01,100,  0x00,0x00,
		
//		Dev_NodeCurtain, 0x00,      LOOPCH01,0x00,    0x01,0x00,  0x00,0x00,        //控制窗帘
//		Dev_NodeCurtain, 0x01,      LOOPCH01,0x00,    0x02,0x00,  0x00,0x00,        //控制窗帘
		DEV_C5MUSIC_Type, 0x01,      LOOPCH01,0x00,      0x00,0x02,  0x00,0x00,    //音乐暂停
		
//		DEV_C5MUSIC_Type, 0x01,      LOOPCH01,0x00,      0x21,25,  0x00,0x00,   //场景打开 指定播放词条 休闲
//		DEV_C5MUSIC_Type, 0x01,      LOOPCH01,0x00,      0x22,16,  0x00,0x00,   //场景打开 指定播放词条 已关闭提示音
		
		DEV_SWI_TYPE,     0x04,      LOOPCH01,0x00,      0x03,0x64,  0x00,0x00,
	};
	Dbg_Println(DBG_BIT_LOGIC_STATUS_bit,"Add Scene, ID:%d, Scene Name:%s",DevCoreBuf[0], DevName);
	//判断扩展设备个数
	BLV_DevAction_Add(DevCoreBuf, DevName, DevInputBuf, DevCondBuf, sizeof(DevCtrlBuf)/sizeof(Dev_Action_OutCfg), DevCtrlBuf);
}

void BLV_DevAction_C12ZhanTing_Swi4IN01L_Add(void)
{
	uint8_t DevCoreBuf[] = //2字节
	{
		00,0x00,//场景编号
	};
	char DevName[] = "Swi4IN01L";//32个字节
	
	uint8_t DevInputBuf[] = 
	{
/*  设备类型       设备地址   输入回路          输入类型            */		
		DEV_SWI_TYPE,   0x04,      LOOPCH01,0x00,   KeyPress, 0x00,       
	};
	
	uint8_t DevCondBuf[] =  //9个字节
	{
/*  动作启用不关联房态             插卡有效       其他条件  提示音    起夜有关         执行方式   */		
		0x00,                           0x03,    0x00,0x00,0x00,0x80,0x01,0x01,    LIGHT_SCENE_ONE,
	};
	
	uint8_t DevCtrlBuf[] = 
	{
/*  设备类型         设备地址     输出回路           设备输出    数据备用   */		
		
//		Dev_Host_HVout,    0x00,      LOOPCH11,0x00,      0x02,0x00,  0x00,0x00,
		Dev_Host_HVout,    0x00,      LOOPCH02,0x00,      0x02,0x00,  0x00,0x00,
		DEV_C12DIMMING_Type, 0x00,   LOOPCH01,0x00,      0x02,0,  0x00,0x00,
		DEV_C12DIMMING_Type, 0x00,   LOOPCH03,0x00,      0x02,0,  0x00,0x00,
		DEV_C12DIMMING_Type, 0x00,   LOOPCH04,0x00,      0x02,0,  0x00,0x00,
		DEV_C12DIMMING_Type, 0x00,   LOOPCH05,0x00,      0x02,0,  0x00,0x00,
		DEV_C12DIMMING_Type, 0x00,   LOOPCH06,0x00,      0x01,100,  0x00,0x00,
		
		DEV_RGB_LIGHT_BELT_Type,0x01,LOOPCH01,0x00,      0x01,100,  0x00,0x00,
		DEV_RGB_LIGHT_BELT_Type,0x01,LOOPCH02,0x00,      0x01,100,  0x00,0x00,
		DEV_RGB_LIGHT_BELT_Type,0x01,LOOPCH03,0x00,      0x01,100,  0x00,0x00,
		
		DEV_RGB_LIGHT_BELT_Type,0x02,LOOPCH01,0x00,      0x01,100,  0x00,0x00,
		DEV_RGB_LIGHT_BELT_Type,0x02,LOOPCH02,0x00,      0x01,100,  0x00,0x00,
		DEV_RGB_LIGHT_BELT_Type,0x02,LOOPCH03,0x00,      0x01,100,  0x00,0x00,
		
//		Dev_NodeCurtain, 0x00,      LOOPCH01,0x00,    0x01,0x00,  0x00,0x00,        //控制窗帘
//		Dev_NodeCurtain, 0x01,      LOOPCH01,0x00,    0x02,0x00,  0x00,0x00,        //控制窗帘
		
		DEV_C5MUSIC_Type, 0x01,      LOOPCH01,0x00,      0x21,25,  0x00,0x00,   //场景打开 指定播放词条 休闲
//		DEV_C5MUSIC_Type, 0x01,      LOOPCH01,0x00,      0x22,16,  0x00,0x00,   //场景打开 指定播放词条 已关闭提示音
		
		DEV_SWI_TYPE,     0x04,      LOOPCH01,0x00,      0x03,0x64,  0x00,0x00,
	};
	Dbg_Println(DBG_BIT_LOGIC_STATUS_bit,"Add Scene, ID:%d, Scene Name:%s",DevCoreBuf[0], DevName);
	//判断扩展设备个数
	BLV_DevAction_Add(DevCoreBuf, DevName, DevInputBuf, DevCondBuf, sizeof(DevCtrlBuf)/sizeof(Dev_Action_OutCfg), DevCtrlBuf);
}

void BLV_DevAction_C12ZhanTing_Swi4IN02_Add(void)
{
	uint8_t DevCoreBuf[] = //2字节
	{
		TVModeNo,0x00,//场景编号
	};
	char DevName[] = "Swi4IN02";//32个字节
	
	uint8_t DevInputBuf[] = 
	{
/*  设备类型       设备地址   输入回路          输入类型            */		
		DEV_SWI_TYPE,   0x04,      LOOPCH02,0x00,   KeyPress, 0x00,       
	};
	
	uint8_t DevCondBuf[] =  //9个字节
	{
/*  动作锁定不关联房态             插卡有效       其他条件  提示音              执行方式   */		
		0x01,                           0x03,    0x00,0x00,0x00,0x80,0x01,0x01,    LIGHT_SCENE_ONE,
	};
	
	uint8_t DevCtrlBuf[] = 
	{
/*  设备类型         设备地址     输出回路           设备输出    数据备用   */		

		Dev_Host_HVout,    0x00,      LOOPCH02,0x00,      0x02,0x00,  0x00,0x00,
//		Dev_Host_HVout,    0x00,      LOOPCH03,0x00,      0x02,0x00,  0x00,0x00,
//		Dev_Host_HVout,    0x00,      LOOPCH04,0x00,      0x02,0x00,  0x00,0x00,
		
		DEV_C12DIMMING_Type, 0x00,   LOOPCH01,0x00,      0x02,0x00,  0x00,0x00,
		DEV_C12DIMMING_Type, 0x00,   LOOPCH03,0x00,      0x01,50,  0x00,0x00,
		DEV_C12DIMMING_Type, 0x00,   LOOPCH04,0x00,      0x02,0x00,  0x00,0x00,
		DEV_C12DIMMING_Type, 0x00,   LOOPCH05,0x00,      0x02,0x00,  0x00,0x00,
		DEV_C12DIMMING_Type, 0x00,   LOOPCH06,0x00,      0x02,0x00,  0x00,0x00,
//		DEV_C12DIMMING_Type, 0x00,   LOOPCH07,0x00,      0x02,0x00,  0x00,0x00,
//		DEV_C12DIMMING_Type, 0x00,   LOOPCH08,0x00,      0x02,0x00,  0x00,0x00,
//		DEV_C12DIMMING_Type, 0x00,   LOOPCH09,0x00,      0x02,0x00,  0x00,0x00,
//		DEV_C12DIMMING_Type, 0x00,   LOOPCH10,0x00,      0x02,0x00,  0x00,0x00,
		
//		Dev_Host_Invalid,   0x00,   CloseAllRGB,0x00,    0x01,0x00,  0x00,0x00,        //控制自定义场景
		DEV_RGB_LIGHT_BELT_Type,0x01,LOOPCH01,0x00,      0x02,0x00,  0x00,0x00,
		DEV_RGB_LIGHT_BELT_Type,0x01,LOOPCH02,0x00,      0x01,100,   0x00,0x00,
		DEV_RGB_LIGHT_BELT_Type,0x01,LOOPCH03,0x00,      0x01,100,  0x00,0x00,
		
		DEV_RGB_LIGHT_BELT_Type,0x02,LOOPCH01,0x00,      0x02,0x00,  0x00,0x00,
		DEV_RGB_LIGHT_BELT_Type,0x02,LOOPCH02,0x00,      0x02,0x00,  0x00,0x00,
		DEV_RGB_LIGHT_BELT_Type,0x02,LOOPCH03,0x00,      0x02,0x00,  0x00,0x00,
		DEV_C5MUSIC_Type, 0x01,      LOOPCH01,0x00,      0x00,0x02,  0x00,0x00,    //音乐暂停
		
//		DEV_C5MUSIC_Type, 0x01,      LOOPCH01,0x00,      0x21,40,  0x00,0x00,   //场景打开 指定播放词条 电视
//		DEV_C5MUSIC_Type, 0x01,      LOOPCH01,0x00,      0x22,0x01,  0x00,0x00,   //场景打开 指定播放词条  对于不同种类的背景音乐，执行方式有差异
				
//		Dev_NodeCurtain, 0x00,      LOOPCH01,0x00,    0x02,0x00,  0x00,0x00,        //控制窗帘
//		Dev_NodeCurtain, 0x01,      LOOPCH01,0x00,    0x02,0x00,  0x00,0x00,        //控制窗帘
		
	
//		DEV_SWI_TYPE,     0x04,      LOOPCH02,0x00,      0x03,0x64,  0x00,0x00,
	};
	Dbg_Println(DBG_BIT_LOGIC_STATUS_bit,"Add Scene, ID:%d, Scene Name:%s",DevCoreBuf[0], DevName);
	//判断扩展设备个数
	BLV_DevAction_Add(DevCoreBuf, DevName, DevInputBuf, DevCondBuf, sizeof(DevCtrlBuf)/sizeof(Dev_Action_OutCfg), DevCtrlBuf);
}

void BLV_DevAction_C12ZhanTing_Swi4IN02L_Add(void)
{
	uint8_t DevCoreBuf[] = //2字节
	{
		00,0x00,//场景编号
	};
	char DevName[] = "Swi4IN02L";//32个字节
	
	uint8_t DevInputBuf[] = 
	{
/*  设备类型       设备地址   输入回路          输入类型            */		
		DEV_SWI_TYPE,   0x04,      LOOPCH02,0x00,   KeyPress, 0x00,       
	};
	
	uint8_t DevCondBuf[] =  //9个字节
	{
/*  动作启用不关联房态             插卡有效       其他条件  提示音              执行方式   */		
		0x00,                           0x03,    0x00,0x00,0x00,0x80,0x01,0x01,    LIGHT_SCENE_ONE,
	};
	
	uint8_t DevCtrlBuf[] = 
	{
/*  设备类型         设备地址     输出回路           设备输出    数据备用   */		

		Dev_Host_HVout,    0x00,      LOOPCH02,0x00,      0x02,0x00,  0x00,0x00,
//		Dev_Host_HVout,    0x00,      LOOPCH03,0x00,      0x02,0x00,  0x00,0x00,
//		Dev_Host_HVout,    0x00,      LOOPCH04,0x00,      0x02,0x00,  0x00,0x00,
		
		DEV_C12DIMMING_Type, 0x00,   LOOPCH01,0x00,      0x02,0x00,  0x00,0x00,
		DEV_C12DIMMING_Type, 0x00,   LOOPCH03,0x00,      0x01,50,  0x00,0x00,
		DEV_C12DIMMING_Type, 0x00,   LOOPCH04,0x00,      0x02,0x00,  0x00,0x00,
		DEV_C12DIMMING_Type, 0x00,   LOOPCH05,0x00,      0x02,0x00,  0x00,0x00,
		DEV_C12DIMMING_Type, 0x00,   LOOPCH06,0x00,      0x02,0x00,  0x00,0x00,
//		DEV_C12DIMMING_Type, 0x00,   LOOPCH07,0x00,      0x02,0x00,  0x00,0x00,
//		DEV_C12DIMMING_Type, 0x00,   LOOPCH08,0x00,      0x02,0x00,  0x00,0x00,
//		DEV_C12DIMMING_Type, 0x00,   LOOPCH09,0x00,      0x02,0x00,  0x00,0x00,
//		DEV_C12DIMMING_Type, 0x00,   LOOPCH10,0x00,      0x02,0x00,  0x00,0x00,
		
//		Dev_Host_Invalid,   0x00,   CloseAllRGB,0x00,    0x01,0x00,  0x00,0x00,        //控制自定义场景
		DEV_RGB_LIGHT_BELT_Type,0x01,LOOPCH01,0x00,      0x02,0x00,  0x00,0x00,
		DEV_RGB_LIGHT_BELT_Type,0x01,LOOPCH02,0x00,      0x01,100,   0x00,0x00,
		DEV_RGB_LIGHT_BELT_Type,0x01,LOOPCH03,0x00,      0x01,100,  0x00,0x00,
		
		DEV_RGB_LIGHT_BELT_Type,0x02,LOOPCH01,0x00,      0x02,0x00,  0x00,0x00,
		DEV_RGB_LIGHT_BELT_Type,0x02,LOOPCH02,0x00,      0x02,0x00,  0x00,0x00,
		DEV_RGB_LIGHT_BELT_Type,0x02,LOOPCH03,0x00,      0x02,0x00,  0x00,0x00,
		
		DEV_C5MUSIC_Type, 0x01,      LOOPCH01,0x00,      0x21,40,  0x00,0x00,   //场景打开 指定播放词条 电视
//		DEV_C5MUSIC_Type, 0x01,      LOOPCH01,0x00,      0x22,0x01,  0x00,0x00,   //场景打开 指定播放词条  对于不同种类的背景音乐，执行方式有差异
				
//		Dev_NodeCurtain, 0x00,      LOOPCH01,0x00,    0x02,0x00,  0x00,0x00,        //控制窗帘
//		Dev_NodeCurtain, 0x01,      LOOPCH01,0x00,    0x02,0x00,  0x00,0x00,        //控制窗帘
		
	
		DEV_SWI_TYPE,     0x04,      LOOPCH02,0x00,      0x03,0x64,  0x00,0x00,
	};
	Dbg_Println(DBG_BIT_LOGIC_STATUS_bit,"Add Scene, ID:%d, Scene Name:%s",DevCoreBuf[0], DevName);
	//判断扩展设备个数
	BLV_DevAction_Add(DevCoreBuf, DevName, DevInputBuf, DevCondBuf, sizeof(DevCtrlBuf)/sizeof(Dev_Action_OutCfg), DevCtrlBuf);
}

void BLV_DevAction_C12ZhanTing_Swi4IN03_Add(void)
{
	uint8_t DevCoreBuf[] = //2字节
	{
		0x00,0x00,//场景编号
	};
	char DevName[] = "Swi4IN03";//32个字节
	
	uint8_t DevInputBuf[] = 
	{
/*  设备类型       设备地址   输入回路          输入类型            */		
		DEV_SWI_TYPE,   0x04,      LOOPCH03,0x00,   KeyPress, 0x00,       
	};
	
	uint8_t DevCondBuf[] =  //9个字节
	{
/*  动作启用不关联房态             插卡有效       其他条件  提示音              执行方式   */		
		0x00,                           0x03,    0x00,0x00,0x00,0x80,0x01,0x01,    LIGHT_SCENE_ONE,
	};
	
	uint8_t DevCtrlBuf[] = 
	{
/*  设备类型         设备地址     输出回路           设备输出    数据备用   */		
		DEV_C5MUSIC_Type, 0x01,      LOOPCH01,0x00,      0x21,0x01,  0x00,0x00,   //场景打开 指定播放词条 
		DEV_SWI_TYPE,     0x04,      LOOPCH03,0x00,      0x01,0x64,  0x00,0x00,
		DEV_SWI_TYPE,     0x04,      LOOPCH03,0x00,      0x02,0x64,  10,0x02,
	};
	Dbg_Println(DBG_BIT_LOGIC_STATUS_bit,"Add Scene, ID:%d, Scene Name:%s",DevCoreBuf[0], DevName);
	//判断扩展设备个数
	BLV_DevAction_Add(DevCoreBuf, DevName, DevInputBuf, DevCondBuf, sizeof(DevCtrlBuf)/sizeof(Dev_Action_OutCfg), DevCtrlBuf);
}


void BLV_DevAction_C12ZhanTing_Swi4IN04_Add(void)
{
	uint8_t DevCoreBuf[] = //2字节
	{
		AllControlModeNo,0x00,//场景编号
	};
	char DevName[] = "Swi4IN04";//32个字节
	
	uint8_t DevInputBuf[] = 
	{
/*  设备类型       设备地址   输入回路          输入类型            */		
		DEV_SWI_TYPE,   0x04,      LOOPCH04,0x00,   KeyPress, 0x00,       
	};
	
	uint8_t DevCondBuf[] =  //9个字节
	{
/*  动作启用不关联房态             插卡有效       其他条件  提示音              执行方式   */		
		0x00,                           0x03,    0x00,0x00,0x00,0x80,0x01,0x01,    LIGHT_SCENE_TWO,
	};
	
	uint8_t DevCtrlBuf[] = 
	{
/*  设备类型         设备地址     输出回路           设备输出    数据备用   */		

		Dev_Host_HVout,    0x00,      LOOPCH02,0x00,      0x01,0x00,  0x00,0x00,
		Dev_Host_HVout,    0x00,      LOOPCH03,0x00,      0x01,0x00,  0x00,0x00,
		Dev_Host_HVout,    0x00,      LOOPCH04,0x00,      0x01,0x00,  0x00,0x00,
		
		DEV_C12DIMMING_Type, 0x00,   LOOPCH01,0x00,      0x01,80,  0x00,0x00,
		DEV_C12DIMMING_Type, 0x00,   LOOPCH02,0x00,      0x01,80,  0x00,0x00,
		DEV_C12DIMMING_Type, 0x00,   LOOPCH03,0x00,      0x01,80,  0x00,0x00,
		DEV_C12DIMMING_Type, 0x00,   LOOPCH04,0x00,      0x01,80,  0x00,0x00,
		DEV_C12DIMMING_Type, 0x00,   LOOPCH05,0x00,      0x01,80,  0x00,0x00,
		DEV_C12DIMMING_Type, 0x00,   LOOPCH06,0x00,      0x01,80,  0x00,0x00,
		DEV_C12DIMMING_Type, 0x00,   LOOPCH07,0x00,      0x01,80,  0x00,0x00,
		DEV_C12DIMMING_Type, 0x00,   LOOPCH08,0x00,      0x01,80,  0x00,0x00,
		DEV_C12DIMMING_Type, 0x00,   LOOPCH09,0x00,      0x01,80,  0x00,0x00,
		DEV_C12DIMMING_Type, 0x00,   LOOPCH10,0x00,      0x01,80,  0x00,0x00,
		
		/*逻辑表为全部可关闭超过，但超过20个，先写成了全关RGB*/
		Dev_Host_Invalid,   0x00,   OpenAllRGB,0x00,    0x01,0x00,  0x00,0x00,        //控制自定义场景
		
		
		DEV_C5MUSIC_Type, 0x01,      LOOPCH01,0x00,      0x21,0x01,  0x00,0x00,   //场景打开 指定播放词条
//		DEV_C5MUSIC_Type, 0x01,      LOOPCH01,0x00,      0x22,0x01,  0x00,0x00,   //场景打开 指定播放词条  对于不同种类的背景音乐，执行方式有差异
				
//		Dev_NodeCurtain, 0x00,      LOOPCH01,0x00,    0x02,0x00,  0x00,0x00,        //控制窗帘
//		Dev_NodeCurtain, 0x01,      LOOPCH01,0x00,    0x02,0x00,  0x00,0x00,        //控制窗帘
		
		DEV_SWI_TYPE,     0x04,      LOOPCH04,0x00,      0x03,0x64,  0x00,0x00,
	};
	Dbg_Println(DBG_BIT_LOGIC_STATUS_bit,"Add Scene, ID:%d, Scene Name:%s",DevCoreBuf[0], DevName);
	//判断扩展设备个数
	BLV_DevAction_Add(DevCoreBuf, DevName, DevInputBuf, DevCondBuf, sizeof(DevCtrlBuf)/sizeof(Dev_Action_OutCfg), DevCtrlBuf);
}

void BLV_DevAction_C12ZhanTing_Swi4IN05_Add(void)
{
	uint8_t DevCoreBuf[] = //2字节
	{
		NeightModeNo,0x00,//场景编号
	};
	char DevName[] = "Swi4IN05";//32个字节
	
	uint8_t DevInputBuf[] = 
	{
/*  设备类型       设备地址   输入回路          输入类型            */		
		DEV_SWI_TYPE,   0x04,      LOOPCH05,0x00,   KeyPress, 0x00,       
	};
	
	uint8_t DevCondBuf[] =  //9个字节
	{
/*  动作启用不关联房态             插卡有效       其他条件  提示音              执行方式   */		
		0x00,                           0x03,    0x00,0x00,0x00,0x80,0x01,0x00,    LIGHT_SCENE_SLEEP,
	};
	
	uint8_t DevCtrlBuf[] = 
	{
/*  设备类型         设备地址     输出回路           设备输出    数据备用   */		

		Dev_Host_HVout,    0x00,      LOOPCH02,0x00,      0x02,0x00,  0x00,0x00,
		Dev_Host_HVout,    0x00,      LOOPCH03,0x00,      0x02,0x00,  0x00,0x00,
		Dev_Host_HVout,    0x00,      LOOPCH04,0x00,      0x02,0x00,  0x00,0x00,
		Dev_Host_HVout,    0x00,      LOOPCH05,0x00,      0x02,0x00,  0x00,0x00,
		Dev_Host_HVout,    0x00,      LOOPCH06,0x00,      0x02,0x00,  0x00,0x00,
		
		DEV_C12DIMMING_Type, 0x00,   LOOPCH01,0x00,      0x02,0x00,  0x00,0x00,
		DEV_C12DIMMING_Type, 0x00,   LOOPCH03,0x00,      0x01,20,  0x00,0x00,     //夜灯
		DEV_C12DIMMING_Type, 0x00,   LOOPCH04,0x00,      0x02,0x00,  0x00,0x00,
		DEV_C12DIMMING_Type, 0x00,   LOOPCH05,0x00,      0x02,0x00,  0x00,0x00,
		DEV_C12DIMMING_Type, 0x00,   LOOPCH06,0x00,      0x02,0x00,  0x00,0x00,
		DEV_C12DIMMING_Type, 0x00,   LOOPCH07,0x00,      0x02,0x00,  0x00,0x00,
		DEV_C12DIMMING_Type, 0x00,   LOOPCH08,0x00,      0x02,0x00,  0x00,0x00,
		DEV_C12DIMMING_Type, 0x00,   LOOPCH09,0x00,      0x02,0x00,  0x00,0x00,
		DEV_C12DIMMING_Type, 0x00,   LOOPCH10,0x00,      0x02,0x00,  0x00,0x00,
		
//		Dev_Host_Invalid,   0x00,   OpenAllRGB,0x00,    0x01,0x00,  0x00,0x00,        //控制自定义场景
		DEV_RGB_LIGHT_BELT_Type,0x01,LOOPCH01,0x00,      0x02,00,  0x00,0x00,
		DEV_RGB_LIGHT_BELT_Type,0x01,LOOPCH02,0x00,      0x02,0x00,  0x00,0x00,
		DEV_RGB_LIGHT_BELT_Type,0x01,LOOPCH03,0x00,      0x02,00,  0x00,0x00,
		
		DEV_RGB_LIGHT_BELT_Type,0x02,LOOPCH01,0x00,      0x01,20,  0x00,0x00,     //夜灯
		DEV_RGB_LIGHT_BELT_Type,0x02,LOOPCH02,0x00,      0x01,20,  0x00,0x00,
		DEV_RGB_LIGHT_BELT_Type,0x02,LOOPCH03,0x00,      0x01,20,  0x00,0x00,
		
		DEV_RGB_LIGHT_BELT_Type,0x03,LOOPCH01,0x00,      0x02,00,  0x00,0x00,
		DEV_RGB_LIGHT_BELT_Type,0x03,LOOPCH02,0x00,      0x02,0x00,  0x00,0x00,
		DEV_RGB_LIGHT_BELT_Type,0x03,LOOPCH03,0x00,      0x02,00,  0x00,0x00,
		
		DEV_C5MUSIC_Type, 0x01,      LOOPCH01,0x00,      0x21,7,  0x00,0x00,   //场景打开 指定播放词条 睡眠
//		DEV_C5MUSIC_Type, 0x01,      LOOPCH01,0x00,      0x22,0x01,  0x00,0x00,   //场景打开 指定播放词条  对于不同种类的背景音乐，执行方式有差异
				
		Dev_NodeCurtain, 0x00,      LOOPCH01,0x00,    0x02,0x00,  0x00,0x00,        //控制窗帘
		Dev_NodeCurtain, 0x01,      LOOPCH01,0x00,    0x02,0x00,  0x00,0x00,        //控制窗帘
		
	
		DEV_SWI_TYPE,     0x04,      LOOPCH05,0x00,      0x03,0x64,  0x00,0x00,
	};
	Dbg_Println(DBG_BIT_LOGIC_STATUS_bit,"Add Scene, ID:%d, Scene Name:%s",DevCoreBuf[0], DevName);
	//判断扩展设备个数
	BLV_DevAction_Add(DevCoreBuf, DevName, DevInputBuf, DevCondBuf, sizeof(DevCtrlBuf)/sizeof(Dev_Action_OutCfg), DevCtrlBuf);
}

void BLV_DevAction_C12ZhanTing_Swi5IN01_Add(void)
{
	uint8_t DevCoreBuf[] = //2字节
	{
		0x00,0x00,//场景编号
	};
	char DevName[] = "Swi5IN01";//32个字节
	
	uint8_t DevInputBuf[] = 
	{
/*  设备类型       设备地址   输入回路          输入类型            */		
		DEV_SWI_TYPE,   0x05,      LOOPCH01,0x00,   KeyPress, 0x00,       
	};
	
	uint8_t DevCondBuf[] =  //9个字节
	{
/*  动作启用不关联房态             插卡有效       其他条件  提示音              执行方式   */		
		0x00,                           0x03,    0x00,0x00,0x00,0x80,0x01,0x01,    LIGHT_SCENE_ONE,
	};
	
	uint8_t DevCtrlBuf[] = 
	{
/*  设备类型         设备地址     输出回路           设备输出    数据备用   */		
		
		DEV_C5MUSIC_Type, 0x01,      LOOPCH01,0x00,    0x00,0x05,   0x00,0x00,   //音量加
		DEV_C5MUSIC_Type, 0x01,      LOOPCH01,0x00,      0x21,0x01,  0x00,0x00,   //场景打开 指定播放词条
//		DEV_C5MUSIC_Type, 0x01,      LOOPCH01,0x00,      0x22,0x01,  0x00,0x00,   //场景打开 指定播放词条  对于不同种类的背景音乐，执行方式有差异
		
		DEV_SWI_TYPE,     0x05,      LOOPCH01,0x00,      0x01,0x64,  0x00,0x00,
		DEV_SWI_TYPE,     0x05,      LOOPCH01,0x00,      0x02,0x00,  0x01,0x02,
	};
	Dbg_Println(DBG_BIT_LOGIC_STATUS_bit,"Add Scene, ID:%d, Scene Name:%s",DevCoreBuf[0], DevName);
	//判断扩展设备个数
	BLV_DevAction_Add(DevCoreBuf, DevName, DevInputBuf, DevCondBuf, sizeof(DevCtrlBuf)/sizeof(Dev_Action_OutCfg), DevCtrlBuf);
}

void BLV_DevAction_C12ZhanTing_Swi5IN02_Add(void)
{
	uint8_t DevCoreBuf[] = //2字节
	{
		0x00,0x00,//场景编号
	};
	char DevName[] = "Swi5IN02";//32个字节
	
	uint8_t DevInputBuf[] = 
	{
/*  设备类型       设备地址   输入回路          输入类型            */		
		DEV_SWI_TYPE,   0x05,      LOOPCH02,0x00,   KeyPress, 0x00,       
	};
	
	uint8_t DevCondBuf[] =  //9个字节
	{
/*  动作启用不关联房态             插卡有效       其他条件  提示音              执行方式   */		
		0x00,                           0x03,    0x00,0x00,0x00,0x00,0x00,0x01,    LIGHT_SCENE_TWO,
	};
	
	uint8_t DevCtrlBuf[] = 
	{
/*  设备类型         设备地址     输出回路           设备输出    数据备用   */		
		
		DEV_C5MUSIC_Type, 0x01,      LOOPCH01,0x00,      0x21,15,  0x00,0x00,   //场景打开 指定播放词条 已开启提示音
		DEV_C5MUSIC_Type, 0x01,      LOOPCH01,0x00,      0x22,16,  0x00,0x00,   //场景打开 指定播放词条 已关闭提示音
		Dev_Host_Service, 0x00,      LOOPCH14,0x00,      0x01,0x00,  0x00,0x00,  //静音服务方式有差异
		
		DEV_SWI_TYPE,     0x05,      LOOPCH02,0x00,      0x03,0x64,  0x00,0x00,
		
	};
	Dbg_Println(DBG_BIT_LOGIC_STATUS_bit,"Add Scene, ID:%d, Scene Name:%s",DevCoreBuf[0], DevName);
	//判断扩展设备个数
	BLV_DevAction_Add(DevCoreBuf, DevName, DevInputBuf, DevCondBuf, sizeof(DevCtrlBuf)/sizeof(Dev_Action_OutCfg), DevCtrlBuf);
}

void BLV_DevAction_C12ZhanTing_Swi5IN03_Add(void)
{
	uint8_t DevCoreBuf[] = //2字节
	{
		0x00,0x00,//场景编号
	};
	char DevName[] = "Swi5IN03";//32个字节
	
	uint8_t DevInputBuf[] = 
	{
/*  设备类型       设备地址   输入回路          输入类型            */		
		DEV_SWI_TYPE,   0x05,      LOOPCH03,0x00,   KeyPress, 0x00,       
	};
	
	uint8_t DevCondBuf[] =  //9个字节
	{
/*  动作启用不关联房态             插卡有效       其他条件  提示音              执行方式   */		
		0x00,                           0x03,    0x00,0x00,0x00,0x80,0x01,0x01,    LIGHT_SCENE_ONE,
	};
	
	uint8_t DevCtrlBuf[] = 
	{
/*  设备类型         设备地址     输出回路           设备输出    数据备用   */		
		
		DEV_C5MUSIC_Type, 0x01,      LOOPCH01,0x00,    0x00,0x06,   0x00,0x00,   //音量减
		DEV_C5MUSIC_Type, 0x01,      LOOPCH01,0x00,      0x21,0x01,  0x00,0x00,   //场景打开 指定播放词条
//		DEV_C5MUSIC_Type, 0x01,      LOOPCH01,0x00,      0x22,0x01,  0x00,0x00,   //场景打开 指定播放词条  对于不同种类的背景音乐，执行方式有差异
		
		DEV_SWI_TYPE,     0x05,      LOOPCH03,0x00,      0x01,0x64,  0x00,0x00,
		DEV_SWI_TYPE,     0x05,      LOOPCH03,0x00,      0x02,0x00,  0x01,0x02,
	};
	Dbg_Println(DBG_BIT_LOGIC_STATUS_bit,"Add Scene, ID:%d, Scene Name:%s",DevCoreBuf[0], DevName);
	//判断扩展设备个数
	BLV_DevAction_Add(DevCoreBuf, DevName, DevInputBuf, DevCondBuf, sizeof(DevCtrlBuf)/sizeof(Dev_Action_OutCfg), DevCtrlBuf);
}

void BLV_DevAction_C12ZhanTing_Swi5IN04_Add(void)
{
	uint8_t DevCoreBuf[] = //2字节
	{
		0x00,0x00,//场景编号
	};
	char DevName[] = "Swi5IN04";//32个字节
	
	uint8_t DevInputBuf[] = 
	{
/*  设备类型       设备地址   输入回路          输入类型            */		
		DEV_SWI_TYPE,   0x05,      LOOPCH04,0x00,   KeyPress, 0x00,       
	};
	
	uint8_t DevCondBuf[] =  //9个字节
	{
	/*关联调光 */
/*  动作启用不关联房态             插卡有效       其他条件  提示音              执行方式   */		
		0x20,                           0x03,    0x00,0x00,0x00,0x80,0x01,0x01,    LIGHT_SCENE_ONE,
	};
	
	uint8_t DevCtrlBuf[] = 
	{
/*  设备类型         设备地址     输出回路           设备输出    数据备用   */		
		
		DEV_C12DIMMING_Type, 0x00,   LOOPCH01,0x00,      0x1A,15,  0x00,0x00,
		DEV_C12DIMMING_Type, 0x00,   LOOPCH03,0x00,      0x1A,15,  0x00,0x00,
		DEV_C12DIMMING_Type, 0x00,   LOOPCH04,0x00,      0x1A,15,  0x00,0x00,
		DEV_C12DIMMING_Type, 0x00,   LOOPCH05,0x00,      0x1A,15,  0x00,0x00,
		DEV_C12DIMMING_Type, 0x00,   LOOPCH06,0x00,      0x1A,15,  0x00,0x00,
		DEV_C12DIMMING_Type, 0x00,   LOOPCH07,0x00,      0x1A,15,  0x00,0x00,
		DEV_C12DIMMING_Type, 0x00,   LOOPCH08,0x00,      0x1A,15,  0x00,0x00,
		DEV_C12DIMMING_Type, 0x00,   LOOPCH09,0x00,      0x1A,15,  0x00,0x00,
		DEV_C12DIMMING_Type, 0x00,   LOOPCH10,0x00,      0x1A,15,  0x00,0x00,
		
//		Dev_Host_Invalid,   0x00,   RGBAddLighgt,0x00,    0x01,0x00,  0x00,0x00,        //控制自定义场景
		DEV_RGB_LIGHT_BELT_Type,0x01,LOOPCH01,0x00,      0x1A,15,  0x00,0x00,
		DEV_RGB_LIGHT_BELT_Type,0x01,LOOPCH02,0x00,      0x1A,15,  0x00,0x00,
		DEV_RGB_LIGHT_BELT_Type,0x01,LOOPCH03,0x00,      0x1A,15,  0x00,0x00,
		
		DEV_RGB_LIGHT_BELT_Type,0x02,LOOPCH01,0x00,      0x1A,15,  0x00,0x00,
		DEV_RGB_LIGHT_BELT_Type,0x02,LOOPCH02,0x00,      0x1A,15,  0x00,0x00,
		DEV_RGB_LIGHT_BELT_Type,0x02,LOOPCH03,0x00,      0x1A,15,  0x00,0x00,
		
		DEV_RGB_LIGHT_BELT_Type,0x03,LOOPCH01,0x00,      0x1A,15,  0x00,0x00,
		DEV_RGB_LIGHT_BELT_Type,0x03,LOOPCH02,0x00,      0x1A,15,  0x00,0x00,
		DEV_RGB_LIGHT_BELT_Type,0x03,LOOPCH03,0x00,      0x1A,15,  0x00,0x00,
		
		DEV_C5MUSIC_Type, 0x01,      LOOPCH01,0x00,      0x21,1,  0x00,0x00,   //场景打开 指定播放词条 
//		DEV_C5MUSIC_Type, 0x01,      LOOPCH01,0x00,      0x22,0x01,  0x00,0x00,   //场景打开 指定播放词条  对于不同种类的背景音乐，执行方式有差异
		
	
		DEV_SWI_TYPE,     0x05,      LOOPCH04,0x00,      0x01,0x64,  0x00,0x00,
		DEV_SWI_TYPE,     0x05,      LOOPCH04,0x00,      0x02,0x00,  0x01,0x02,
	};
	Dbg_Println(DBG_BIT_LOGIC_STATUS_bit,"Add Scene, ID:%d, Scene Name:%s",DevCoreBuf[0], DevName);
	//判断扩展设备个数
	BLV_DevAction_Add(DevCoreBuf, DevName, DevInputBuf, DevCondBuf, sizeof(DevCtrlBuf)/sizeof(Dev_Action_OutCfg), DevCtrlBuf);
}



void BLV_DevAction_C12ZhanTing_Swi5IN05_Add(void)
{
	uint8_t DevCoreBuf[] = //2字节
	{
		0x00,0x00,//场景编号
	};
	char DevName[] = "Swi5IN05";//32个字节
	
	uint8_t DevInputBuf[] = 
	{
/*  设备类型       设备地址   输入回路          输入类型            */		
		DEV_SWI_TYPE,   0x05,      LOOPCH05,0x00,   KeyPress, 0x00,       
	};
	
	uint8_t DevCondBuf[] =  //9个字节
	{
		/*关联调光 */	
/*  动作启用不关联房态             插卡有效       其他条件  提示音              执行方式   */		
		0x20,                           0x03,    0x00,0x00,0x00,0x80,0x01,0x01,    LIGHT_SCENE_ONE,
	};
	
	uint8_t DevCtrlBuf[] = 
	{
/*  设备类型         设备地址     输出回路           设备输出    数据备用   */		
		
		DEV_C12DIMMING_Type, 0x00,   LOOPCH01,0x00,      0x1B,15,  0x00,0x00,
		DEV_C12DIMMING_Type, 0x00,   LOOPCH03,0x00,      0x1B,15,  0x00,0x00,
		DEV_C12DIMMING_Type, 0x00,   LOOPCH04,0x00,      0x1B,15,  0x00,0x00,
		DEV_C12DIMMING_Type, 0x00,   LOOPCH05,0x00,      0x1B,15,  0x00,0x00,
		DEV_C12DIMMING_Type, 0x00,   LOOPCH06,0x00,      0x1B,15,  0x00,0x00,
		DEV_C12DIMMING_Type, 0x00,   LOOPCH07,0x00,      0x1B,15,  0x00,0x00,
		DEV_C12DIMMING_Type, 0x00,   LOOPCH08,0x00,      0x1B,15,  0x00,0x00,
		DEV_C12DIMMING_Type, 0x00,   LOOPCH09,0x00,      0x1B,15,  0x00,0x00,
		DEV_C12DIMMING_Type, 0x00,   LOOPCH10,0x00,      0x1B,15,  0x00,0x00,
		
//		Dev_Host_Invalid,   0x00,   RGBSubLighgt,0x00,    0x01,0x00,  0x00,0x00,        //控制自定义场景
		DEV_RGB_LIGHT_BELT_Type,0x01,LOOPCH01,0x00,      0x1B,15,  0x00,0x00,
		DEV_RGB_LIGHT_BELT_Type,0x01,LOOPCH02,0x00,      0x1B,15,  0x00,0x00,
		DEV_RGB_LIGHT_BELT_Type,0x01,LOOPCH03,0x00,      0x1B,15,  0x00,0x00,
		
		DEV_RGB_LIGHT_BELT_Type,0x02,LOOPCH01,0x00,      0x1B,15,  0x00,0x00,
		DEV_RGB_LIGHT_BELT_Type,0x02,LOOPCH02,0x00,      0x1B,15,  0x00,0x00,
		DEV_RGB_LIGHT_BELT_Type,0x02,LOOPCH03,0x00,      0x1B,15,  0x00,0x00,
		
		DEV_RGB_LIGHT_BELT_Type,0x03,LOOPCH01,0x00,      0x1B,15,  0x00,0x00,
		DEV_RGB_LIGHT_BELT_Type,0x03,LOOPCH02,0x00,      0x1B,15,  0x00,0x00,
		DEV_RGB_LIGHT_BELT_Type,0x03,LOOPCH03,0x00,      0x1B,15,  0x00,0x00,
		
		DEV_C5MUSIC_Type, 0x01,      LOOPCH01,0x00,      0x21,1,  0x00,0x00,   //场景打开 指定播放词条 
//		DEV_C5MUSIC_Type, 0x01,      LOOPCH01,0x00,      0x22,0x01,  0x00,0x00,   //场景打开 指定播放词条  对于不同种类的背景音乐，执行方式有差异
		
	
		DEV_SWI_TYPE,     0x05,      LOOPCH05,0x00,      0x01,0x64,  0x00,0x00,
		DEV_SWI_TYPE,     0x05,      LOOPCH05,0x00,      0x02,0x00,  0x01,0x02,
	};
	Dbg_Println(DBG_BIT_LOGIC_STATUS_bit,"Add Scene, ID:%d, Scene Name:%s",DevCoreBuf[0], DevName);
	//判断扩展设备个数
	BLV_DevAction_Add(DevCoreBuf, DevName, DevInputBuf, DevCondBuf, sizeof(DevCtrlBuf)/sizeof(Dev_Action_OutCfg), DevCtrlBuf);
}



/*自定义场景*/
void BLV_DevAction_C12ZhanTing_SleepToneScene_Add(void)
{
	uint8_t DevCoreBuf[] = //2字节
	{
		SleepTone,0x00,//场景编号
	};
	char DevName[] = "SleepToneScene";//32个字节
	
	uint8_t DevInputBuf[] = 
	{
/*   设备类型           设备地址   输入回路         输入类型               */		
		 Dev_Host_Service,   0x00,     LOOPCH01,0x00,   DEV_CTRLWAY_OPEN, 0x00,   
	};
	
	uint8_t DevCondBuf[] =  //9个字节
	{
/*  动作锁定不关联房态             与卡无关       其他条件                执行方式   */		
		0x01,                           0x00,   0x00,0x00,0x00,0x00,0x00,0x00,    LIGHT_SCENE_ONE,
	};
	
	
	uint8_t DevCtrlBuf[] = 
	{
/*  设备类型         设备地址    输出回路          设备输出    数据备用   */		
		DEV_C5MUSIC_Type, 0x01,      LOOPCH01,0x00,      0x21,26,  0x00,0x00,   //场景打开 指定播放词条 提示夜已深

	};
	Dbg_Println(DBG_BIT_LOGIC_STATUS_bit,"Add Scene, ID:%d, Scene Name:%s",DevCoreBuf[0], DevName);
	//判断扩展设备个数
	BLV_DevAction_Add(DevCoreBuf, DevName, DevInputBuf, DevCondBuf, sizeof(DevCtrlBuf)/sizeof(Dev_Action_OutCfg), (uint8_t *)DevCtrlBuf);
}

/*自定义场景*/
void BLV_DevAction_C12ZhanTing_MorningToneScene_Add(void)
{
	uint8_t DevCoreBuf[] = //2字节
	{
		MorningTone,0x00,//场景编号
	};
	char DevName[] = "MorningToneScene";//32个字节
	
	uint8_t DevInputBuf[] = 
	{
/*   设备类型           设备地址   输入回路         输入类型               */		
		 Dev_Host_Service,   0x00,     LOOPCH01,0x00,   DEV_CTRLWAY_OPEN, 0x00,   
	};
	
	uint8_t DevCondBuf[] =  //9个字节
	{
/*  动作锁定不关联房态             与卡无关       其他条件                执行方式   */		
		0x01,                           0x00,   0x00,0x00,0x00,0x00,0x00,0x00,    LIGHT_SCENE_ONE,
	};
	
	
	uint8_t DevCtrlBuf[] = 
	{
/*  设备类型         设备地址    输出回路          设备输出    数据备用   */		
		DEV_C5MUSIC_Type, 0x01,      LOOPCH01,0x00,      0x21,27,  0x00,0x00,   //场景打开 指定播放词条 提示早餐

	};
	Dbg_Println(DBG_BIT_LOGIC_STATUS_bit,"Add Scene, ID:%d, Scene Name:%s",DevCoreBuf[0], DevName);
	//判断扩展设备个数
	BLV_DevAction_Add(DevCoreBuf, DevName, DevInputBuf, DevCondBuf, sizeof(DevCtrlBuf)/sizeof(Dev_Action_OutCfg), (uint8_t *)DevCtrlBuf);
}

/*自定义场景*/
void BLV_DevAction_C12ZhanTing_CheckOutToneScene_Add(void)
{
	uint8_t DevCoreBuf[] = //2字节
	{
		CheckOutTone,0x00,//场景编号
	};
	char DevName[] = "CheckOutToneScene";//32个字节
	
	uint8_t DevInputBuf[] = 
	{
/*   设备类型           设备地址   输入回路         输入类型               */		
		 Dev_Host_Service,   0x00,     LOOPCH01,0x00,   DEV_CTRLWAY_OPEN, 0x00,   
	};
	
	uint8_t DevCondBuf[] =  //9个字节
	{
/*  动作锁定不关联房态             与卡无关       其他条件                执行方式   */		
		0x01,                           0x00,   0x00,0x00,0x00,0x00,0x00,0x00,    LIGHT_SCENE_ONE,
	};
	
	
	uint8_t DevCtrlBuf[] = 
	{
/*  设备类型         设备地址    输出回路          设备输出    数据备用   */		
		DEV_C5MUSIC_Type, 0x01,      LOOPCH01,0x00,      0x21,28,  0x00,0x00,   //场景打开 指定播放词条 提示退房

	};
	Dbg_Println(DBG_BIT_LOGIC_STATUS_bit,"Add Scene, ID:%d, Scene Name:%s",DevCoreBuf[0], DevName);
	//判断扩展设备个数
	BLV_DevAction_Add(DevCoreBuf, DevName, DevInputBuf, DevCondBuf, sizeof(DevCtrlBuf)/sizeof(Dev_Action_OutCfg), (uint8_t *)DevCtrlBuf);
}

void BLV_DevAction_C12ZhanTing_Swi5IN06_Add(void)
{
	uint8_t DevCoreBuf[] = //2字节
	{
		HypnoticModeNo,0x00,//场景编号
	};
	char DevName[] = "Swi5IN06";//32个字节
	
	uint8_t DevInputBuf[] = 
	{
/*  设备类型       设备地址   输入回路          输入类型            */		
		DEV_SWI_TYPE,   0x05,      LOOPCH06,0x00,   KeyPress, 0x00,       
	};
	
	uint8_t DevCondBuf[] =  //9个字节
	{
/*  动作启用不关联房态             插卡有效       其他条件  提示音              执行方式   */		
		0x00,                           0x03,    0x00,0x00,0x00,0x80,0x01,0x01,    LIGHT_SCENE_ONE,
	};
	
	uint8_t DevCtrlBuf[] = 
	{
/*  设备类型         设备地址     输出回路           设备输出    数据备用   */		

		Dev_Host_HVout,    0x00,      LOOPCH02,0x00,      0x01,0x00,  0x00,0x00,
		Dev_Host_HVout,    0x00,      LOOPCH02,0x00,      0x02,0x00,  0x0A,0x03,
		
		Dev_Host_HVout,    0x00,      LOOPCH03,0x00,      0x02,0x00,  0x00,0x00,
		Dev_Host_HVout,    0x00,      LOOPCH04,0x00,      0x02,0x00,  0x00,0x00,
		Dev_Host_HVout,    0x00,      LOOPCH05,0x00,      0x02,0x00,  0x00,0x00,
		Dev_Host_HVout,    0x00,      LOOPCH06,0x00,      0x02,0x00,  0x00,0x00,
		
		DEV_C12DIMMING_Type, 0x00,   LOOPCH01,0x00,      0x02,0x00,  0x00,0x00,
		DEV_C12DIMMING_Type, 0x00,   LOOPCH03,0x00,      0x02,0x00,  0x00,0x00,
		DEV_C12DIMMING_Type, 0x00,   LOOPCH04,0x00,      0x02,0x00,  0x00,0x00,
		DEV_C12DIMMING_Type, 0x00,   LOOPCH05,0x00,      0x02,0x00,  0x00,0x00,
		DEV_C12DIMMING_Type, 0x00,   LOOPCH06,0x00,      0x02,0x00,  0x00,0x00,
		DEV_C12DIMMING_Type, 0x00,   LOOPCH07,0x00,      0x02,0x00,  0x00,0x00,
		DEV_C12DIMMING_Type, 0x00,   LOOPCH08,0x00,      0x02,0x00,  0x00,0x00,
		DEV_C12DIMMING_Type, 0x00,   LOOPCH09,0x00,      0x02,0x00,  0x00,0x00,
		DEV_C12DIMMING_Type, 0x00,   LOOPCH10,0x00,      0x02,0x00,  0x00,0x00,
		
		Dev_Host_Invalid,   0x00,   OpenAllRGB,0x00,    0x02,0x00,  0x00,0x00,        //控制自定义场景
//		DEV_RGB_LIGHT_BELT_Type,0x01,LOOPCH01,0x00,      0x01,100,  0x00,0x00,
//		DEV_RGB_LIGHT_BELT_Type,0x01,LOOPCH02,0x00,      0x02,0x00,  0x00,0x00,
//		DEV_RGB_LIGHT_BELT_Type,0x01,LOOPCH03,0x00,      0x01,100,  0x00,0x00,
//		
//		DEV_RGB_LIGHT_BELT_Type,0x02,LOOPCH01,0x00,      0x01,100,  0x00,0x00,
//		DEV_RGB_LIGHT_BELT_Type,0x02,LOOPCH02,0x00,      0x02,0x00,  0x00,0x00,
//		DEV_RGB_LIGHT_BELT_Type,0x02,LOOPCH03,0x00,      0x01,100,  0x00,0x00,
		
		DEV_C5MUSIC_Type, 0x01,      LOOPCH01,0x00,      0x71,1,  0x00,0x00,   //场景打开 指定播放词条 助眠
//		DEV_C5MUSIC_Type, 0x01,      LOOPCH01,0x00,      0x22,0x01,  0x00,0x00,   //场景打开 指定播放词条  对于不同种类的背景音乐，执行方式有差异
				
		Dev_NodeCurtain, 0x00,      LOOPCH01,0x00,    0x02,0x00,  0x00,0x00,        //控制窗帘
		Dev_NodeCurtain, 0x01,      LOOPCH01,0x00,    0x02,0x00,  0x00,0x00,        //控制窗帘
		
	
		DEV_SWI_TYPE,     0x05,      LOOPCH06,0x00,      0x03,0x64,  0x00,0x00,
	};
	Dbg_Println(DBG_BIT_LOGIC_STATUS_bit,"Add Scene, ID:%d, Scene Name:%s",DevCoreBuf[0], DevName);
	//判断扩展设备个数
	BLV_DevAction_Add(DevCoreBuf, DevName, DevInputBuf, DevCondBuf, sizeof(DevCtrlBuf)/sizeof(Dev_Action_OutCfg), DevCtrlBuf);
}

void BLV_DevAction_C12ZhanTing_Swi6IN05_Add(void)
{
	uint8_t DevCoreBuf[] = //2字节
	{
		0x00,0x00,//场景编号
	};
	char DevName[] = "Swi6IN05";//32个字节
	
	uint8_t DevInputBuf[] = 
	{
/*  设备类型       设备地址   输入回路          输入类型            */		
		DEV_SWI_TYPE,   0x06,      LOOPCH05,0x00,   KeyPress, 0x00,       
	};
	
	uint8_t DevCondBuf[] =  //9个字节
	{
/*  动作启用不关联房态             插卡有效       其他条件  提示音              执行方式   */		
		0x00,                           0x03,    0x00,0x00,0x00,0x80,0x01,0x01,    LIGHT_SCENE_TWO,
	};
	
	uint8_t DevCtrlBuf[] = 
	{
/*  设备类型         设备地址     输出回路           设备输出    数据备用   */		

		Dev_Host_HVout,    0x00,      LOOPCH02,0x00,      0x02,0x00,  0x00,0x00,
		Dev_Host_HVout,    0x00,      LOOPCH03,0x00,      0x01,0x00,  0x00,0x00,
//		Dev_Host_HVout,    0x00,      LOOPCH04,0x00,      0x02,0x00,  0x00,0x00,
		
		
		DEV_C12DIMMING_Type, 0x00,   LOOPCH07,0x00,      0x01,80,  0x00,0x00,
		
		
//		Dev_Host_Invalid,   0x00,   CloseAllRGB,0x00,    0x01,0x00,  0x00,0x00,        //控制自定义场景
//		DEV_RGB_LIGHT_BELT_Type,0x01,LOOPCH01,0x00,      0x01,100,  0x00,0x00,
//		DEV_RGB_LIGHT_BELT_Type,0x01,LOOPCH02,0x00,      0x02,0x00,  0x00,0x00,
//		DEV_RGB_LIGHT_BELT_Type,0x01,LOOPCH03,0x00,      0x01,100,  0x00,0x00,
//		
//		DEV_RGB_LIGHT_BELT_Type,0x02,LOOPCH01,0x00,      0x01,100,  0x00,0x00,
//		DEV_RGB_LIGHT_BELT_Type,0x02,LOOPCH02,0x00,      0x02,0x00,  0x00,0x00,
//		DEV_RGB_LIGHT_BELT_Type,0x02,LOOPCH03,0x00,      0x01,100,  0x00,0x00,
		
		DEV_C5MUSIC_Type, 0x01,      LOOPCH01,0x00,      0x21,1,  0x00,0x00,   //场景打开 指定播放词条 
		DEV_C5MUSIC_Type, 0x01,      LOOPCH01,0x00,      0x22,0x01,  0x00,0x00,   //场景打开 指定播放词条  对于不同种类的背景音乐，执行方式有差异
				
//		Dev_NodeCurtain, 0x00,      LOOPCH01,0x00,    0x02,0x00,  0x00,0x00,        //控制窗帘
//		Dev_NodeCurtain, 0x01,      LOOPCH01,0x00,    0x02,0x00,  0x00,0x00,        //控制窗帘
		
	
		DEV_SWI_TYPE,     0x06,      LOOPCH05,0x00,      0x03,0x64,  0x00,0x00,
	};
	Dbg_Println(DBG_BIT_LOGIC_STATUS_bit,"Add Scene, ID:%d, Scene Name:%s",DevCoreBuf[0], DevName);
	//判断扩展设备个数
	BLV_DevAction_Add(DevCoreBuf, DevName, DevInputBuf, DevCondBuf, sizeof(DevCtrlBuf)/sizeof(Dev_Action_OutCfg), DevCtrlBuf);
}

void BLV_DevAction_C12ZhanTing_Swi7IN02_Add(void)
{
	uint8_t DevCoreBuf[] = //2字节
	{
		0x00,0x00,//场景编号
	};
	char DevName[] = "Swi7IN02";//32个字节
	
	uint8_t DevInputBuf[] = 
	{
/*  设备类型       设备地址   输入回路          输入类型            */		
		DEV_SWI_TYPE,   0x07,      LOOPCH02,0x00,   KeyPress, 0x00,       
	};
	
	uint8_t DevCondBuf[] =  //9个字节
	{
/*  动作启用不关联房态             插卡有效       其他条件  提示音              执行方式   */		
		0x00,                           0x03,    0x00,0x00,0x00,0x80,0x01,0x01,    LIGHT_SCENE_TWO,
	};
	
	uint8_t DevCtrlBuf[] = 
	{
/*  设备类型         设备地址     输出回路           设备输出    数据备用   */		

//		Dev_Host_HVout,    0x00,      LOOPCH02,0x00,      0x02,0x00,  0x00,0x00,
//		Dev_Host_HVout,    0x00,      LOOPCH03,0x00,      0x01,0x00,  0x00,0x00,
//		Dev_Host_HVout,    0x00,      LOOPCH04,0x00,      0x02,0x00,  0x00,0x00,
		
		
//		DEV_C12DIMMING_Type, 0x00,   LOOPCH07,0x00,      0x01,80,  0x00,0x00,
		
		
//		Dev_Host_Invalid,   0x00,   CloseAllRGB,0x00,    0x01,0x00,  0x00,0x00,        //控制自定义场景
//		DEV_RGB_LIGHT_BELT_Type,0x01,LOOPCH01,0x00,      0x01,100,  0x00,0x00,
//		DEV_RGB_LIGHT_BELT_Type,0x01,LOOPCH02,0x00,      0x02,0x00,  0x00,0x00,
//		DEV_RGB_LIGHT_BELT_Type,0x01,LOOPCH03,0x00,      0x01,100,  0x00,0x00,
//		
//		DEV_RGB_LIGHT_BELT_Type,0x02,LOOPCH01,0x00,      0x01,100,  0x00,0x00,
//		DEV_RGB_LIGHT_BELT_Type,0x02,LOOPCH02,0x00,      0x02,0x00,  0x00,0x00,
//		DEV_RGB_LIGHT_BELT_Type,0x02,LOOPCH03,0x00,      0x01,100,  0x00,0x00,
		
		DEV_C5MUSIC_Type, 0x01,      LOOPCH01,0x00,      0x21,1,  0x00,0x00,   //场景打开 指定播放词条 
		DEV_C5MUSIC_Type, 0x01,      LOOPCH01,0x00,      0x22,0x01,  0x00,0x00,   //场景打开 指定播放词条  对于不同种类的背景音乐，执行方式有差异
				
		Dev_NodeCurtain, 0x00,      LOOPCH01,0x00,    0x01,0x00,  0x00,0x00,        //控制窗帘
//		Dev_NodeCurtain, 0x01,      LOOPCH01,0x00,    0x02,0x00,  0x00,0x00,        //控制窗帘
		
	
		DEV_SWI_TYPE,     0x07,      LOOPCH02,0x00,      0x03,0x64,  0x00,0x00,
	};
	Dbg_Println(DBG_BIT_LOGIC_STATUS_bit,"Add Scene, ID:%d, Scene Name:%s",DevCoreBuf[0], DevName);
	//判断扩展设备个数
	BLV_DevAction_Add(DevCoreBuf, DevName, DevInputBuf, DevCondBuf, sizeof(DevCtrlBuf)/sizeof(Dev_Action_OutCfg), DevCtrlBuf);
}

void BLV_DevAction_C12ZhanTing_Swi7IN05_Add(void)
{
	uint8_t DevCoreBuf[] = //2字节
	{
		0x00,0x00,//场景编号
	};
	char DevName[] = "Swi7IN05";//32个字节
	
	uint8_t DevInputBuf[] = 
	{
/*  设备类型       设备地址   输入回路          输入类型            */		
		DEV_SWI_TYPE,   0x07,      LOOPCH05,0x00,   KeyPress, 0x00,       
	};
	
	uint8_t DevCondBuf[] =  //9个字节
	{
/*  动作启用不关联房态             插卡有效       其他条件  提示音              执行方式   */		
		0x00,                           0x03,    0x00,0x00,0x00,0x80,0x01,0x01,    LIGHT_SCENE_TWO,
	};
	
	uint8_t DevCtrlBuf[] = 
	{
/*  设备类型         设备地址     输出回路           设备输出    数据备用   */		

//		Dev_Host_HVout,    0x00,      LOOPCH02,0x00,      0x02,0x00,  0x00,0x00,
//		Dev_Host_HVout,    0x00,      LOOPCH03,0x00,      0x01,0x00,  0x00,0x00,
//		Dev_Host_HVout,    0x00,      LOOPCH04,0x00,      0x02,0x00,  0x00,0x00,
		
		
//		DEV_C12DIMMING_Type, 0x00,   LOOPCH07,0x00,      0x01,80,  0x00,0x00,
		
		
//		Dev_Host_Invalid,   0x00,   CloseAllRGB,0x00,    0x01,0x00,  0x00,0x00,        //控制自定义场景
//		DEV_RGB_LIGHT_BELT_Type,0x01,LOOPCH01,0x00,      0x01,100,  0x00,0x00,
//		DEV_RGB_LIGHT_BELT_Type,0x01,LOOPCH02,0x00,      0x02,0x00,  0x00,0x00,
//		DEV_RGB_LIGHT_BELT_Type,0x01,LOOPCH03,0x00,      0x01,100,  0x00,0x00,
//		
//		DEV_RGB_LIGHT_BELT_Type,0x02,LOOPCH01,0x00,      0x01,100,  0x00,0x00,
//		DEV_RGB_LIGHT_BELT_Type,0x02,LOOPCH02,0x00,      0x02,0x00,  0x00,0x00,
//		DEV_RGB_LIGHT_BELT_Type,0x02,LOOPCH03,0x00,      0x01,100,  0x00,0x00,
		
		DEV_C5MUSIC_Type, 0x01,      LOOPCH01,0x00,      0x21,1,  0x00,0x00,   //场景打开 指定播放词条 
		DEV_C5MUSIC_Type, 0x01,      LOOPCH01,0x00,      0x22,0x01,  0x00,0x00,   //场景打开 指定播放词条  对于不同种类的背景音乐，执行方式有差异
				
		Dev_NodeCurtain, 0x00,      LOOPCH01,0x00,    0x02,0x00,  0x00,0x00,        //控制窗帘
//		Dev_NodeCurtain, 0x01,      LOOPCH01,0x00,    0x02,0x00,  0x00,0x00,        //控制窗帘
		
	
		DEV_SWI_TYPE,     0x07,      LOOPCH05,0x00,      0x03,0x64,  0x00,0x00,
	};
	Dbg_Println(DBG_BIT_LOGIC_STATUS_bit,"Add Scene, ID:%d, Scene Name:%s",DevCoreBuf[0], DevName);
	//判断扩展设备个数
	BLV_DevAction_Add(DevCoreBuf, DevName, DevInputBuf, DevCondBuf, sizeof(DevCtrlBuf)/sizeof(Dev_Action_OutCfg), DevCtrlBuf);
}

void BLV_DevAction_C12ZhanTing_Swi8IN02_Add(void)
{
	uint8_t DevCoreBuf[] = //2字节
	{
		0x00,0x00,//场景编号
	};
	char DevName[] = "Swi8IN02";//32个字节
	
	uint8_t DevInputBuf[] = 
	{
/*  设备类型       设备地址   输入回路          输入类型            */		
		DEV_SWI_TYPE,   0x08,      LOOPCH02,0x00,   KeyPress, 0x00,       
	};
	
	uint8_t DevCondBuf[] =  //9个字节
	{
/*  动作启用不关联房态             插卡有效       其他条件  提示音              执行方式   */		
		0x00,                           0x03,    0x00,0x00,0x00,0x80,0x01,0x01,    LIGHT_SCENE_TWO,
	};
	
	uint8_t DevCtrlBuf[] = 
	{
/*  设备类型         设备地址     输出回路           设备输出    数据备用   */		

//		Dev_Host_HVout,    0x00,      LOOPCH02,0x00,      0x02,0x00,  0x00,0x00,
//		Dev_Host_HVout,    0x00,      LOOPCH03,0x00,      0x01,0x00,  0x00,0x00,
//		Dev_Host_HVout,    0x00,      LOOPCH04,0x00,      0x02,0x00,  0x00,0x00,
		
		
//		DEV_C12DIMMING_Type, 0x00,   LOOPCH07,0x00,      0x01,80,  0x00,0x00,
		
		
//		Dev_Host_Invalid,   0x00,   CloseAllRGB,0x00,    0x01,0x00,  0x00,0x00,        //控制自定义场景
//		DEV_RGB_LIGHT_BELT_Type,0x01,LOOPCH01,0x00,      0x01,100,  0x00,0x00,
//		DEV_RGB_LIGHT_BELT_Type,0x01,LOOPCH02,0x00,      0x02,0x00,  0x00,0x00,
//		DEV_RGB_LIGHT_BELT_Type,0x01,LOOPCH03,0x00,      0x01,100,  0x00,0x00,
//		
//		DEV_RGB_LIGHT_BELT_Type,0x02,LOOPCH01,0x00,      0x01,100,  0x00,0x00,
//		DEV_RGB_LIGHT_BELT_Type,0x02,LOOPCH02,0x00,      0x02,0x00,  0x00,0x00,
//		DEV_RGB_LIGHT_BELT_Type,0x02,LOOPCH03,0x00,      0x01,100,  0x00,0x00,
		
		DEV_C5MUSIC_Type, 0x01,      LOOPCH01,0x00,      0x21,1,  0x00,0x00,   //场景打开 指定播放词条 
		DEV_C5MUSIC_Type, 0x01,      LOOPCH01,0x00,      0x22,0x01,  0x00,0x00,   //场景打开 指定播放词条  对于不同种类的背景音乐，执行方式有差异
				
//		Dev_NodeCurtain, 0x00,      LOOPCH01,0x00,    0x01,0x00,  0x00,0x00,        //控制窗帘
		Dev_NodeCurtain, 0x01,      LOOPCH01,0x00,    0x01,0x00,  0x00,0x00,        //控制窗帘
		
	
		DEV_SWI_TYPE,     0x08,      LOOPCH02,0x00,      0x03,0x64,  0x00,0x00,
	};
	Dbg_Println(DBG_BIT_LOGIC_STATUS_bit,"Add Scene, ID:%d, Scene Name:%s",DevCoreBuf[0], DevName);
	//判断扩展设备个数
	BLV_DevAction_Add(DevCoreBuf, DevName, DevInputBuf, DevCondBuf, sizeof(DevCtrlBuf)/sizeof(Dev_Action_OutCfg), DevCtrlBuf);
}

void BLV_DevAction_C12ZhanTing_Swi8IN05_Add(void)
{
	uint8_t DevCoreBuf[] = //2字节
	{
		0x00,0x00,//场景编号
	};
	char DevName[] = "Swi8IN05";//32个字节
	
	uint8_t DevInputBuf[] = 
	{
/*  设备类型       设备地址   输入回路          输入类型            */		
		DEV_SWI_TYPE,   0x08,      LOOPCH05,0x00,   KeyPress, 0x00,       
	};
	
	uint8_t DevCondBuf[] =  //9个字节
	{
/*  动作启用不关联房态             插卡有效       其他条件  提示音              执行方式   */		
		0x00,                           0x03,    0x00,0x00,0x00,0x80,0x01,0x01,    LIGHT_SCENE_TWO,
	};
	
	uint8_t DevCtrlBuf[] = 
	{
/*  设备类型         设备地址     输出回路           设备输出    数据备用   */		

//		Dev_Host_HVout,    0x00,      LOOPCH02,0x00,      0x02,0x00,  0x00,0x00,
//		Dev_Host_HVout,    0x00,      LOOPCH03,0x00,      0x01,0x00,  0x00,0x00,
//		Dev_Host_HVout,    0x00,      LOOPCH04,0x00,      0x02,0x00,  0x00,0x00,
		
		
//		DEV_C12DIMMING_Type, 0x00,   LOOPCH07,0x00,      0x01,80,  0x00,0x00,
		
		
//		Dev_Host_Invalid,   0x00,   CloseAllRGB,0x00,    0x01,0x00,  0x00,0x00,        //控制自定义场景
//		DEV_RGB_LIGHT_BELT_Type,0x01,LOOPCH01,0x00,      0x01,100,  0x00,0x00,
//		DEV_RGB_LIGHT_BELT_Type,0x01,LOOPCH02,0x00,      0x02,0x00,  0x00,0x00,
//		DEV_RGB_LIGHT_BELT_Type,0x01,LOOPCH03,0x00,      0x01,100,  0x00,0x00,
//		
//		DEV_RGB_LIGHT_BELT_Type,0x02,LOOPCH01,0x00,      0x01,100,  0x00,0x00,
//		DEV_RGB_LIGHT_BELT_Type,0x02,LOOPCH02,0x00,      0x02,0x00,  0x00,0x00,
//		DEV_RGB_LIGHT_BELT_Type,0x02,LOOPCH03,0x00,      0x01,100,  0x00,0x00,
		
		DEV_C5MUSIC_Type, 0x01,      LOOPCH01,0x00,      0x21,1,  0x00,0x00,   //场景打开 指定播放词条 
		DEV_C5MUSIC_Type, 0x01,      LOOPCH01,0x00,      0x22,0x01,  0x00,0x00,   //场景打开 指定播放词条  对于不同种类的背景音乐，执行方式有差异
				
//		Dev_NodeCurtain, 0x00,      LOOPCH01,0x00,    0x02,0x00,  0x00,0x00,        //控制窗帘
		Dev_NodeCurtain, 0x01,      LOOPCH01,0x00,    0x02,0x00,  0x00,0x00,        //控制窗帘
		
	
		DEV_SWI_TYPE,     0x08,      LOOPCH05,0x00,      0x03,0x64,  0x00,0x00,
	};
	Dbg_Println(DBG_BIT_LOGIC_STATUS_bit,"Add Scene, ID:%d, Scene Name:%s",DevCoreBuf[0], DevName);
	//判断扩展设备个数
	BLV_DevAction_Add(DevCoreBuf, DevName, DevInputBuf, DevCondBuf, sizeof(DevCtrlBuf)/sizeof(Dev_Action_OutCfg), DevCtrlBuf);
}

void BLV_DevAction_C12ZhanTing_Swi9IN05_Add(void)
{
	uint8_t DevCoreBuf[] = //2字节
	{
		0x00,0x00,//场景编号
	};
	char DevName[] = "Swi9IN05";//32个字节
	
	uint8_t DevInputBuf[] = 
	{
/*  设备类型       设备地址   输入回路          输入类型            */		
		DEV_SWI_TYPE,   0x09,      LOOPCH05,0x00,   KeyPress, 0x00,       
	};
	
	uint8_t DevCondBuf[] =  //9个字节
	{
/*  动作启用不关联房态             插卡有效       其他条件  提示音              执行方式   */		
		0x00,                           0x03,    0x00,0x00,0x00,0x80,0x01,0x01,    LIGHT_SCENE_TWO,
	};
	
	uint8_t DevCtrlBuf[] = 
	{
/*  设备类型         设备地址     输出回路           设备输出    数据备用   */		

//		Dev_Host_HVout,    0x00,      LOOPCH02,0x00,      0x02,0x00,  0x00,0x00,
//		Dev_Host_HVout,    0x00,      LOOPCH03,0x00,      0x01,0x00,  0x00,0x00,
//		Dev_Host_HVout,    0x00,      LOOPCH04,0x00,      0x02,0x00,  0x00,0x00,
		
		
		DEV_C12DIMMING_Type, 0x00,   LOOPCH07,0x00,      0x01,80,  0x00,0x00,
		
		
//		Dev_Host_Invalid,   0x00,   CloseAllRGB,0x00,    0x01,0x00,  0x00,0x00,        //控制自定义场景
//		DEV_RGB_LIGHT_BELT_Type,0x01,LOOPCH01,0x00,      0x01,100,  0x00,0x00,
//		DEV_RGB_LIGHT_BELT_Type,0x01,LOOPCH02,0x00,      0x02,0x00,  0x00,0x00,
//		DEV_RGB_LIGHT_BELT_Type,0x01,LOOPCH03,0x00,      0x01,100,  0x00,0x00,
//		
//		DEV_RGB_LIGHT_BELT_Type,0x02,LOOPCH01,0x00,      0x01,100,  0x00,0x00,
//		DEV_RGB_LIGHT_BELT_Type,0x02,LOOPCH02,0x00,      0x02,0x00,  0x00,0x00,
//		DEV_RGB_LIGHT_BELT_Type,0x02,LOOPCH03,0x00,      0x01,100,  0x00,0x00,
		
		DEV_C5MUSIC_Type, 0x01,      LOOPCH01,0x00,      0x21,1,  0x00,0x00,   //场景打开 指定播放词条 
		DEV_C5MUSIC_Type, 0x01,      LOOPCH01,0x00,      0x22,0x01,  0x00,0x00,   //场景打开 指定播放词条  对于不同种类的背景音乐，执行方式有差异
				
//		Dev_NodeCurtain, 0x00,      LOOPCH01,0x00,    0x02,0x00,  0x00,0x00,        //控制窗帘
//		Dev_NodeCurtain, 0x01,      LOOPCH01,0x00,    0x02,0x00,  0x00,0x00,        //控制窗帘
		
	
		DEV_SWI_TYPE,     0x09,      LOOPCH05,0x00,      0x03,0x64,  0x00,0x00,
	};
	Dbg_Println(DBG_BIT_LOGIC_STATUS_bit,"Add Scene, ID:%d, Scene Name:%s",DevCoreBuf[0], DevName);
	//判断扩展设备个数
	BLV_DevAction_Add(DevCoreBuf, DevName, DevInputBuf, DevCondBuf, sizeof(DevCtrlBuf)/sizeof(Dev_Action_OutCfg), DevCtrlBuf);
}

void BLV_DevAction_C12ZhanTing_Swi10IN05_Add(void)
{
	uint8_t DevCoreBuf[] = //2字节
	{
		0x00,0x00,//场景编号
	};
	char DevName[] = "Swi10IN05";//32个字节
	
	uint8_t DevInputBuf[] = 
	{
/*  设备类型       设备地址   输入回路          输入类型            */		
		DEV_SWI_TYPE,   0x0A,      LOOPCH05,0x00,   KeyPress, 0x00,       
	};
	
	uint8_t DevCondBuf[] =  //9个字节
	{
/*  动作启用不关联房态             插卡有效       其他条件  提示音              执行方式   */		
		0x00,                           0x03,    0x00,0x00,0x00,0x80,0x01,0x01,    LIGHT_SCENE_TWO,
	};
	
	uint8_t DevCtrlBuf[] = 
	{
/*  设备类型         设备地址     输出回路           设备输出    数据备用   */		

//		Dev_Host_HVout,    0x00,      LOOPCH02,0x00,      0x02,0x00,  0x00,0x00,
		Dev_Host_HVout,    0x00,      LOOPCH03,0x00,      0x01,0x00,  0x00,0x00,
//		Dev_Host_HVout,    0x00,      LOOPCH04,0x00,      0x02,0x00,  0x00,0x00,
		
		
//		DEV_C12DIMMING_Type, 0x00,   LOOPCH07,0x00,      0x01,80,  0x00,0x00,
		
		
//		Dev_Host_Invalid,   0x00,   CloseAllRGB,0x00,    0x01,0x00,  0x00,0x00,        //控制自定义场景
//		DEV_RGB_LIGHT_BELT_Type,0x01,LOOPCH01,0x00,      0x01,100,  0x00,0x00,
//		DEV_RGB_LIGHT_BELT_Type,0x01,LOOPCH02,0x00,      0x02,0x00,  0x00,0x00,
//		DEV_RGB_LIGHT_BELT_Type,0x01,LOOPCH03,0x00,      0x01,100,  0x00,0x00,
//		
//		DEV_RGB_LIGHT_BELT_Type,0x02,LOOPCH01,0x00,      0x01,100,  0x00,0x00,
//		DEV_RGB_LIGHT_BELT_Type,0x02,LOOPCH02,0x00,      0x02,0x00,  0x00,0x00,
//		DEV_RGB_LIGHT_BELT_Type,0x02,LOOPCH03,0x00,      0x01,100,  0x00,0x00,
		
		DEV_C5MUSIC_Type, 0x01,      LOOPCH01,0x00,      0x21,1,  0x00,0x00,   //场景打开 指定播放词条 
		DEV_C5MUSIC_Type, 0x01,      LOOPCH01,0x00,      0x22,0x01,  0x00,0x00,   //场景打开 指定播放词条  对于不同种类的背景音乐，执行方式有差异
				
//		Dev_NodeCurtain, 0x00,      LOOPCH01,0x00,    0x02,0x00,  0x00,0x00,        //控制窗帘
//		Dev_NodeCurtain, 0x01,      LOOPCH01,0x00,    0x02,0x00,  0x00,0x00,        //控制窗帘
		
	
		DEV_SWI_TYPE,     0x0A,      LOOPCH05,0x00,      0x03,0x64,  0x00,0x00,
	};
	Dbg_Println(DBG_BIT_LOGIC_STATUS_bit,"Add Scene, ID:%d, Scene Name:%s",DevCoreBuf[0], DevName);
	//判断扩展设备个数
	BLV_DevAction_Add(DevCoreBuf, DevName, DevInputBuf, DevCondBuf, sizeof(DevCtrlBuf)/sizeof(Dev_Action_OutCfg), DevCtrlBuf);
}

void BLV_DevAction_C12ZhanTing_Swi11IN01_Add(void)
{
	uint8_t DevCoreBuf[] = //2字节
	{
		0x00,0x00,//场景编号
	};
	char DevName[] = "Swi11IN01";//32个字节
	
	uint8_t DevInputBuf[] = 
	{
/*  设备类型       设备地址   输入回路          输入类型            */		
		DEV_SWI_TYPE,   0xB,      LOOPCH01,0x00,   KeyPress, 0x00,       
	};
	
	uint8_t DevCondBuf[] =  //9个字节
	{
/*  动作启用不关联房态             插卡有效       其他条件  提示音              执行方式   */		
		0x00,                           0x03,    0x00,0x00,0x00,0x80,0x01,0x01,    LIGHT_SCENE_TWO,
	};
	
	uint8_t DevCtrlBuf[] = 
	{
/*  设备类型         设备地址     输出回路           设备输出    数据备用   */		

//		Dev_Host_HVout,    0x00,      LOOPCH02,0x00,      0x02,0x00,  0x00,0x00,
//		Dev_Host_HVout,    0x00,      LOOPCH03,0x00,      0x01,0x00,  0x00,0x00,
//		Dev_Host_HVout,    0x00,      LOOPCH04,0x00,      0x02,0x00,  0x00,0x00,
		
		
		DEV_C12DIMMING_Type, 0x00,   LOOPCH08,0x00,      0x01,80,  0x00,0x00,
		
		
//		Dev_Host_Invalid,   0x00,   CloseAllRGB,0x00,    0x01,0x00,  0x00,0x00,        //控制自定义场景
//		DEV_RGB_LIGHT_BELT_Type,0x01,LOOPCH01,0x00,      0x01,100,  0x00,0x00,
//		DEV_RGB_LIGHT_BELT_Type,0x01,LOOPCH02,0x00,      0x02,0x00,  0x00,0x00,
//		DEV_RGB_LIGHT_BELT_Type,0x01,LOOPCH03,0x00,      0x01,100,  0x00,0x00,
//		
//		DEV_RGB_LIGHT_BELT_Type,0x02,LOOPCH01,0x00,      0x01,100,  0x00,0x00,
//		DEV_RGB_LIGHT_BELT_Type,0x02,LOOPCH02,0x00,      0x02,0x00,  0x00,0x00,
//		DEV_RGB_LIGHT_BELT_Type,0x02,LOOPCH03,0x00,      0x01,100,  0x00,0x00,
	
		DEV_RGB_LIGHT_BELT_Type,0x03,LOOPCH01,0x00,      0x02,00,  0x00,0x00,
		DEV_RGB_LIGHT_BELT_Type,0x03,LOOPCH02,0x00,      0x01,100,  0x00,0x00,
		DEV_RGB_LIGHT_BELT_Type,0x03,LOOPCH03,0x00,      0x01,100,  0x00,0x00,

		DEV_C5MUSIC_Type, 0x01,      LOOPCH01,0x00,      0x21,1,  0x00,0x00,   //场景打开 指定播放词条 
		DEV_C5MUSIC_Type, 0x01,      LOOPCH01,0x00,      0x22,0x01,  0x00,0x00,   //场景打开 指定播放词条  对于不同种类的背景音乐，执行方式有差异
				
//		Dev_NodeCurtain, 0x00,      LOOPCH01,0x00,    0x02,0x00,  0x00,0x00,        //控制窗帘
//		Dev_NodeCurtain, 0x01,      LOOPCH01,0x00,    0x02,0x00,  0x00,0x00,        //控制窗帘
		
	
		DEV_SWI_TYPE,     0x0B,      LOOPCH01,0x00,      0x03,0x64,  0x00,0x00,
	};
	Dbg_Println(DBG_BIT_LOGIC_STATUS_bit,"Add Scene, ID:%d, Scene Name:%s",DevCoreBuf[0], DevName);
	//判断扩展设备个数
	BLV_DevAction_Add(DevCoreBuf, DevName, DevInputBuf, DevCondBuf, sizeof(DevCtrlBuf)/sizeof(Dev_Action_OutCfg), DevCtrlBuf);
}

void BLV_DevAction_C12ZhanTing_Swi11IN03_Add(void)
{
	uint8_t DevCoreBuf[] = //2字节
	{
		0x00,0x00,//场景编号
	};
	char DevName[] = "Swi11IN03";//32个字节
	
	uint8_t DevInputBuf[] = 
	{
/*  设备类型       设备地址   输入回路          输入类型            */		
		DEV_SWI_TYPE,   0xB,      LOOPCH03,0x00,   KeyPress, 0x00,       
	};
	
	uint8_t DevCondBuf[] =  //9个字节
	{
/*  动作启用不关联房态             插卡有效       其他条件  提示音              执行方式   */		
		0x00,                           0x03,    0x00,0x00,0x00,0x80,0x01,0x01,    LIGHT_SCENE_TWO,
	};
	
	uint8_t DevCtrlBuf[] = 
	{
/*  设备类型         设备地址     输出回路           设备输出    数据备用   */		

//		Dev_Host_HVout,    0x00,      LOOPCH02,0x00,      0x02,0x00,  0x00,0x00,
//		Dev_Host_HVout,    0x00,      LOOPCH03,0x00,      0x01,0x00,  0x00,0x00,
//		Dev_Host_HVout,    0x00,      LOOPCH04,0x00,      0x02,0x00,  0x00,0x00,
		
		
		DEV_C12DIMMING_Type, 0x00,   LOOPCH09,0x00,      0x01,80,  0x00,0x00,
		
		
//		Dev_Host_Invalid,   0x00,   CloseAllRGB,0x00,    0x01,0x00,  0x00,0x00,        //控制自定义场景
//		DEV_RGB_LIGHT_BELT_Type,0x01,LOOPCH01,0x00,      0x01,100,  0x00,0x00,
//		DEV_RGB_LIGHT_BELT_Type,0x01,LOOPCH02,0x00,      0x02,0x00,  0x00,0x00,
//		DEV_RGB_LIGHT_BELT_Type,0x01,LOOPCH03,0x00,      0x01,100,  0x00,0x00,
//		
//		DEV_RGB_LIGHT_BELT_Type,0x02,LOOPCH01,0x00,      0x01,100,  0x00,0x00,
//		DEV_RGB_LIGHT_BELT_Type,0x02,LOOPCH02,0x00,      0x02,0x00,  0x00,0x00,
//		DEV_RGB_LIGHT_BELT_Type,0x02,LOOPCH03,0x00,      0x01,100,  0x00,0x00,
		
		DEV_RGB_LIGHT_BELT_Type,0x03,LOOPCH01,0x00,      0x01,100,  0x00,0x00,
		DEV_RGB_LIGHT_BELT_Type,0x03,LOOPCH02,0x00,      0x02,00,  0x00,0x00,
		DEV_RGB_LIGHT_BELT_Type,0x03,LOOPCH03,0x00,      0x01,100,  0x00,0x00,
		
		DEV_C5MUSIC_Type, 0x01,      LOOPCH01,0x00,      0x21,1,  0x00,0x00,   //场景打开 指定播放词条 
		DEV_C5MUSIC_Type, 0x01,      LOOPCH01,0x00,      0x22,0x01,  0x00,0x00,   //场景打开 指定播放词条  对于不同种类的背景音乐，执行方式有差异
				
//		Dev_NodeCurtain, 0x00,      LOOPCH01,0x00,    0x02,0x00,  0x00,0x00,        //控制窗帘
//		Dev_NodeCurtain, 0x01,      LOOPCH01,0x00,    0x02,0x00,  0x00,0x00,        //控制窗帘
		
	
		DEV_SWI_TYPE,     0x0B,      LOOPCH03,0x00,      0x03,0x64,  0x00,0x00,
	};
	Dbg_Println(DBG_BIT_LOGIC_STATUS_bit,"Add Scene, ID:%d, Scene Name:%s",DevCoreBuf[0], DevName);
	//判断扩展设备个数
	BLV_DevAction_Add(DevCoreBuf, DevName, DevInputBuf, DevCondBuf, sizeof(DevCtrlBuf)/sizeof(Dev_Action_OutCfg), DevCtrlBuf);
}

void BLV_DevAction_C12ZhanTing_Swi11IN04_Add(void)
{
	uint8_t DevCoreBuf[] = //2字节
	{
		0x00,0x00,//场景编号
	};
	char DevName[] = "Swi11IN04";//32个字节
	
	uint8_t DevInputBuf[] = 
	{
/*  设备类型       设备地址   输入回路          输入类型            */		
		DEV_SWI_TYPE,   0xB,      LOOPCH04,0x00,   KeyPress, 0x00,       
	};
	
	uint8_t DevCondBuf[] =  //9个字节
	{
/*  动作启用不关联房态             插卡有效       其他条件  提示音              执行方式   */		
		0x00,                           0x03,    0x00,0x00,0x00,0x80,0x01,0x01,    LIGHT_SCENE_TWO,
	};
	
	uint8_t DevCtrlBuf[] = 
	{
/*  设备类型         设备地址     输出回路           设备输出    数据备用   */		

//		Dev_Host_HVout,    0x00,      LOOPCH02,0x00,      0x02,0x00,  0x00,0x00,
//		Dev_Host_HVout,    0x00,      LOOPCH03,0x00,      0x01,0x00,  0x00,0x00,
//		Dev_Host_HVout,    0x00,      LOOPCH04,0x00,      0x02,0x00,  0x00,0x00,
		
		
		DEV_C12DIMMING_Type, 0x00,   LOOPCH10,0x00,      0x01,80,  0x00,0x00,
		
		
//		Dev_Host_Invalid,   0x00,   CloseAllRGB,0x00,    0x01,0x00,  0x00,0x00,        //控制自定义场景
//		DEV_RGB_LIGHT_BELT_Type,0x01,LOOPCH01,0x00,      0x01,100,  0x00,0x00,
//		DEV_RGB_LIGHT_BELT_Type,0x01,LOOPCH02,0x00,      0x02,0x00,  0x00,0x00,
//		DEV_RGB_LIGHT_BELT_Type,0x01,LOOPCH03,0x00,      0x01,100,  0x00,0x00,
//		
//		DEV_RGB_LIGHT_BELT_Type,0x02,LOOPCH01,0x00,      0x01,100,  0x00,0x00,
//		DEV_RGB_LIGHT_BELT_Type,0x02,LOOPCH02,0x00,      0x02,0x00,  0x00,0x00,
//		DEV_RGB_LIGHT_BELT_Type,0x02,LOOPCH03,0x00,      0x01,100,  0x00,0x00,

		DEV_RGB_LIGHT_BELT_Type,0x03,LOOPCH01,0x00,      0x01,100,  0x00,0x00,
		DEV_RGB_LIGHT_BELT_Type,0x03,LOOPCH02,0x00,      0x01,100,  0x00,0x00,
		DEV_RGB_LIGHT_BELT_Type,0x03,LOOPCH03,0x00,      0x02,00,  0x00,0x00,
		
		DEV_C5MUSIC_Type, 0x01,      LOOPCH01,0x00,      0x21,1,  0x00,0x00,   //场景打开 指定播放词条 
		DEV_C5MUSIC_Type, 0x01,      LOOPCH01,0x00,      0x22,0x01,  0x00,0x00,   //场景打开 指定播放词条  对于不同种类的背景音乐，执行方式有差异
				
//		Dev_NodeCurtain, 0x00,      LOOPCH01,0x00,    0x02,0x00,  0x00,0x00,        //控制窗帘
//		Dev_NodeCurtain, 0x01,      LOOPCH01,0x00,    0x02,0x00,  0x00,0x00,        //控制窗帘
		
	
		DEV_SWI_TYPE,     0x0B,      LOOPCH04,0x00,      0x03,0x64,  0x00,0x00,
	};
	Dbg_Println(DBG_BIT_LOGIC_STATUS_bit,"Add Scene, ID:%d, Scene Name:%s",DevCoreBuf[0], DevName);
	//判断扩展设备个数
	BLV_DevAction_Add(DevCoreBuf, DevName, DevInputBuf, DevCondBuf, sizeof(DevCtrlBuf)/sizeof(Dev_Action_OutCfg), DevCtrlBuf);
}

void BLV_DevAction_C12ZhanTing_Swi11IN06_Add(void)
{
	uint8_t DevCoreBuf[] = //2字节
	{
		0x00,0x00,//场景编号
	};
	char DevName[] = "Swi11IN06";//32个字节
	
	uint8_t DevInputBuf[] = 
	{
/*  设备类型       设备地址   输入回路          输入类型            */		
		DEV_SWI_TYPE,   0xB,      LOOPCH06,0x00,   KeyPress, 0x00,       
	};
	
	uint8_t DevCondBuf[] =  //9个字节
	{
/*  动作启用不关联房态             插卡有效       其他条件  提示音              执行方式   */		
		0x00,                           0x03,    0x00,0x00,0x00,0x80,0x01,0x01,    LIGHT_SCENE_TWO,
	};
	
	uint8_t DevCtrlBuf[] = 
	{
/*  设备类型         设备地址     输出回路           设备输出    数据备用   */		

//		Dev_Host_HVout,    0x00,      LOOPCH02,0x00,      0x02,0x00,  0x00,0x00,
//		Dev_Host_HVout,    0x00,      LOOPCH03,0x00,      0x01,0x00,  0x00,0x00,
		Dev_Host_HVout,    0x00,      LOOPCH04,0x00,      0x01,0x00,  0x00,0x00,
		
		
//		DEV_C12DIMMING_Type, 0x00,   LOOPCH10,0x00,      0x01,80,  0x00,0x00,
		
		
//		Dev_Host_Invalid,   0x00,   CloseAllRGB,0x00,    0x01,0x00,  0x00,0x00,        //控制自定义场景
//		DEV_RGB_LIGHT_BELT_Type,0x01,LOOPCH01,0x00,      0x01,100,  0x00,0x00,
//		DEV_RGB_LIGHT_BELT_Type,0x01,LOOPCH02,0x00,      0x02,0x00,  0x00,0x00,
//		DEV_RGB_LIGHT_BELT_Type,0x01,LOOPCH03,0x00,      0x01,100,  0x00,0x00,
//		
//		DEV_RGB_LIGHT_BELT_Type,0x02,LOOPCH01,0x00,      0x01,100,  0x00,0x00,
//		DEV_RGB_LIGHT_BELT_Type,0x02,LOOPCH02,0x00,      0x02,0x00,  0x00,0x00,
//		DEV_RGB_LIGHT_BELT_Type,0x02,LOOPCH03,0x00,      0x01,100,  0x00,0x00,
		
		DEV_C5MUSIC_Type, 0x01,      LOOPCH01,0x00,      0x21,1,  0x00,0x00,   //场景打开 指定播放词条 
		DEV_C5MUSIC_Type, 0x01,      LOOPCH01,0x00,      0x22,0x01,  0x00,0x00,   //场景打开 指定播放词条  对于不同种类的背景音乐，执行方式有差异
				
//		Dev_NodeCurtain, 0x00,      LOOPCH01,0x00,    0x02,0x00,  0x00,0x00,        //控制窗帘
//		Dev_NodeCurtain, 0x01,      LOOPCH01,0x00,    0x02,0x00,  0x00,0x00,        //控制窗帘
		
	
		DEV_SWI_TYPE,     0x0B,      LOOPCH06,0x00,      0x03,0x64,  0x00,0x00,
	};
	Dbg_Println(DBG_BIT_LOGIC_STATUS_bit,"Add Scene, ID:%d, Scene Name:%s",DevCoreBuf[0], DevName);
	//判断扩展设备个数
	BLV_DevAction_Add(DevCoreBuf, DevName, DevInputBuf, DevCondBuf, sizeof(DevCtrlBuf)/sizeof(Dev_Action_OutCfg), DevCtrlBuf);
}

/**
	*@项目名 
	*@机型   C5主机
	*@外设   485取电 0地址C7T开关 0地址温控器 1地址T1开关 1地址红外转发 
	*/
void BLV_Dev_C12ZhanTing_Data_Init(void)
{
	uint8_t DevBuf[] =  //每类设备 一共3+4+5 = 12字节
	{
/*  设备类型                   设备地址              端口号            波特率            协议类型   设备输入回路限制  设备输出回路限制    字符数据包 */		
		
		DEV_C5IO_Type,              0x00,                Bus_port,        0x00,0x00,0x00,0x00,  0x01,      0x00,0x00,        0x00,0x00,                      //C5IO存在 用于提供继电器 弱电输入 弱电输出的服务
		DEV_C5MUSIC_Type,           0x01,                Bus_port,        0x00,0x00,0x00,0x00,  0x01,      0x00,0x00,        0x00,0x00,
		DEV_RS485_PWM,              0x00,                Bus_port,        0x00,0xC2,0x01,0x00,  0x05,      0x00,0x00,        0x0C,0x00,
//		DEV_RS485_CARD,             0x01,                Polling_Port,    0x80,0x25,0x00,0x00,  0x01,      0x01,0x00,        0x00,0x00,                      //插卡取电   0路
		DEV_RGB_LIGHT_BELT_Type,    0x01,                Polling_Port,    0x80,0x25,0x00,0x00,  0x01,      0x00,0x00,        0x04,0x00,
		DEV_RGB_LIGHT_BELT_Type,    0x02,                Polling_Port,    0x80,0x25,0x00,0x00,  0x01,      0x00,0x00,        0x04,0x00,
		DEV_RGB_LIGHT_BELT_Type,    0x03,                Polling_Port,    0x80,0x25,0x00,0x00,  0x01,      0x00,0x00,        0x04,0x00,
		DEV_RS485_IR_SEND,          0x01,                Polling_Port,    0x80,0x25,0x00,0x00,  0x01,      0x00,0x00,        0x01,0x00,                      //红外转发   0路
//		DEV_RS485_PWM,              0x01,                Polling_Port,    0x80,0x25,0x00,0x00,  0x01,      0x00,0x00,        0x04,0x00,                      //插卡取电
		Dev_Host_HVout,             0x00,                Bus_port,        0x00,0xC2,0x01,0x00,  0x01,      0x00,0x00,        13,0x00,                      //继电器   20路
		Dev_Host_LVinput,           0x00,                0x00,            0x00,0x00,0x00,0x00,  0x00,      13,0x00,        0x00,0x00,                      //弱电输入 6路
		Dev_Host_LVoutput,          0x00,                0x00,            0x00,0x00,0x00,0x00,  0x00,      0x00,0x00,        0x05,0x00,                      //弱电输出 6路		
		Dev_Host_Service,           0x00,                0x00,            0x00,0x00,0x00,0x00,  0x00,      0x0D,0x00,        0x0D,0x00,                      //服务信息 13路
		Dev_NodeCurtain,            0x00,                0x00,            0x00,0x00,0x00,0x00,  0x00,      0x00,0x00,        0x00,0x00,                      //窗帘信息 0路
		Dev_NodeCurtain,            0x01,                0x00,            0x00,0x00,0x00,0x00,  0x00,      0x00,0x00,        0x00,0x00,                      //窗帘信息 1路
		
		DEV_RS485_CoreCtrl,         0x01,                Active_Port,     0x80,0x25,0x00,0x00,  0x01,      0x00,0x00,        0x00,0x00,                      //中控设备小宝 0路
		DEV_PCTEST_TYPE,            0x00,                Active_Port,     0x80,0x25,0x00,0x00,  0x01,      0x00,0x00,        0x00,0x00,                      //PC调试   0路
		DEV_SWI_TYPE,               0x02,                Active_Port,     0x80,0x25,0x00,0x00,  0x01,      0x06,0x00,        0x07,0x00,                      //开关     6路
		DEV_SWI_TYPE,               0x03,                Active_Port,     0x80,0x25,0x00,0x00,  0x01,      0x06,0x00,        0x07,0x00,                      //开关     6路
		DEV_SWI_TYPE,               0x04,                Active_Port,     0x80,0x25,0x00,0x00,  0x01,      0x06,0x00,        0x07,0x00,                      //开关     6路
		DEV_SWI_TYPE,               0x05,                Active_Port,     0x80,0x25,0x00,0x00,  0x01,      0x06,0x00,        0x07,0x00,                      //开关     6路
		DEV_SWI_TYPE,               0x06,                Active_Port,     0x80,0x25,0x00,0x00,  0x01,      0x06,0x00,        0x07,0x00,                      //开关     6路
		DEV_SWI_TYPE,               0x07,                Active_Port,     0x80,0x25,0x00,0x00,  0x01,      0x06,0x00,        0x07,0x00,                      //开关     6路
		DEV_SWI_TYPE,               0x08,                Active_Port,     0x80,0x25,0x00,0x00,  0x01,      0x06,0x00,        0x07,0x00,                      //开关     6路
		DEV_SWI_TYPE,               0x09,                Active_Port,     0x80,0x25,0x00,0x00,  0x01,      0x06,0x00,        0x07,0x00,                      //开关     6路
		DEV_SWI_TYPE,               0x0A,                Active_Port,     0x80,0x25,0x00,0x00,  0x01,      0x06,0x00,        0x07,0x00,                      //开关     6路
		DEV_SWI_TYPE,               0x0B,                Active_Port,     0x80,0x25,0x00,0x00,  0x01,      0x06,0x00,        0x07,0x00,                      //开关     6路
		DEV_SWI_TYPE,               0x01,                Active_Port,     0x80,0x25,0x00,0x00,  0x02,      23,0x00,          23,0x00,                       //开关     22路 温控器
		Dev_Host_TimeCtrl,          0x01,                Active_Port,     0x80,0x25,0x00,0x00,  0x01,      0x00,0x00,        0x00,0x00,                       //时间    0路
//    DEV_RS485_RFGatewayHost,    RFGATEWAYADDRDEFAULT,Active_Port,     0x80,0x25,0x00,0x00,  0x01,      0x00,0x00,        0x00,0x00,                      //主网关   0路
//		DEV_RS485_WxLock,           0x01,                Active_Port,     0x80,0x25,0x00,0x00,  0x01,      0x00,0x00,        0x01,0x00,                      //微信锁   1路 
	};
	
	BLV_Dev_Add(DevBuf, sizeof(DevBuf)/DEVDATALEN);
}

       
/**
	*@name BLV_DevAction_C12ZhanTing_Data_Init
	*@para 无
	*@ret  无   
	*/
void BLV_DevAction_C12ZhanTing_Data_Init(void)
{
//	BLV_DevAction_C12ZhanTing_Rs485CardIn_Add();   //485取电卡插入
//	BLV_DevAction_C12ZhanTing_Rs485CardOut_Add();   //485取电卡释放
	
	
	BLV_DevAction_C12ZhanTing_Rs485TemOn_Add();    //温控器开机
	BLV_DevAction_C12ZhanTing_Rs485TemOff_Add();    //温控器关机	
	BLV_DevAction_C12ZhanTing_Rs485TemCtrl_Add();    //温控器控制
	
	BLV_DevAction_C12ZhanTing_Rs485TemValveOpen_Add(); //阀门开
	BLV_DevAction_C12ZhanTing_Rs485TemValveClose_Add(); //阀门关

	BLV_DevAction_C12ZhanTing_Rs485TemFanStop_Add();    //温控器停	
	BLV_DevAction_C12ZhanTing_Rs485TemFanLow_Add();    //温控器低
	BLV_DevAction_C12ZhanTing_Rs485TemFanMid_Add();    //温控器中		
	BLV_DevAction_C12ZhanTing_Rs485TemFanHigh_Add();    //温控器高
	
	
	BLV_DevAction_C12ZhanTing_LVin01Press_Add();    //按下
	BLV_DevAction_C12ZhanTing_LVin01Release_Add();  //释放
	
	BLV_DevAction_C12ZhanTing_OpenAllRGBScene_Add();    //自定义场景
	BLV_DevAction_C12ZhanTing_CloseRelayScene_Add();    //自定义场景
	
//	BLV_DevAction_C12ZhanTing_RGBAddLighgtScene_Add();    //自定义场景
//	BLV_DevAction_C12ZhanTing_RGBSubLighgtScene_Add();    //自定义场景
	
	BLV_DevAction_C12ZhanTing_SleepToneScene_Add();   //自定义场景 提示夜已深
	BLV_DevAction_C12ZhanTing_MorningToneScene_Add();   //自定义场景 提示早餐
	BLV_DevAction_C12ZhanTing_CheckOutToneScene_Add();  //自定义场景 提示退房
	
	BLV_DevAction_C12ZhanTing_EleOpen_Add();        //插卡场景         
	BLV_DevAction_C12ZhanTing_EleClose_Add();       //拔卡场景
	
	BLV_DevAction_C12ZhanTing_DndOpen_Add();     //打开勿扰
	BLV_DevAction_C12ZhanTing_DndClose_Add();     //关闭勿扰
	BLV_DevAction_C12ZhanTing_CleanOpen_Add();     //打开清理
	BLV_DevAction_C12ZhanTing_CleanClose_Add();     //关闭清理
	
	
	BLV_DevAction_C12ZhanTing_DoorKeyPress_Add();   //干接点门磁按下
	BLV_DevAction_C12ZhanTing_DoorKeyRelease_Add();   //干接点门磁释放
	
	BLV_DevAction_C12ZhanTing_SOSKeyPress_Add();      //干接点SOS按下
	BLV_DevAction_C12ZhanTing_SOSKeyRelease_Add();   //干接点SOS释放
	
	BLV_DevAction_C12ZhanTing_Pir4Press_Add();        //柜磁 关门关灯
	BLV_DevAction_C12ZhanTing_Pir4Release_Add();      //柜磁 开门开灯
	
	BLV_DevAction_C12ZhanTing_Pir5Press_Add();        //窗磁 关窗关空调
	BLV_DevAction_C12ZhanTing_Pir5Release_Add();      //窗磁 开窗开空调
	

	BLV_DevAction_C12ZhanTing_LVinput6Press_Add();  //干接点按下开锁	//IN6 开蓝牙锁，开锁服务信息，10s关
	
	BLV_DevAction_C12ZhanTing_Pir8Release_Add();      //干接点红外释放 开保险箱服务，延时关
	BLV_DevAction_C12ZhanTing_Pir9Release_Add();      //干接点红外释放 延时关取电
	BLV_DevAction_C12ZhanTing_Pir10Release_Add();      //干接点红外释放 延时关取电
	BLV_DevAction_C12ZhanTing_Pir11Release_Add();      //干接点红外释放 开预约带租服务，延时关
	
	BLV_DevAction_C12ZhanTing_Pir9KeyPress_Add();     //开取电   开行李服务，延时关
	BLV_DevAction_C12ZhanTing_Pir10KeyPress_Add();     //开取电  开呼叫服务，延时关
	
	BLV_DevAction_C12ZhanTing_BellPress_Add();       //门铃按键按下

	BLV_DevAction_C12ZhanTing_CurtainOpen_Add();     //窗帘开动作
	BLV_DevAction_C12ZhanTing_CurtainClose_Add();     //窗帘关动作
	BLV_DevAction_C12ZhanTing_CurtainStop_Add();     //窗帘停动作
	
	BLV_DevAction_C12ZhanTing_ScreenOpen_Add();     //窗纱开动作
	BLV_DevAction_C12ZhanTing_ScreenClose_Add();     //窗纱关动作
	BLV_DevAction_C12ZhanTing_ScreenStop_Add();     //窗纱停动作

	BLV_DevAction_C12ZhanTing_Swi1IN01_Add();       //开锁
	BLV_DevAction_C12ZhanTing_Swi1IN02_Add();       //清理
	BLV_DevAction_C12ZhanTing_Swi1IN03_Add();       //勿扰
	BLV_DevAction_C12ZhanTing_Swi1IN04_Add();       //廊灯
	BLV_DevAction_C12ZhanTing_Swi1IN05_Add();       //温馨模式声音停止
	BLV_DevAction_C12ZhanTing_Swi1IN05L_Add();       //温馨模式带声音
	BLV_DevAction_C12ZhanTing_Swi1IN06_Add();       //明亮模式声音停止
	BLV_DevAction_C12ZhanTing_Swi1IN06L_Add();       //明亮模式带声音	
	BLV_DevAction_C12ZhanTing_Swi1IN07_Add();       //阅读模式声音停止
	BLV_DevAction_C12ZhanTing_Swi1IN07L_Add();       //阅读模式带声音  
	BLV_DevAction_C12ZhanTing_Swi1IN08_Add();       //浪漫模式声音停止
	BLV_DevAction_C12ZhanTing_Swi1IN08L_Add();       //浪漫模式带声音
	BLV_DevAction_C12ZhanTing_Swi1IN09_Add();       //睡眠模式声音停止
	BLV_DevAction_C12ZhanTing_Swi1IN09L_Add();       //睡眠模式带声音
	BLV_DevAction_C12ZhanTing_Swi1IN10_Add();       //电视模式声音停止
	BLV_DevAction_C12ZhanTing_Swi1IN10L_Add();       //电视模式带声音
	BLV_DevAction_C12ZhanTing_Swi1IN11_Add();       //清理
	BLV_DevAction_C12ZhanTing_Swi1IN12_Add();       //勿扰
	BLV_DevAction_C12ZhanTing_Swi1IN13_Add();       //廊灯
	BLV_DevAction_C12ZhanTing_Swi1IN14_Add();       //廊灯
	BLV_DevAction_C12ZhanTing_Swi1IN15_Add();       //阅读灯
	BLV_DevAction_C12ZhanTing_Swi1IN16_Add();       //房灯
	BLV_DevAction_C12ZhanTing_Swi1IN17_Add();       //排气扇
	BLV_DevAction_C12ZhanTing_Swi1IN18_Add();       //镜前灯
	BLV_DevAction_C12ZhanTing_Swi1IN19_Add();       //壁灯
	BLV_DevAction_C12ZhanTing_Swi1IN20_Add();       //窗帘开
	BLV_DevAction_C12ZhanTing_Swi1IN21_Add();       //窗帘关
	BLV_DevAction_C12ZhanTing_Swi1IN22_Add();       //窗纱开
	BLV_DevAction_C12ZhanTing_Swi1IN23_Add();       //窗纱关
	
	BLV_DevAction_C12ZhanTing_Swi2IN02_Add();       //是否退房
	BLV_DevAction_C12ZhanTing_Swi2IN02Open_Add();   //预约退房
	BLV_DevAction_C12ZhanTing_Swi2IN02Close_Add();  //取消退房

	BLV_DevAction_C12ZhanTing_Swi2IN04_Add();       //清理
	BLV_DevAction_C12ZhanTing_Swi2IN06_Add();       //勿扰

	BLV_DevAction_C12ZhanTing_Swi3IN02_Add();       //廊灯
	BLV_DevAction_C12ZhanTing_Swi3IN04_Add();       //欢迎模式声音停止
	BLV_DevAction_C12ZhanTing_Swi3IN04L_Add();       //欢迎模式带声音
	BLV_DevAction_C12ZhanTing_Swi3IN06_Add();       //会客模式声音停止
	BLV_DevAction_C12ZhanTing_Swi3IN06L_Add();       //会客模式带声音   
	
	BLV_DevAction_C12ZhanTing_Swi4IN01_Add();       //休闲模式声音停止
	BLV_DevAction_C12ZhanTing_Swi4IN01L_Add();       //休闲模式带声音
	BLV_DevAction_C12ZhanTing_Swi4IN02_Add();       //电视模式声音停止
	BLV_DevAction_C12ZhanTing_Swi4IN02L_Add();       //电视模式带声音	
	BLV_DevAction_C12ZhanTing_Swi4IN03_Add();       //摄像头
	BLV_DevAction_C12ZhanTing_Swi4IN04_Add();       //总控
	BLV_DevAction_C12ZhanTing_Swi4IN05_Add();       //睡眠模式
	
	BLV_DevAction_C12ZhanTing_Swi5IN01_Add();       //音量加
	BLV_DevAction_C12ZhanTing_Swi5IN02_Add();       //静音
	BLV_DevAction_C12ZhanTing_Swi5IN03_Add();       //音量减
	BLV_DevAction_C12ZhanTing_Swi5IN04_Add();       //调光加
	BLV_DevAction_C12ZhanTing_Swi5IN05_Add();       //调光减
	BLV_DevAction_C12ZhanTing_Swi5IN06_Add();       //助眠模式
	
	BLV_DevAction_C12ZhanTing_Swi6IN05_Add();       //阳台模式
	
	BLV_DevAction_C12ZhanTing_Swi7IN02_Add();       //窗帘开
	BLV_DevAction_C12ZhanTing_Swi7IN05_Add();       //窗帘关
	
	BLV_DevAction_C12ZhanTing_Swi8IN02_Add();       //窗纱开
	BLV_DevAction_C12ZhanTing_Swi8IN05_Add();       //窗纱关
	
	BLV_DevAction_C12ZhanTing_Swi9IN05_Add();       //阳台灯
	
	BLV_DevAction_C12ZhanTing_Swi10IN05_Add();       //壁灯
	
	BLV_DevAction_C12ZhanTing_Swi11IN01_Add();       //卫灯
	BLV_DevAction_C12ZhanTing_Swi11IN03_Add();       //浴室灯
	BLV_DevAction_C12ZhanTing_Swi11IN04_Add();       //镜前灯
	BLV_DevAction_C12ZhanTing_Swi11IN06_Add();       //排气扇
	
}

/**
*@name BlwMapDev_Init
*@para 无
*@ret  无
*@brief 映射表增加上限是113个 ，超过上限就会添加不进去
*/
void BlwMapDev_Init(void)  
{
	uint8_t DevBuf[] =  //每组设备 6个字节  服务器设备类型 服务器设备地址 以及本地四个绝对回路地址
	{
/*场景 一共22个*/		
		XIAOBAO_SCENE_TYPE,  XIAOBAO_SCENE_RECEPTION,   		Dev_Host_Invalid, 0x00, ReceptionModeNo,0x00,	//0x01    //会客模式（白）
		XIAOBAO_SCENE_TYPE,  XIAOBAO_SCENE_SLEEP,       		Dev_Host_Invalid, 0x00, NeightModeNo,0x00,	//0x02    //睡眠模式（黑）
//		XIAOBAO_SCENE_TYPE,  XIAOBAO_SCENE_GENERAL_CONTROL,   //0x03    //总控
		XIAOBAO_SCENE_TYPE,  XIAOBAO_SCENE_LEISURE,    			Dev_Host_Invalid, 0x00, RelaxationModeNo,	0x00, //0x04    //休闲（灰）
//		XIAOBAO_SCENE_TYPE,  XIAOBAO_SCENE_BUSINESS,    		 //0x05    //商务
		XIAOBAO_SCENE_TYPE,  XIAOBAO_SCENE_READ,    		   Dev_Host_Invalid, 0x00, ReadingModeNo,0x00,  //0x06    //阅读
		XIAOBAO_SCENE_TYPE,  XIAOBAO_SCENE_WELCOME,    		 Dev_Host_Invalid, 0x00, WelcomeModeNo,0x00,  //0x07    //欢迎
		XIAOBAO_SCENE_TYPE,  XIAOBAO_SCENE_ROMANTIC,    	Dev_Host_Invalid, 0x00, RomanceModeNo,0x00,	 //0x08    //浪漫
//		XIAOBAO_SCENE_TYPE,  XIAOBAO_SCENE_WATCHING,    		Dev_Host_Invalid, 0x00, ViewingModeNo,	0x00, //0x09    //观影
		XIAOBAO_SCENE_TYPE,  XIAOBAO_SCENE_WARM,    		   Dev_Host_Invalid, 0x00, WarmModeNo,0x00,  //0x0A    //温馨
//		XIAOBAO_SCENE_TYPE,  XIAOBAO_SCENE_ATMOSPHERE,    	 //0x0B    //氛围
		XIAOBAO_SCENE_TYPE,  XIAOBAO_SCENE_BRIGHT,    	   Dev_Host_Invalid, 0x00, BrightModeNo,0x00,  //0x0C    //明亮
//		XIAOBAO_SCENE_TYPE,  XIAOBAO_SCENE_PARLOUR_BRIGHT,   //0x0D    //客厅明亮
		XIAOBAO_SCENE_TYPE,  XIAOBAO_SCENE_ALL_LIGHTS,   Dev_Host_Invalid, 0x00, BrightModeNo,0x00,    //0x0E    //所有灯
//		XIAOBAO_SCENE_TYPE,  XIAOBAO_SCENE_SOFT,             //0x0F    //柔和
//		XIAOBAO_SCENE_TYPE,  XIAOBAO_SCENE_WAKE_UP,          //0x10    //起夜
//		XIAOBAO_SCENE_TYPE,  XIAOBAO_SCENE_GET_UP,           //0x11    //起床
//		XIAOBAO_SCENE_TYPE,  XIAOBAO_SCENE_BATHROOM,         //0x12    //卫浴
//		XIAOBAO_SCENE_TYPE,  XIAOBAO_SCENE_TOILET,           //0x13    //如厕
//		XIAOBAO_SCENE_TYPE,  XIAOBAO_SCENE_WASH_UP,          //0x14    //洗漱
		XIAOBAO_SCENE_TYPE,  XIAOBAO_SCENE_TV,          Dev_Host_Invalid, 0x00, TVModeNo,0x00,     //0x15    //电视
//		XIAOBAO_SCENE_TYPE,  XIAOBAO_SCENE_MEETING,          //0x16    //会议

		
/*继电器 一共36个*/		
//		XIAOBAO_RELAY_TYPE,  XIAOBAO_RELAY_BATHROOM_LIGHT,  	Dev_Host_HVout, 0x00, LOOPCH04, 0x00,	//0x01    //卫浴灯
//		XIAOBAO_RELAY_TYPE,  XIAOBAO_RELAY_SHOWERSROOM_LIGHT,  	//0x02    //浴室灯
//		XIAOBAO_RELAY_TYPE,  XIAOBAO_RELAY_MIRROR_LIGHT,  		Dev_Host_HVout, 0x00, LOOPCH03, 0x00,  //0x03    //镜前灯
		XIAOBAO_RELAY_TYPE,  XIAOBAO_RELAY_EXHAUST_FAN,			  	Dev_Host_HVout, 0x00, LOOPCH04, 0x00, //0x04    //排气扇
//		XIAOBAO_RELAY_TYPE,  XIAOBAO_RELAY_CORRIDOR_LIGHT,  	Dev_Host_HVout, 0x00, LOOPCH02, 0x00,	//0x05    //廊灯
//		XIAOBAO_RELAY_TYPE,  XIAOBAO_RELAY_BAR_LIGHT,  		      //0x06    //吧台灯
//		XIAOBAO_RELAY_TYPE,  XIAOBAO_RELAY_TV_LIGHT,  		      //0x07    //电视灯
//		XIAOBAO_RELAY_TYPE,  XIAOBAO_RELAY_LEFT_BEDSIDE_LIGHT,  //0x08    //左床头灯，左阅读灯
//		XIAOBAO_RELAY_TYPE,  XIAOBAO_RELAY_RIGHT_BEDSIDE_LIGHT, //0x09    //右床头灯，右阅读灯
//		XIAOBAO_RELAY_TYPE,  XIAOBAO_RELAY_DESK_LIGHT,  		    Dev_Host_HVout, 0x00, LOOPCH11, 0x00,//0x0A    //书桌灯
//		XIAOBAO_RELAY_TYPE,  XIAOBAO_RELAY_PARLOUR_LIGHT,  		  //0x0B    //客厅灯
//		XIAOBAO_RELAY_TYPE,  XIAOBAO_RELAY_PENDANT_LIGHT,  		  //0x0C    //吊灯
//		XIAOBAO_RELAY_TYPE,  XIAOBAO_RELAY_MASTER_LIGHT,  		  //0x0D    //主灯
//		XIAOBAO_RELAY_TYPE,  XIAOBAO_RELAY_TOP_LIGHT,  		      //0x0E    //顶灯
//		XIAOBAO_RELAY_TYPE,  XIAOBAO_RELAY_DOWNLIGHT,  		     Dev_Host_HVout, 0x00, LOOPCH06, 0x00, //0x0F    //筒灯
//		XIAOBAO_RELAY_TYPE,  XIAOBAO_RELAY_AISLE_LIGHT,  		    //0x10    //过道灯
//		XIAOBAO_RELAY_TYPE,  XIAOBAO_RELAY_SPOTLIGHT,  		      //0x11    //射灯
//		XIAOBAO_RELAY_TYPE,  XIAOBAO_RELAY_BACKGROUND_LIGHT,  	//0x12    //背景灯
//		XIAOBAO_RELAY_TYPE,  XIAOBAO_RELAY_NIGHT_LIGHT, 		   Dev_Host_HVout, 0x00, LOOPCH09, 0x00, //0x13    //夜灯
//		XIAOBAO_RELAY_TYPE,  XIAOBAO_RELAY_SHOWERS_LIGHT,  		  //0x14    //沐浴灯
//		XIAOBAO_RELAY_TYPE,  XIAOBAO_RELAY_WASH_UP_LIGHT,  		  //0x15    //洗漱灯
//		XIAOBAO_RELAY_TYPE,  XIAOBAO_RELAY_BALCONY_LIGHT,  		  //0x16    //阳台灯
//		XIAOBAO_RELAY_TYPE,  XIAOBAO_RELAY_LEISURE_LIGHT,  		  //0x17    //休闲灯
//		XIAOBAO_RELAY_TYPE,  XIAOBAO_RELAY_READ_LIGHT,  		    //0x18    //阅读灯
		XIAOBAO_RELAY_TYPE,  XIAOBAO_RELAY_WALL_LIGHT,  		 Dev_Host_HVout, 0x00, LOOPCH03, 0x00,   //0x19    //壁灯
//		XIAOBAO_RELAY_TYPE,  XIAOBAO_RELAY_WARDROBE_LIGHT,  		//0x1A    //衣柜灯
//		XIAOBAO_RELAY_TYPE,  XIAOBAO_RELAY_ROOM_LIGHT,  		  Dev_Host_HVout, 0x00, LOOPCH08, 0x00,  //0x1B    //房灯
//		XIAOBAO_RELAY_TYPE,  XIAOBAO_RELAY_VENTILATOR,			    //0x1C    //换气扇
//		XIAOBAO_RELAY_TYPE,  XIAOBAO_RELAY_BACKLIGHT,  		      //0x1D    //背光
//		XIAOBAO_RELAY_TYPE,  XIAOBAO_RELAY_APERTURE,  		      //0x1E    //光圈
//		XIAOBAO_RELAY_TYPE,  XIAOBAO_RELAY_BEDSIDE_LIGHT,  		  //0x1F    //床头灯
//		XIAOBAO_RELAY_TYPE,  XIAOBAO_RELAY_ATMOSPHERE_LIGHT,  	//0x20    //氛围灯
//		XIAOBAO_RELAY_TYPE,  XIAOBAO_RELAY_PORCH_LIGHT,  		    //0x21    //玄关灯
//		XIAOBAO_RELAY_TYPE,  XIAOBAO_RELAY_LEFT_WALL_LIGHT,  		//0x22    //左壁灯
//		XIAOBAO_RELAY_TYPE,  XIAOBAO_RELAY_RIGHT_WALL_LIGHT,  	//0x23    //右壁灯
//		XIAOBAO_RELAY_TYPE,  XIAOBAO_RELAY_TOILET_LIGHT,  		Dev_Host_HVout, 0x00, LOOPCH05, 0x00,  //0x24    //卫生间灯

/*服务信息 22个*/
		XIAOBAO_SERVICE_TYPE,  XIAOBAO_SERVICE_CLEAR,           Dev_Host_Invalid, 0x00, 31,0x00,  //0X01      //清理
		XIAOBAO_SERVICE_TYPE,  XIAOBAO_SERVICE_DO_NOT_DISTURB,  Dev_Host_Invalid, 0x00, 30,0x00,  //0X02      //勿扰
//		XIAOBAO_SERVICE_TYPE,  XIAOBAO_SERVICE_LATER,             //0X03      //稍后
//		XIAOBAO_SERVICE_TYPE,  XIAOBAO_SERVICE_CHECK_OIT,         //0X04      //退房
//		XIAOBAO_SERVICE_TYPE,  XIAOBAO_SERVICE_TOOTHPASTE,        //0X05      //送牙膏
//		XIAOBAO_SERVICE_TYPE,  XIAOBAO_SERVICE_SLIPPER,           //0X06      //送拖鞋
//		XIAOBAO_SERVICE_TYPE,  XIAOBAO_SERVICE_CONDITIONER,       //0X07      //护发素
//		XIAOBAO_SERVICE_TYPE,  XIAOBAO_SERVICE_SHAMPOO,           //0X08      //洗发水
//		XIAOBAO_SERVICE_TYPE,  XIAOBAO_SERVICE_SHOWER_GEL,        //0X09      //沐浴露
//		XIAOBAO_SERVICE_TYPE,  XIAOBAO_SERVICE_LOTION,            //0X0A      //润肤乳
//		XIAOBAO_SERVICE_TYPE,  XIAOBAO_SERVICE_SOAP,              //0X0B      //香皂
//		XIAOBAO_SERVICE_TYPE,  XIAOBAO_SERVICE_BATH_CAP,          //0X0C      //浴帽
//		XIAOBAO_SERVICE_TYPE,  XIAOBAO_SERVICE_COMB,              //0X0D      //送一把梳子
//		XIAOBAO_SERVICE_TYPE,  XIAOBAO_SERVICE_COTTON_STICK,      //0X0E      //棉棒
//		XIAOBAO_SERVICE_TYPE,  XIAOBAO_SERVICE_HAIR_DRIER,        //0X0F      //吹风机
//		XIAOBAO_SERVICE_TYPE,  XIAOBAO_SERVICE_kETTLE,            //0X10      //热水壶
//		XIAOBAO_SERVICE_TYPE,  XIAOBAO_SERVICE_KLEENEX,           //0X11      //面巾纸
//		XIAOBAO_SERVICE_TYPE,  XIAOBAO_SERVICE_PEN,               //0X12      //笔
//		XIAOBAO_SERVICE_TYPE,  XIAOBAO_SERVICE_CHARGER,           //0X13      //充电器数据线
//		XIAOBAO_SERVICE_TYPE,  XIAOBAO_SERVICE_CALL_WAITER,       //0X14      //呼叫服务员
//		XIAOBAO_SERVICE_TYPE,  XIAOBAO_SERVICE_TOOTHBRUSH,        //0X15      //牙刷
//		XIAOBAO_SERVICE_TYPE,  XIAOBAO_SERVICE_WATER,             //0X16      //送瓶水

/*窗帘 7个*/
		XIAOBAO_CURTAINS_TYPE,  XIAOBAO_CURTAINS_PARLOUR_CURTAINS,       Dev_NodeCurtain, 0x00, LOOPCH01, 0x00,      //0X01      //厅窗帘
		XIAOBAO_CURTAINS_TYPE,  XIAOBAO_CURTAINS_PARLOUR_WINDOW_SCREENING,  Dev_NodeCurtain, 0x01, LOOPCH01, 0x00,    //0X02      //厅窗纱
//		XIAOBAO_CURTAINS_TYPE,  XIAOBAO_CURTAINS_BEDROOM_CURTAINS,                 //0X03      //卧窗帘
//		XIAOBAO_CURTAINS_TYPE,  XIAOBAO_CURTAINS_BEDROOM_WINDOW_SCREENING,         //0X04      //卧窗纱
//		XIAOBAO_CURTAINS_TYPE,  XIAOBAO_CURTAINS_SECOND_BEDROOM_CURTAINS,          //0X05      //次卧窗帘
//		XIAOBAO_CURTAINS_TYPE,  XIAOBAO_CURTAINS_SECOND_BEDROOM_WINDOW_SCREENING,   //0X06      //次卧窗纱
//		XIAOBAO_CURTAINS_TYPE,  XIAOBAO_CURTAINS_ROLLER_SHUTTER,                   //0X07      //卷帘

/*调光 31个*/
		XIAOBAO_DIMMING_TYPE,  XIAOBAO_DIMMING_BATHROOM_LIGHT,   DEV_C12DIMMING_Type, 0x01, LOOPCH08, 0x00,   //0x01    //卫浴灯
		XIAOBAO_DIMMING_TYPE,  XIAOBAO_DIMMING_SHOWERSROOM_LIGHT,  DEV_C12DIMMING_Type, 0x01, LOOPCH09, 0x00,	//0x02    //浴室灯
		XIAOBAO_DIMMING_TYPE,  XIAOBAO_DIMMING_MIRROR_LIGHT,  	DEV_C12DIMMING_Type, 0x01, LOOPCH10, 0x00,	  //0x03    //镜前灯
		XIAOBAO_DIMMING_TYPE,  XIAOBAO_DIMMING_CORRIDOR_LIGHT,  	DEV_C12DIMMING_Type, 0x01, LOOPCH01, 0x00,	//0x04    //廊灯
//		XIAOBAO_DIMMING_TYPE,  XIAOBAO_DIMMING_BAR_LIGHT,  		      //0x05    //吧台灯
		XIAOBAO_DIMMING_TYPE,  XIAOBAO_DIMMING_TV_LIGHT,  	DEV_C12DIMMING_Type, 0x01, LOOPCH03, 0x00,	      //0x06    //电视灯
		XIAOBAO_DIMMING_TYPE,  XIAOBAO_DIMMING_LEFT_BEDSIDE_LIGHT,  DEV_C12DIMMING_Type, 0x01, LOOPCH04, 0x00,  //0x07    //左床头灯，左阅读灯
		XIAOBAO_DIMMING_TYPE,  XIAOBAO_DIMMING_RIGHT_BEDSIDE_LIGHT, DEV_C12DIMMING_Type, 0x01, LOOPCH05, 0x00,//0x08    //右床头灯，右阅读灯
//		XIAOBAO_DIMMING_TYPE,  XIAOBAO_DIMMING_DESK_LIGHT,  		    //0x09    //书桌灯
//		XIAOBAO_DIMMING_TYPE,  XIAOBAO_DIMMING_PARLOUR_LIGHT,  		  //0x0A    //客厅灯
		XIAOBAO_DIMMING_TYPE,  XIAOBAO_DIMMING_LEISURE_LIGHT,  	DEV_C12DIMMING_Type, 0x01, LOOPCH06, 0x00,	  //0x0B    //休闲灯
		XIAOBAO_DIMMING_TYPE,  XIAOBAO_DIMMING_LEISURE_LIGHT2,  DEV_C12DIMMING_Type, 0x01, LOOPCH06, 0x00,		//0x0C    //休闲灯
//		XIAOBAO_DIMMING_TYPE,  XIAOBAO_DIMMING_MASTER_LIGHT,  		  //0x0D    //主灯
//		XIAOBAO_DIMMING_TYPE,  XIAOBAO_DIMMING_TOP_LIGHT,  		      //0x0E    //顶灯
//		XIAOBAO_DIMMING_TYPE,  XIAOBAO_DIMMING_DOWNLIGHT,  		      //0x0F    //筒灯
//		XIAOBAO_DIMMING_TYPE,  XIAOBAO_DIMMING_AISLE_LIGHT,  		    //0x10    //过道灯
//		XIAOBAO_DIMMING_TYPE,  XIAOBAO_DIMMING_SPOTLIGHT,  		      //0x11    //射灯
//		XIAOBAO_DIMMING_TYPE,  XIAOBAO_DIMMING_BACKGROUND_LIGHT,  	//0x12    //背景灯
//		XIAOBAO_DIMMING_TYPE,  XIAOBAO_DIMMING_NIGHT_LIGHT,  		    //0x13    //夜灯
//		XIAOBAO_DIMMING_TYPE,  XIAOBAO_DIMMING_SHOWERS_LIGHT,  		  //0x14    //沐浴灯
//		XIAOBAO_DIMMING_TYPE,  XIAOBAO_DIMMING_WASH_UP_LIGHT,  		  //0x15    //洗漱灯
		XIAOBAO_DIMMING_TYPE,  XIAOBAO_DIMMING_BALCONY_LIGHT,  	DEV_C12DIMMING_Type, 0x01, LOOPCH07, 0x00,	  //0x16    //阳台灯
//		XIAOBAO_DIMMING_TYPE,  XIAOBAO_DIMMING_LEISURE_LIGHT3,  		//0x17    //休闲灯
//		XIAOBAO_DIMMING_TYPE,  XIAOBAO_DIMMING_READ_LIGHT,  		    //0x18    //阅读灯
//		XIAOBAO_DIMMING_TYPE,  XIAOBAO_DIMMING_WALL_LIGHT,  		    //0x19    //壁灯
//		XIAOBAO_DIMMING_TYPE,  XIAOBAO_DIMMING_WARDROBE_LIGHT,  		//0x1A    //衣柜灯
//		XIAOBAO_DIMMING_TYPE,  XIAOBAO_DIMMING_ROOM_LIGHT,  		    //0x1B    //房灯
//		XIAOBAO_DIMMING_TYPE,  XIAOBAO_DIMMING_VENTILATOR_LIGHT,    //0x1C    //换气扇
//		XIAOBAO_DIMMING_TYPE,  XIAOBAO_DIMMING_BACKLIGHT,  		      //0x1D    //背光
//		XIAOBAO_DIMMING_TYPE,  XIAOBAO_DIMMING_APERTURE,  		      //0x1E    //光圈
//		XIAOBAO_DIMMING_TYPE,  XIAOBAO_DIMMING_BEDSIDE_LIGHT,  		  //0x1F    //床头灯
		
/*灯带 12个*/
//		XIAOBAO_LIGHT_BELT_TYPE,  XIAOBAO_LIGHT_BELT_BEDSIDE,    DEV_RGB_LIGHT_BELT_Type, 0x01, LOOPCH01, 0x00,    //0x01    //床头灯带
//		XIAOBAO_LIGHT_BELT_TYPE,  XIAOBAO_LIGHT_BELT_TV,             //0x02    //电视灯带
//		XIAOBAO_LIGHT_BELT_TYPE,  XIAOBAO_LIGHT_BELT_WINDOW,         //0x03    //窗灯带
		XIAOBAO_LIGHT_BELT_TYPE,  XIAOBAO_LIGHT_BELT_PARLOUR_R,   DEV_RGB_LIGHT_BELT_Type, 0x01, LOOPCH01, 0x00,   //0x04    //厅灯带红
		XIAOBAO_LIGHT_BELT_TYPE,  XIAOBAO_LIGHT_BELT_PARLOUR_G,  DEV_RGB_LIGHT_BELT_Type, 0x01, LOOPCH02, 0x00,    //0x05    //厅灯带绿
		XIAOBAO_LIGHT_BELT_TYPE,  XIAOBAO_LIGHT_BELT_PARLOUR_B,  DEV_RGB_LIGHT_BELT_Type, 0x01, LOOPCH03, 0x00,    //0x06    //厅灯带蓝
//		XIAOBAO_LIGHT_BELT_TYPE,  XIAOBAO_LIGHT_BELT_BEDROOM_R,      //0x07    //卧灯带红
//		XIAOBAO_LIGHT_BELT_TYPE,  XIAOBAO_LIGHT_BELT_BEDROOM_G,     //0x08    //卧灯带绿
//		XIAOBAO_LIGHT_BELT_TYPE,  XIAOBAO_LIGHT_BELT_BEDROOM_B,      //0x09    //卧灯带蓝
		XIAOBAO_LIGHT_BELT_TYPE,  XIAOBAO_LIGHT_BELT_TOILET_R,   DEV_RGB_LIGHT_BELT_Type, 0x03, LOOPCH01, 0x00,    //0x0A    //卫灯带红
		XIAOBAO_LIGHT_BELT_TYPE,  XIAOBAO_LIGHT_BELT_TOILET_G,   DEV_RGB_LIGHT_BELT_Type, 0x03, LOOPCH02, 0x00,    //0x0B    //卫灯带绿
		XIAOBAO_LIGHT_BELT_TYPE,  XIAOBAO_LIGHT_BELT_TOILET_B,   DEV_RGB_LIGHT_BELT_Type, 0x03, LOOPCH03, 0x00,    //0x0C    //卫灯带蓝

/*背景音乐 3个*/
//		XIAOBAO_MUSIC_TYPE,  XIAOBAO_MUSIC_PARLOUR,      //0x01    //客厅背景音乐
//		XIAOBAO_MUSIC_TYPE,  XIAOBAO_MUSIC_TOILET,       //0x02    //卫生间背景音乐
//		XIAOBAO_MUSIC_TYPE,  XIAOBAO_MUSIC_BEDROOM,      //0x03    //卧室背景音乐

/*空调  3个*/
		 XIAOBAO_TEMP_TYPE,   XIAOBAO_TEMP_PARLOUR,  	DEV_RS485_TEMP, 	0x01, LOOPCH01, 0x00,      //客厅空调
//		 XIAOBAO_TEMP_TYPE,   XIAOBAO_TEMP_BEDROOM,   DEV_RS485_TEMP, 	0x01, LOOPCH01, 0x00,        //卧室空调    			         
//		 XIAOBAO_TEMP_TYPE,   XIAOBAO_TEMP_SECOND_BEDROOM,        0x03        //次卧空调

	};   //将所有的数组填满
	
  BlwMap_Dev_Add(DevBuf, sizeof(DevBuf)/BlwMapStructCoreLen);
	          
}


#endif






#endif








