Aeon Multisensor status reports

Hi

I have an Aeon Multisensor, and I want to be able to e-mail current readings from it (temperature, light level, humidity and battery status). I can successfully report

[tt]Security lights OFF at {DateTime(CurrentTime,%H:%M %A %d %B %Y)}. Temp = {device([44].TemperatureSensor.CurrentTemperature)} degC[/tt]

but I am struggling to report the other settings.

I have tried things like

[tt]Light = {Device([44].LightSensor1].CurrentLevel)}[/tt]

and even

[tt]Light = {Device([44].service[urn:upnp-org:serviceId:LightSensor1].CurrentLevel)}[/tt]

but I am obviously missing a trick.

Here’s the debug information, where you can see device 44 is the parent device:

06	06/01/15 9:38:58.126	Device_Variable::m_szValue_set device: 44 service: urn:micasaverde-com:serviceId:HaDevice1 variable: BatteryDate was: 1433147209 now: 1433147938 #hooks: 0 upnp: 0 v:(nil)/NONE duplicate:0 <0x2bdd9680>
06	06/01/15 9:38:58.126	Device_Variable::m_szValue_set device: 44 service: urn:micasaverde-com:serviceId:HaDevice1 variable: BatteryLevel was: 100 now: 100 #hooks: 0 upnp: 0 v:0x852488/NONE duplicate:1 <0x2bdd9680>
06	06/01/15 9:38:58.166	Device_Variable::m_szValue_set device: 44 service: urn:micasaverde-com:serviceId:LightSensor1 variable: CurrentLevel was: 1000 now: 1000 #hooks: 0 upnp: 0 v:0x8bc2a0/NONE duplicate:1 <0x2bdd9680>
06	06/01/15 9:38:58.167	Device_Variable::m_szValue_set device: 46 service: urn:micasaverde-com:serviceId:LightSensor1 variable: CurrentLevel was: 1000 now: 1000 #hooks: 1 upnp: 0 v:0x8bc2a0/NONE duplicate:1 <0x2bdd9680>
06	06/01/15 9:38:58.206	Device_Variable::m_szValue_set device: 44 service: urn:micasaverde-com:serviceId:HumiditySensor1 variable: CurrentLevel was: 83 now: 80 #hooks: 0 upnp: 0 v:0x8bde20/NONE duplicate:0 <0x2bdd9680>
06	06/01/15 9:38:58.206	Device_Variable::m_szValue_set device: 47 service: urn:micasaverde-com:serviceId:HumiditySensor1 variable: CurrentLevel was: 83 now: 80 #hooks: 0 upnp: 0 v:0x8bde20/NONE duplicate:0 <0x2bdd9680>
06	06/01/15 9:38:58.246	Device_Variable::m_szValue_set device: 44 service: urn:upnp-org:serviceId:TemperatureSensor1 variable: CurrentTemperature was: 13 now: 16 #hooks: 0 upnp: 0 v:0x8af468/NONE duplicate:0 <0x2bdd9680>
06	06/01/15 9:38:58.246	Device_Variable::m_szValue_set device: 45 service: urn:upnp-org:serviceId:TemperatureSensor1 variable: CurrentTemperature was: 13 now: 16 #hooks: 0 upnp: 0 v:0x8af468/NONE duplicate:0 <0x2bdd9680>

Many thanks for your help with this.

Jonathan.

The light sensor has a different device # (i.e. NOT 44)
You need to use the correct device # for each sensor. Use the Advanced tab in Vera to get the information you need:

There you can get the Device #, scan the properties to find the correct variable name you are interested in, hover the mouse over the variable name to get the Service ID.

You can find the short name for many service IDs in the file veraTemplateDefinitions (Available in Apps → Develop Apps → My Luup Files)

Hi Richard

Thank you very much for nudging me in the right direction. The string I wanted was

Security lights OFF at {DateTime(CurrentTime,%H:%M %A %d %B %Y)}.  Light level = {Device([44].service[urn:micasaverde-com:serviceId:LightSensor1].CurrentLevel)}; temperature = {device([44].TemperatureSensor.CurrentTemperature)} degC; humidity = {Device([44].service[urn:micasaverde-com:serviceId:HumiditySensor1].CurrentLevel)}%; battery charge = {Device([44].service[urn:micasaverde-com:serviceId:HaDevice1].BatteryLevel)}%.

Note device 44 is the parent device, which includes light, temp and humidity.

My mistake was using urn:upnp-org:serviceId instead of urn:micasaverde-com:serviceId

I’m documenting this here, in case it helps someone else :slight_smile:

Jonathan.