hi,
if i add a VariablesDevice. i get the following error and can`t use the Variable.
error [pimatic,VariablesDevice]: Error getting attribute value meldung.myVar1: Could not parse expression
what is the problem?
[solved]Add a VariablesDevice Could not parse expression
hi,
if i add a VariablesDevice. i get the following error and can`t use the Variable.
error [pimatic,VariablesDevice]: Error getting attribute value meldung.myVar1: Could not parse expression
what is the problem?
did you create the variable you are using for the variables device?
pimatic v0.9 has been released!
Support Pimatic and get some free stickers
Like us on Facebook
make it so !
@scaleoblack Make sure the expression does not contain extraneous space characters. Presumably that’s causing the error.
"It always takes longer than you expect, even when you take into account Hofstadter's Law.", Hofstadter's Law
Hi,
I wound to use the VariableDevice to show a status on the frondend and set it by a rule.
variables [1]
0 {3}
name : myVar1
expression : $myVar1
type : string
xAttributeOptions [0]
(empty array)
hap {1}
id : meldungen
name : Meldungen
class : VariablesDevice
I don’t have any special characters.
The error also occurs if the given variable is undefined. Make sure you have added a variable “myVar1”!
"It always takes longer than you expect, even when you take into account Hofstadter's Law.", Hofstadter's Law
how i can add a variable? I think the VariablesDevice add the variable?
ok what exactly do you want to do? seems we’re talking about different things?
if using a variables device you are able to show every EXISTING variable on the gui.
so if you are using a variable that does not exist yet, you need to create it at the main menu “variables”
pimatic v0.9 has been released!
Support Pimatic and get some free stickers
Like us on Facebook
make it so !
What am I doing wrong? I get a “Error getting attribute value homeduino-update-gui.homeduino-update-gui: Could not parse expression”. In my opinion I followed https://forum.pimatic.org/topic/1502/update-notification-and-changelog-for-pimatic-and-homeduino up to step 4 when the error shows up.
{
"variables": [
{
"name": "homeduino-update-gui",
"expression": "$homeduino-update-info",
"type": "string"
}
],
"xAttributeOptions": [],
"id": "homeduino-update-gui",
"name": "Homeduino update info",
"class": "VariablesDevice"
}
@Frans said in Add a VariablesDevice Could not parse expression:
What am I doing wrong?
Did you add the variable $homeduino-update-info
as described in the previous posts?
"It always takes longer than you expect, even when you take into account Hofstadter's Law.", Hofstadter's Law
In my opinion the variable was created during the creation of the “device” by filling in the “variables”-part. Now I see this is not so!
Thank you its working now and sorry, I had to look better