Rick, Rupp, (other gurus?)
I have a prototype plug in that is creating thermostat devices and has the thermostat API methods defined on the HSPI class. I have confirmed that I can call these methods from a script ok.
The thermostat devices are set to MISC_THERM and the thermostat controls appear on the status page. However, none of these controls seems to call any of the API routines.
Here are the device property settings when the device is created:
There is clearly something I am missing here to get the thermostats working -- help!!
I have a prototype plug in that is creating thermostat devices and has the thermostat API methods defined on the HSPI class. I have confirmed that I can call these methods from a script ok.
The thermostat devices are set to MISC_THERM and the thermostat controls appear on the status page. However, none of these controls seems to call any of the API routines.
Here are the device property settings when the device is created:
Code:
[FONT=Consolas][SIZE=2][COLOR=#008000][FONT=Consolas][SIZE=2][COLOR=#008000][FONT=Consolas][SIZE=2][COLOR=#008000]// Create the device[/COLOR][/SIZE][/FONT] [/COLOR][/SIZE][/FONT][/COLOR][/SIZE][/FONT][FONT=Consolas][SIZE=2][FONT=Consolas][SIZE=2]dev = m_objApp.ifHSApp.NewDeviceEx(objZone.Name);[/SIZE][/FONT] [/SIZE][/FONT][FONT=Consolas][SIZE=2][COLOR=#008000][FONT=Consolas][SIZE=2][COLOR=#008000][FONT=Consolas][SIZE=2][COLOR=#008000]// And then, set all the relevant information[/COLOR][/SIZE][/FONT] [/COLOR][/SIZE][/FONT][/COLOR][/SIZE][/FONT][FONT=Consolas][SIZE=2][FONT=Consolas][SIZE=2]dev.location = [/SIZE][/FONT][/SIZE][/FONT][FONT=Consolas][SIZE=2][COLOR=#a31515][FONT=Consolas][SIZE=2][COLOR=#a31515][FONT=Consolas][SIZE=2][COLOR=#a31515]"HVAC"[/COLOR][/SIZE][/FONT][/COLOR][/SIZE][/FONT][/COLOR][/SIZE][/FONT][FONT=Consolas][SIZE=2][FONT=Consolas][SIZE=2];[/SIZE][/FONT] [SIZE=2][FONT=Consolas]dev.hc = m_objApp.HouseCode;[/FONT][/SIZE] [SIZE=2][FONT=Consolas]dev.dc = [/FONT][/SIZE][/SIZE][/FONT][FONT=Consolas][SIZE=2][COLOR=#2b91af][FONT=Consolas][SIZE=2][COLOR=#2b91af][FONT=Consolas][SIZE=2][COLOR=#2b91af]Convert[/COLOR][/SIZE][/FONT][/COLOR][/SIZE][/FONT][/COLOR][/SIZE][/FONT][FONT=Consolas][SIZE=2][FONT=Consolas][SIZE=2].ToString(m_objApp.GetNextFreeDevCode());[/SIZE][/FONT] [SIZE=2][FONT=Consolas]dev.@interface = [/FONT][/SIZE][/SIZE][/FONT][FONT=Consolas][SIZE=2][COLOR=#2b91af][FONT=Consolas][SIZE=2][COLOR=#2b91af][FONT=Consolas][SIZE=2][COLOR=#2b91af]EnviracomApp[/COLOR][/SIZE][/FONT][/COLOR][/SIZE][/FONT][/COLOR][/SIZE][/FONT][FONT=Consolas][SIZE=2][FONT=Consolas][SIZE=2].PI_NAME_SHORT;[/SIZE][/FONT] [SIZE=2][FONT=Consolas]dev.misc = [/FONT][/SIZE][/SIZE][/FONT][FONT=Consolas][SIZE=2][COLOR=#2b91af][FONT=Consolas][SIZE=2][COLOR=#2b91af][FONT=Consolas][SIZE=2][COLOR=#2b91af]HomeSeer[/COLOR][/SIZE][/FONT][/COLOR][/SIZE][/FONT][/COLOR][/SIZE][/FONT][FONT=Consolas][SIZE=2][FONT=Consolas][SIZE=2].MISC_THERM;[/SIZE][/FONT] [SIZE=2][FONT=Consolas]dev.dev_type_string = DT_ZONE_NAME;[/FONT][/SIZE] [SIZE=2][FONT=Consolas]dev.iotype = [/FONT][/SIZE][/SIZE][/FONT][FONT=Consolas][SIZE=2][COLOR=#2b91af][FONT=Consolas][SIZE=2][COLOR=#2b91af][FONT=Consolas][SIZE=2][COLOR=#2b91af]HomeSeer[/COLOR][/SIZE][/FONT][/COLOR][/SIZE][/FONT][/COLOR][/SIZE][/FONT][FONT=Consolas][SIZE=2][FONT=Consolas][SIZE=2].IOTYPE_INPUT;[/SIZE][/FONT] [SIZE=2][FONT=Consolas]dev.iomisc = [/FONT][/SIZE][/SIZE][/FONT][FONT=Consolas][SIZE=2][COLOR=#2b91af][FONT=Consolas][SIZE=2][COLOR=#2b91af][FONT=Consolas][SIZE=2][COLOR=#2b91af]Convert[/COLOR][/SIZE][/FONT][/COLOR][/SIZE][/FONT][/COLOR][/SIZE][/FONT][FONT=Consolas][SIZE=2][FONT=Consolas][SIZE=2].ToString(objZone.Number);[/SIZE][/FONT] [/SIZE][/FONT]
Comment