[dss-developer] groups over zones, function id?

Patrick Staehlin pstaehlin at futurelab.ch
Fri Mar 5 11:13:30 CET 2010


Hi!

On Sunday 28 February 2010 21.57:56 Dominik Wieser wrote:
> 
> I would think groups that can hold devices of different zones also
> could be very useful. So you could make a group containing all
> jalousies of the southside of the house for example. Is there such a
> possiblity? I thought about doing this with the property system. But
> the variables i created are always gone, as soon as the server gets
> restarted. How can I save the properties.

Basically what you could use sets for that. I've updated the documentation[1] 
on sets to make more sense (thats partly the reason for my late reply). I 
would add tags to those devices[2] you would like to group and then use a set 
to control those devices using the "tag" set function.

> What is exactly is the function id? How can I get this id over the
> api? And how can I know which device it is, with the help of the
> function id? is there a kind of table?

The function id is returned in the Web-API call apartment/getStructure. There 
is no public table that I could give to you but I'll ask around if we can 
publish one.

> I also don't really understand the concept of the user groups.

There are 63 group-bits that can be set on a device. The first 10 bits are 
reserved for default groups but the others are freely settable. How you use 
those groups is basically up to you. A Christoph gave you a more in-depth 
explanation in his email.
I'd encourage the use of sets though to let the dSS handle the grouping.

[1] https://developer.digitalstrom.org/redmine/wiki/dss/Set_syntax
[2] http://gitorious.digitalstrom.org/dss/dss-mainline/merge_requests/45

Patrick
-- 
Patrick Stählin		Hardware Wrangler
futureLAB AG		tel: +41 (0)52 260 22 22
Schwalmenackerstr. 4	fax: +41 (0)52 260 22 23
CH-8400 Winterthur	mission: delivering tomorrow's applications today


More information about the dss-developer mailing list