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.
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)…
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”)
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?
Still no solution
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
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?
{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?
Best Home Automation shopping experience. Shop at Ezlo!