bottleneck
Choose style:

Author Topic: Is there a config file for arranging the sensors?  (Read 5184 times)

0 Members and 1 Guest are viewing this topic.

Offline k1m

  • Backer
  • *
  • Posts: 33
  • Thanks: 0
  • Registered : 28/08/2013
    YearsYearsYearsYearsYearsYearsYearsYearsYearsYearsYearsYears
Is there a config file for arranging the sensors?
« 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

Offline k1m

  • Backer
  • *
  • Posts: 33
  • Thanks: 0
  • Registered : 28/08/2013
    YearsYearsYearsYearsYearsYearsYearsYearsYearsYearsYearsYears
Re: Is there a config file for arranging the sensors?
« Reply #1 on: April 09, 2015, 10:29:10 pm »
Does the silence mean no?

LGNilsson

  • Guest
Re: Is there a config file for arranging the sensors?
« Reply #2 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.

DeveshRai

  • Guest
Re: Is there a config file for arranging the sensors?
« Reply #3 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

Offline k1m

  • Backer
  • *
  • Posts: 33
  • Thanks: 0
  • Registered : 28/08/2013
    YearsYearsYearsYearsYearsYearsYearsYearsYearsYearsYearsYears
Re: Is there a config file for arranging the sensors?
« Reply #4 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. 

LGNilsson

  • Guest
Re: Is there a config file for arranging the sensors?
« Reply #5 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.

Offline k1m

  • Backer
  • *
  • Posts: 33
  • Thanks: 0
  • Registered : 28/08/2013
    YearsYearsYearsYearsYearsYearsYearsYearsYearsYearsYearsYears
Re: Is there a config file for arranging the sensors?
« Reply #6 on: April 10, 2015, 07:05:12 am »
Cool.  Thank you. Off to hack.

Offline coderunner

  • Backer
  • *
  • Posts: 27
  • Thanks: 1
  • Registered : 11/09/2014
    YearsYearsYearsYearsYearsYearsYearsYearsYearsYearsYears
Re: Is there a config file for arranging the sensors?
« Reply #7 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?

 

Page created in 0.055 seconds with 21 queries.