Strange temperature alert

If I send the following message to Vera Alerts from PLEG I get a strange answer from Google Home:
God morgon, temperaturen utomhus ?r: {Device([1026].TemperatureSensor.CurrentTemperature)}
Translate from Swedish to english: Good morning, Temperature outside is

Answer from Google Home (translated to english):
Good morning, the temperature outside is time 5 degrees.

Why is it mixed up with time?

Look at the vera alerts log and see what it sent.

It worked while it used () around the expression: ({Device([1026].TemperatureSensor.CurrentTemperature)})
However, I am now trying to include humiditysensor without success, what am I missing: ({Device([1868].HumiditySensor.CurrentLevel)})

UPDATE: It does not always work (depend of what type of temperature sensor is used)…

Se example below:

({Device([1026].TemperatureSensor.CurrentTemperature)}) = Qubino ZMNHAD1 with external temperature sensor
Answer from Google Home: “Klockan 7:50” - should be “-7.5” (Klockan mean “Time” in english)
Log:
08 12/19/17 11:36:28.487 JobHandler_LuaUPnP::HandleActionRequest device: 1069 service: urn:richardgreen:serviceId:VeraAlert1 action: SendAlert <0x703c7520>
50 12/19/17 11:36:28.491 luup_log:1069: VeraAlert:1069:SendAlert:Msg:({Device([1026].TemperatureSensor.CurrentTemperature)}) <0x772b0320>
50 12/19/17 11:36:28.492 luup_log:1069: VeraAlert:1069:ExpandRecipients:Checking:Kitchen_Home <0x772b0320>
50 12/19/17 11:36:28.492 luup_log:1069: VeraAlert:1069:ExpandRecipients:Adding Requested Profile <0x772b0320>
50 12/19/17 11:36:28.492 luup_log:1069: VeraAlert:1069:SendAlert:Sending to:Kitchen_Home <0x772b0320>
50 12/19/17 11:36:28.842 luup_log:1069: VeraAlert:1069:VCLSend:URL:https://192.168.1.188:8989/Say?Target=Kitchen%20Home&Text=(-7.50) Result:200 Resp:OK <0x772b0320>
06 12/19/17 11:36:28.844 Device_Variable::m_szValue_set device: 1069 service: urn:richardgreen:serviceId:VeraAlert1 variable: LastMsgSent was: 11:35:32 Tue Dec 19 now: 11:36:28 Tue Dec 19 #hooks: 0 upnp: 0 skip: 0 v:0x12d6030/NONE duplicate:0 <0x772b0320>
50 12/19/17 11:36:28.955 luup_log:1069: VeraAlert:1069:SendAlert:Memory:466147 <0x772b0320>

({Device([1352].TemperatureSensor.CurrentTemperature)}) = Aeotec ZW100 with temperature sensor
Answer from Google Home: “19:80” - correct
Log:
08 12/19/17 11:38:48.355 JobHandler_LuaUPnP::HandleActionRequest device: 1069 service: urn:richardgreen:serviceId:VeraAlert1 action: SendAlert <0x6ff8e520>
50 12/19/17 11:38:48.359 luup_log:1069: VeraAlert:1069:SendAlert:Msg:({Device([1352].TemperatureSensor.CurrentTemperature)}) <0x772b0320>
50 12/19/17 11:38:48.360 luup_log:1069: VeraAlert:1069:ExpandRecipients:Checking:Kitchen_Home <0x772b0320>
50 12/19/17 11:38:48.360 luup_log:1069: VeraAlert:1069:ExpandRecipients:Adding Requested Profile <0x772b0320>
50 12/19/17 11:38:48.360 luup_log:1069: VeraAlert:1069:SendAlert:Sending to:Kitchen_Home <0x772b0320>
50 12/19/17 11:38:48.696 luup_log:1069: VeraAlert:1069:VCLSend:URL:https://192.168.1.188:8989/Say?Target=Kitchen%20Home&Text=(19.90)%20 Result:200 Resp:OK <0x772b0320>
06 12/19/17 11:38:48.697 Device_Variable::m_szValue_set device: 1069 service: urn:richardgreen:serviceId:VeraAlert1 variable: LastMsgSent was: 11:37:43 Tue Dec 19 now: 11:38:48 Tue Dec 19 #hooks: 0 upnp: 0 skip: 0 v:0x12d6030/NONE duplicate:0 <0x772b0320>
50 12/19/17 11:38:48.755 luup_log:1069: VeraAlert:1069:SendAlert:Memory:466149 <0x772b0320>

({Device([1868].HumiditySensor.CurrentLevel)}) = Aeotec ZW100 with humidity sensor
Answer from Google Home: “Device1868HumiditySensorCurrentLevel”
Log:
08 12/19/17 11:39:09.986 JobHandler_LuaUPnP::HandleActionRequest device: 1069 service: urn:richardgreen:serviceId:VeraAlert1 action: SendAlert <0x709c7520>
50 12/19/17 11:39:09.990 luup_log:1069: VeraAlert:1069:SendAlert:Msg:({Device([1868].HumiditySensor.CurrentLevel)}) <0x772b0320>
50 12/19/17 11:39:09.991 luup_log:1069: VeraAlert:1069:ExpandRecipients:Checking:Kitchen_Home <0x772b0320>
50 12/19/17 11:39:09.991 luup_log:1069: VeraAlert:1069:ExpandRecipients:Adding Requested Profile <0x772b0320>
50 12/19/17 11:39:09.991 luup_log:1069: VeraAlert:1069:SendAlert:Sending to:Kitchen_Home <0x772b0320>
50 12/19/17 11:39:10.473 luup_log:1069: VeraAlert:1069:VCLSend:URL:https://192.168.1.188:8989/Say?Target=Kitchen%20Home&Text=({Device([1868].HumiditySensor.CurrentLevel)})%20 Result:200 Resp:OK <0x772b0320>
06 12/19/17 11:39:10.474 Device_Variable::m_szValue_set device: 1069 service: urn:richardgreen:serviceId:VeraAlert1 variable: LastMsgSent was: 11:38:48 Tue Dec 19 now: 11:39:10 Tue Dec 19 #hooks: 0 upnp: 0 skip: 0 v:0x12d6030/NONE duplicate:0 <0x772b0320>
50 12/19/17 11:39:10.541 luup_log:1069: VeraAlert:1069:SendAlert:Memory:466077 <0x772b0320>

Bump!

Christmas-Bump

You may have to use the long format:

i.e. for
Device ID = 5
Serivice ID = urn:upnp-org:serviceId:SwitchPower1
Variable Name = Status

{Device([5].parent.service[urn:upnp-org:serviceId:SwitchPower1].Status)}

Using this synbtax you can access any device variable in Vera.
[hr]
Use the advanced tab for a device to find the variables a device has.
Hover the mouse over the name to see the serviceID

Thanks for a rapid reply.
Probably a stupid question, but what does “parent.service” mean in my example?
I tried with the following but nothing happens: {Device([1061].parent.service[urn:upnp-org:serviceId:TemperatureSensor1].CurrentTemperature)}
Log:
08 12/25/17 19:11:43.530 JobHandler_LuaUPnP::HandleActionRequest device: 1069 service: urn:richardgreen:serviceId:VeraAlert1 action: SendAlert <0x6fb9a520>
50 12/25/17 19:11:43.533 luup_log:1069: VeraAlert:1069:SendAlert:Msg:{Device(1061.parent.service[urn:upnp-org:serviceId:TemperatureSensor1].CurrentTemperature)} <0x770e2320>

edit: if I try: {Device([1026].service[urn:upnp-org:serviceId:TemperatureSensor1].CurrentTemperature)}
The answer is: “Klockan 00:50” (translated from swedish to english: “Time is 00:50”)

That is a device that is referencing it’s parents device ID.

How should I write to make it right then? I can make it working on all temperature sensors except the one I would like to use…
Where does the initial “klockan” (translated to “Time is”) come from?

In the App → Develop App → Luup files there is a file:

veraTemplateTest.lua

See it for examples.

Already tried that.
For someone that know the answer, I guess this is very easy…
Any suggestions?

Bump?

Still no solution :frowning:
Will it work if the temperature sensor is a child (external temperature sensor) to a Qubino ZMNHAD1

({Device([1026].TemperatureSensor.CurrentTemperature)}) = Qubino ZMNHAD1 with external temperature sensor
Answer from Google Home: “Klockan 7:50” - should be “-7.5” (Klockan mean “Time” in english)

It’s impossible to answer your question because you need to have the proper info in the query string.
That information is DATA dependent.

To access any variable in Vera you need 3 pieces of information:
1) Device ID (I do not know if the device ID you provided is correct)
2) Service ID (Using my shortcut service IDs are probably correct, but you need to verify
3) Variable Name

Find the Variable you want in by using the Advanced Tab on a Device.
At the top is Device #XX
XX is the device ID
Goto the variable tab. Find your variable, hover over the variable name … it will provide the service ID.

You now have all the informaion you need:
{Device[XX].ServiceIDName.VariableName}
ServiceIDName can be one of my shortcut names

I think I got it for the temperature sensors, somehow it works now (I removed “1”): {Device([2186].TemperatureSensor.CurrentTemperature)}

However, for the humidity sensor, I doesn’t :frowning:
Under variables, I have: urn:micasaverde-com:serviceId:HumiditySensor1 - CurrentLevel

With your logic, it would be: {Device([2188].HumiditySensor1.CurrentLevel)}
I also tried: {Device([2188].HumiditySensor.CurrentLevel)}
But it doesn’t work?

If you looked at the test file I sent you you would see you could use:

urn:micasaverde-com:serviceId:HumiditySensor1

[quote=“RichardTSchaefer, post:16, topic:198030”]If you looked at the test file I sent you you would see you could use:

urn:micasaverde-com:serviceId:HumiditySensor1[/quote]

Really trying to understand…
Earlier you advised:

"You may have to use the long format:

i.e. for
Device ID = 5
Serivice ID = urn:upnp-org:serviceId:SwitchPower1
Variable Name = Status

{Device([5].parent.service[urn:upnp-org:serviceId:SwitchPower1].Status)}
"

To This time I tried both:

{Device([2188].parent.service[urn:micasaverde-com:serviceId:HumiditySensor1].CurrentLevel)}
and
{Device([2188].[urn:micasaverde-com:serviceId:HumiditySensor1].CurrentLevel)}

Doesn’t work…
Am I close?