Securifi Community Forum

Securifi Products => Almond+ => Topic started by: k1m on April 06, 2015, 10:56:14 pm

Title: Is there a config file for arranging the sensors?
Post by: k1m on April 06, 2015, 10:56:14 pm
I want to rearrange my sensors so that they are grouped together by rooms. Is there a config file that holds the sensors and determines the order they get listed? I am comfortable with SSH if need be. Thanks
Title: Re: Is there a config file for arranging the sensors?
Post by: k1m on April 09, 2015, 10:29:10 pm
Does the silence mean no?
Title: Re: Is there a config file for arranging the sensors?
Post by: LGNilsson on April 09, 2015, 11:35:11 pm
I've asked the software team to reply, but I guess they don't have an answer as there's nothing publicly available to do this.
Title: Re: Is there a config file for arranging the sensors?
Post by: DeveshRai on April 10, 2015, 12:46:54 am
@k1m: Have a look at /tmp/DeviceList.xml. A few things you should be aware of:

1) This file has a backup on a protected partition, so any manual changes may (possibly will) be reset on a reboot.
2) Every device has an ID, this is an attribute (Example: <Device ID="3">). Devices are ordered using this.
3) Changing the ID will (Definitely will) break the rules created before the ID change. The ID is a primary key for the sensors DB.
4) After changing the IDs, remember to "killall haserver;killall cloudha" on the console.
5) I'm sharing this information in the spirit of the community/hackability, the disclaimer reads that this may break some stuff so be wary. If something goes wrong, the only way to recover the device may be to reset the home automation subsystem (via the LCD) and add all your devices again manually.

Hope that helps,

Devesh
Title: Re: Is there a config file for arranging the sensors?
Post by: k1m on April 10, 2015, 05:12:47 am
Thank you guys.  One more question, restoring from a backup will not prevent the need to repair devices in case of a catastrophic oops? I will experiment at my own risk, I like to consider it the joys of hacking. 
Title: Re: Is there a config file for arranging the sensors?
Post by: LGNilsson on April 10, 2015, 06:21:11 am
You'd be editing the "live" image. Hitting the reset button up top for 10 seconds will load a "backup" image from the flash that will overwrite most settings and should fix most things that you break this way.
Title: Re: Is there a config file for arranging the sensors?
Post by: k1m on April 10, 2015, 07:05:12 am
Cool.  Thank you. Off to hack.
Title: Re: Is there a config file for arranging the sensors?
Post by: coderunner on April 10, 2015, 01:00:50 pm
Is there a way to update the device IDs in the rules?

Any estimate on when this functionality to re-order sensors will be added?