From: Andy M. <myi...@st...> - 2009-08-27 12:48:24
|
Hi All (and Greg Liming - in particular!), I am trying to interface my newly written xPL HVAC Gateway (for my newly built AirCon Zone Controller!) to MisterHouse. The problem I am having is trying to setup MH to extract the data from the HVAC Schema. My schema is standard (well, maybe a little extra info - but nothing missing). The main difference from many schema (eg. sensor.basic) to hvac.basic is that "zone" is the equivalent to "device". I need to tell MH to differentiate on "zone", not the usual "device". So, my code is: $xpl_AirCon_Zone1 = new xPL_Item('mandoon-gateway485.arwen'); $$xpl_AirCon_Zone1{'state_monitor'} = 'hvac.zone : hvac-mode'; # noloop $xpl_AirCon_Zone1->device_monitor("zone = 1"); # noloop $xpl_AirCon_Zone1->tie_event('print_log "AirCon: Zone 1 - state=".$state'); The problem is that MH is ignoring the device_monitor() setup. In debug mode, it appears that there is no device monitor restriction set - unlike other xPL items setup via MHT tables. Presumably, my call to device_monitor() is wrong. Looking at the MH code, I can't really see the correct way (yet). Greg, or anybody else, could you quickly point me in the right direction? Greg - Are you interested/have time in writing some extra code to support HVAC table entries similar to xPL_SENSOR?? Thanks in advance, Andy. |