1
Vera Home Automation Controller / Issue with Aeon Labs Multi sensor and TTS
« on: May 19, 2014, 10:54:34 AM »
i have created the following command:
however im having 2 issues with this.
i originally intended to use a payload xml for telling vox which stat to poll instead of a logic (as it will be easier when it comes time to expand my vera system) however the only aspect of the multisensor which shows up in the sensors.xml is the motion detector, neglating the humidity, light and temperature sensors.
ive checked with the sensors and they all run the correct device type (for example, the temperature sensor runs the urn:schemas-micasaverde-com:device:TemperatureSensor:1 service)
secondly, whenever i attempt to run this, the {lastresult} returns back whatever was before i tried (mostly "now playing..." from the xbmc side of things).
wondering if anyone can help out?
Code: [Select]
<?xml version="1.0" encoding="utf-16"?>
<!--VoxCommando 1.9.2.2-->
<command id="2102" name="Sensor Stats" enabled="true" alwaysOn="False" confirm="False" requiredConfidence="0" loop="False" loopDelay="0" loopMax="0" description="">
<if ifBlockDisabled="False" ifNot="False">
<ifType>(A)Contains(B)</ifType>
<ifParams>{1}&&Temperature</ifParams>
<then>
<action>
<cmdType>Vera.Get.Temperature</cmdType>
<params>
<param>07</param>
</params>
<cmdRepeat>1</cmdRepeat>
</action>
<action>
<cmdType>TTS.SpeakSync</cmdType>
<params>
<param>{LastResult} degrees</param>
</params>
<cmdRepeat>1</cmdRepeat>
</action>
</then>
<else />
</if>
<if ifBlockDisabled="False" ifNot="False">
<ifType>(A)==(B)</ifType>
<ifParams>{1}&&Humidity</ifParams>
<then>
<action>
<cmdType>Vera.Get.Humidity</cmdType>
<params>
<param>9</param>
</params>
<cmdRepeat>1</cmdRepeat>
</action>
<action>
<cmdType>TTS.SpeakSync</cmdType>
<params>
<param>{LastResult}</param>
</params>
<cmdRepeat>1</cmdRepeat>
</action>
</then>
<else />
</if>
<if ifBlockDisabled="False" ifNot="False">
<ifType>(A)==(B)</ifType>
<ifParams>{1}&&Light Level</ifParams>
<then>
<action>
<cmdType>Vera.Get.LightLevel</cmdType>
<params>
<param>8</param>
</params>
<cmdRepeat>1</cmdRepeat>
</action>
<action>
<cmdType>TTS.Speak</cmdType>
<params>
<param>{LastResult}</param>
</params>
<cmdRepeat>1</cmdRepeat>
</action>
</then>
<else />
</if>
<phrase>Whats The</phrase>
<payloadList>Temperature, Humidity, Light Level</payloadList>
<phrase optional="true">In My Room</phrase>
</command>
however im having 2 issues with this.
i originally intended to use a payload xml for telling vox which stat to poll instead of a logic (as it will be easier when it comes time to expand my vera system) however the only aspect of the multisensor which shows up in the sensors.xml is the motion detector, neglating the humidity, light and temperature sensors.
ive checked with the sensors and they all run the correct device type (for example, the temperature sensor runs the urn:schemas-micasaverde-com:device:TemperatureSensor:1 service)
secondly, whenever i attempt to run this, the {lastresult} returns back whatever was before i tried (mostly "now playing..." from the xbmc side of things).
wondering if anyone can help out?