Is there any way to define a variable that can be displayed in the frontend?
We can display the variable $mode (displayed in the Room2 in config.json demo).
If I define a new variable: $mode2 I can’t display it.
What should I do?
[Solved] How to display variable.
Is there any way to define a variable that can be displayed in the frontend?
We can display the variable $mode (displayed in the Room2 in config.json demo).
If I define a new variable: $mode2 I can’t display it.
What should I do?
You should add a device that shows the variable:
{
"id": "mode",
"name": "Mode",
"class": "VariablesDevice",
"variables": [
{
"name": "modeVar",
"expression": "$mode",
"type": "string"
}
]
},
I understand. Actually the device that shows the variable must be added to the file config.json.
I try using GUI but is not possible (“Sorry that operation is not supported yet”).
I suppose that in the future it will be possible from pimatic-fronted.
Thanks.
the in gui edit of devices is still a feature request and not yet implemented.
you can vote here : http://forum.pimatic.org/topic/21/in-gui-device-add-edit-remove
pimatic v0.9 has been released!
Support Pimatic and get some free stickers
Like us on Facebook
make it so !