Thanks! Let me know when it is implemented and i will upgrade my OpenNethome.stefangsbb wrote:Oops - that is a bug... It should really save and restore the disabled state. I will fix that.
Timeres not activated after power outage
Re: Timeres not activated after power outage
-
- Site Admin
- Posts: 313
- Joined: Sun Nov 30, 2014 2:16 pm
Re: Timeres not activated after power outage
Ok, fixed it. It is in the nightly build.
Re: Timeres not activated after power outage
Hi Stefan,
Just upgraded the nighly build. After openenethome booted up, i disabled the items and rebooted (sudo shutdown -r now) the RPi.
After RPi and nethome booted up again, those items were again enabled.
I also tried with sudo /etc/init.d/nethome stop and then sudo /etc/init.d/nethome start and also after that, items were in enabled state.
I am running version:
**Starting HomeManager 2.1-SNAPSHOT-bc7d0**
Any advice's? Thank you!
Just upgraded the nighly build. After openenethome booted up, i disabled the items and rebooted (sudo shutdown -r now) the RPi.
After RPi and nethome booted up again, those items were again enabled.
I also tried with sudo /etc/init.d/nethome stop and then sudo /etc/init.d/nethome start and also after that, items were in enabled state.
I am running version:
**Starting HomeManager 2.1-SNAPSHOT-bc7d0**
Any advice's? Thank you!
-
- Site Admin
- Posts: 313
- Joined: Sun Nov 30, 2014 2:16 pm
Re: Timeres not activated after power outage
Well, it is a bit more complicated... The states of the Items are only saved directly when you actually edit an Item and then press save. Apart from that, all Items are automatically saved once every hour. I don't want to save them too often, as this will wear down the flash cards too fast on a Raspberry Pi.
I could make this auto save period configurable if you want to have them saved more often. Also, if you know you want to save the Items at a specific time, you can call the "SaveItems"-method in the "Event Broker"-Item. You can also reach this manually on the settings tab.
I could make this auto save period configurable if you want to have them saved more often. Also, if you know you want to save the Items at a specific time, you can call the "SaveItems"-method in the "Event Broker"-Item. You can also reach this manually on the settings tab.
Re: Timeres not activated after power outage
Items i am talking about here are all the time in disabled mode. Those are motion sensors which should be in enabled mode only when i enable those manually, which is very rarely.
I also used "save items" option from settings and then restarted opennethome. Again when it booted up, those were enabled.
Maybe this is my config issue in someway?
I also used "save items" option from settings and then restarted opennethome. Again when it booted up, those were enabled.
Maybe this is my config issue in someway?
Re: Timeres not activated after power outage
Hhhhm I see little bug there , ok I go my motion sensor , click disable and save item , now I see my homeitem.xml I see Somemotion disabled.
ok this look good motion is in config file disable state. but when start nethome motion sensor show enabled , still config file say that item is disabled state. not sure if this is permanent solution , I use that my demo server to test that.
ok this look good motion is in config file disable state. but when start nethome motion sensor show enabled , still config file say that item is disabled state. not sure if this is permanent solution , I use that my demo server to test that.
-
- Site Admin
- Posts: 313
- Joined: Sun Nov 30, 2014 2:16 pm
Re: Timeres not activated after power outage
Ok, this was a bit embarrassing... I had made the change and tested it - but... I had failed to commit the change to GitHub, so it was not in the nightly build. I have done that now, and I tested to download from nightly build and it worked. So it should be ok now.
Re: Timeres not activated after power outage
Working now! Thanks!stefangsbb wrote:Ok, this was a bit embarrassing... I had made the change and tested it - but... I had failed to commit the change to GitHub, so it was not in the nightly build. I have done that now, and I tested to download from nightly build and it worked. So it should be ok now.