Question regarding config/Rules.xml

Discussions about Z-Way software and Z-Wave technology in general
Post Reply
Shazard
Posts: 25
Joined: 21 Jun 2014 13:41

Question regarding config/Rules.xml

Post by Shazard »

Hi,

What is full structure of this file.

Currently I see it has encoding for device names and their coordinates on the map, as well as map itself with polygons.

My case is again... suppose I have multisensor, where one device have 3 sensors... And what if I want to rename each sensor... similar like it is done by Rules.xml assigning logical names to the device ids. Is there structural possibility.

And even if it is not, then do I understand correctly if I add something to the XML it will be overwritten on the next save anyway?

Is there another way to save some metadata on the system. Looking into code it seems that I can write any file using "PUT" request, but can I create new file with additional metadata?
User avatar
PoltoS
Posts: 7649
Joined: 26 Jan 2011 19:36

Re: Question regarding config/Rules.xml

Post by PoltoS »

Forget about it - it is only for old blue UI and is not used by anything else.
Shazard
Posts: 25
Joined: 21 Jun 2014 13:41

Re: Question regarding config/Rules.xml

Post by Shazard »

So how then I can associate any metadata with devices?
User avatar
PoltoS
Posts: 7649
Joined: 26 Jan 2011 19:36

Re: Question regarding config/Rules.xml

Post by PoltoS »

in which UI?
Shazard
Posts: 25
Joined: 21 Jun 2014 13:41

Re: Question regarding config/Rules.xml

Post by Shazard »

Isn't this common?
What I wanted to do is that if I rename a device on my application or UI, this is reflected everywhere.
User avatar
PoltoS
Posts: 7649
Joined: 26 Jan 2011 19:36

Re: Question regarding config/Rules.xml

Post by PoltoS »

There are essencially two UIs: Expert UI, related to Z-Wave only and Z-Way Home Automation UI, which is more for everyday usage. The latter have it's own concept of widgets, modules and own config with names.
Shazard
Posts: 25
Joined: 21 Jun 2014 13:41

Re: Question regarding config/Rules.xml

Post by Shazard »

PoltoS, then it seems that you could improve design to move this metainformation storage closer to the Z-Wave.me itself, and decouple it from UI.
User avatar
PoltoS
Posts: 7649
Joined: 26 Jan 2011 19:36

Re: Question regarding config/Rules.xml

Post by PoltoS »

Could you explain your idea in more details please?
Post Reply