The Vera Community forums have moved!

General => Remote Control => ImperiHome (Android) => Topic started by: petewill on February 28, 2015, 08:24:56 pm

Title: (Video) How to setup and configure the ImperiHome app
Post by: petewill on February 28, 2015, 08:24:56 pm
Hi Everyone,

I made a couple of videos on how I recycled a couple of old cell phones to use as home automation control panels.  I'm using the ImperiHome App and the videos are about how to set everything up.  I split them into 3 parts because they cover different parts of using the app on a phone/tablet.  I love the ImperiHome app and I hope these videos will help other people love it too. 

Part 1: Setting up the ImperiHome App - http://youtu.be/5W6C4psWs-4
Part 2: Turn on/off screen using Tasker - http://youtu.be/qIh1xXGVXeI
Part 3: Install & Configure the ImperiHome Vera App - http://youtu.be/wF88xN_pO54

I have uploaded the Tasker project so you can import it into your phone/tablet and hopefully save some time creating all the tasks.  NOTE: you must be logged in to download the file.


Pete
Title: Re: (Video) How to setup and configure the ImperiHome app
Post by: tomtcom on February 28, 2015, 11:50:06 pm
Great work!
Title: Re: (Video) How to setup and configure the ImperiHome app
Post by: RoChess on March 01, 2015, 02:34:26 am
Is there any benefit over Tasker versus the build in webcam motion support in ImperiHome?
Title: Re: (Video) How to setup and configure the ImperiHome app
Post by: petewill on March 01, 2015, 11:20:55 am
Thanks tomtcom!

RoChess,
I wasn't able to consistently get ImperiHome's built in camera support to work for me.  Tasker has been flawless.  The one other thing I like is that when there is continuous motion the screen doesn't turn off.  With ImperiHome the screen would turn off after the specified time then turn right back on.  It's a little annoying if you are walking up to the screen and it turns off when you get there.
Title: Re: (Video) How to setup and configure the ImperiHome app
Post by: tomtcom on March 01, 2015, 07:51:52 pm
Any time Pete. I'm a tasker fan myself. I have noticed that after some time using the auto sequence of imperihome pages, the app will die. You'll get a force close message. So if that happens nothing will work on it. Using tasker in my opinion could be more stable and also allow you to kill the task and restart it if tasker doesn't see the app running.

So ideally, I would set up imperhiome with auto sequence like every 30 seconds and have tasker monitor that it is running and use the tasker control camera wake up.

However ultimately I think whatever works best on your device will be the deciding point.
Title: Re: (Video) How to setup and configure the ImperiHome app
Post by: petewill on March 02, 2015, 09:39:13 am
I have noticed that after some time using the auto sequence of imperihome pages, the app will die. You'll get a force close message. So if that happens nothing will work on it. Using tasker in my opinion could be more stable and also allow you to kill the task and restart it if tasker doesn't see the app running.

Interesting, thanks for pointing that out!  I haven't had that happen yet but I will definitely keep that in mind if it does start to happen. 

Yes, Tasker is awesome!  I have started using it for all sorts of things and not just when I'm at home.  One of the things I like is so simple but saves me time each day.  I set my volume on my phone lower when I'm at work (using AutoLocation) and increase it when I leave. Great app!
Title: Re: (Video) How to setup and configure the ImperiHome app
Post by: tomtcom on March 02, 2015, 08:24:10 pm
I have noticed that after some time using the auto sequence of imperihome pages, the app will die. You'll get a force close message. So if that happens nothing will work on it. Using tasker in my opinion could be more stable and also allow you to kill the task and restart it if tasker doesn't see the app running.

Interesting, thanks for pointing that out!  I haven't had that happen yet but I will definitely keep that in mind if it does start to happen. 

Yes, Tasker is awesome!  I have started using it for all sorts of things and not just when I'm at home.  One of the things I like is so simple but saves me time each day.  I set my volume on my phone lower when I'm at work (using AutoLocation) and increase it when I leave. Great app!

This is quite an active thread however geared toward your phone. Just figured I'd share. I asked about home automation with autovera and so on but most on their are not sure. However guys like RuggedHunter are dam good at the phone stuff.

http://forum.xda-developers.com/showthread.php?t=1110775
Title: Re: (Video) How to setup and configure the ImperiHome app
Post by: tomgru on March 02, 2015, 11:05:23 pm
Hey Pete... thanks for this.  i'm trying it not.

One thing to note, i have a tablet.  so i'm not sure about a few steps. 
1.  how do i set the screen savor on the tablet (assuming of course i turn it off in Imperihome)?  I assume it turn it off here as well, as it look like you have Tasker manage screen on/off?
2.  In Tasker, looking at your ScreenOn proj, i have the 3 options under tasks,  But the Turn on Screen and the Turn Off Screen both have exclamation points next to them.  No idea what this means?
2.1  OK.. i went it to each of these, and see that you can give admin rights for the screen on. 
2.2 The screen on requires the Secured Settings app, that i did not have installed.  Nice that it directed me there.
3.  After going through both of these, the exclamation points are gone.
4. I didn't bother with autostart yet... but will add that next if necessary.  i don't have my tablets reboot every night.

And... my screen never turns off :-)

EDIT:  HOLD PLEASE... It might be working.  let me play with this a bit and report back.  :D
Title: Re: (Video) How to setup and configure the ImperiHome app
Post by: tomgru on March 03, 2015, 12:05:49 am
Hey Pete... thanks for this.  i'm trying it not.

One thing to note, i have a tablet.  so i'm not sure about a few steps. 
1.  how do i set the screen savor on the tablet (assuming of course i turn it off in Imperihome)?  I assume it turn it off here as well, as it look like you have Tasker manage screen on/off?
2.  In Tasker, looking at your ScreenOn proj, i have the 3 options under tasks,  But the Turn on Screen and the Turn Off Screen both have exclamation points next to them.  No idea what this means?
2.1  OK.. i went it to each of these, and see that you can give admin rights for the screen on. 
2.2 The screen on requires the Secured Settings app, that i did not have installed.  Nice that it directed me there.
3.  After going through both of these, the exclamation points are gone.
4. I didn't bother with autostart yet... but will add that next if necessary.  i don't have my tablets reboot every night.

And... my screen never turns off :-)

EDIT:  HOLD PLEASE... It might be working.  let me play with this a bit and report back.  :D

this does appear to be working!  that's the good news... and THANKS for the detailed instructions

the bad news is, that at least on my Acer tablet, the backlight remains on... same as using the imperihome motion detector.  So at night there is still a faint glow.  enough that my wife won't let me use it in the bedroom :-(
Title: Re: (Video) How to setup and configure the ImperiHome app
Post by: petewill on March 03, 2015, 09:10:23 am
This is quite an active thread however geared toward your phone. Just figured I'd share. I asked about home automation with autovera and so on but most on their are not sure. However guys like RuggedHunter are dam good at the phone stuff.

http://forum.xda-developers.com/showthread.php?t=1110775

@tomtcom Thanks for sharing.  I'll have to take a look.  There are an unending amount of projects that can be done with this.  So much fun!

the bad news is, that at least on my Acer tablet, the backlight remains on... same as using the imperihome motion detector.  So at night there is still a faint glow.  enough that my wife won't let me use it in the bedroom :-(

@tomgru I am pretty sure that Tasker sends the command to completely turn off your screen.  Could it be something with the tablet settings?  Maybe it keeps the backlight on when it's plugged in (I'm assuming you have it plugged in).  Also, what happens if you turn off the screen by manually pressing the power button on the tablet?  If that looks ok can you set your Android display/screen timeout settings to 2 minutes?  Tasker should still be able to turn on your screen even if you have your tablet OS turn it off.
Title: Re: (Video) How to setup and configure the ImperiHome app
Post by: tomgru on March 03, 2015, 05:43:16 pm
@tomgru I am pretty sure that Tasker sends the command to completely turn off your screen.  Could it be something with the tablet settings?  Maybe it keeps the backlight on when it's plugged in (I'm assuming you have it plugged in).  Also, what happens if you turn off the screen by manually pressing the power button on the tablet?  If that looks ok can you set your Android display/screen timeout settings to 2 minutes?  Tasker should still be able to turn on your screen even if you have your tablet OS turn it off.

Good idea... but didn't work.... turned off Tablet. never came back on.  i'll try to go deep into the display settings more, but think it may just be my tablet.  It is weird that it leaves the backlight on.
Title: Re: (Video) How to setup and configure the ImperiHome app
Post by: petewill on March 03, 2015, 09:53:01 pm
Good idea... but didn't work.... turned off Tablet. never came back on.  i'll try to go deep into the display settings more, but think it may just be my tablet.  It is weird that it leaves the backlight on.
Dang, sorry, that sucks!  So either the Secure Settings app isn't doing it's job or the tablet has some weird setting that causes things not to run when its screen is turned off.  Maybe a low power mode? 

Does the screen turn on/off (with the backlight still on) with the Tasker project?  If so, then the secure settings app is probably working.  What model is the Acer tablet?
Title: Re: (Video) How to setup and configure the ImperiHome app
Post by: tomgru on March 04, 2015, 11:57:51 am
Good idea... but didn't work.... turned off Tablet. never came back on.  i'll try to go deep into the display settings more, but think it may just be my tablet.  It is weird that it leaves the backlight on.
Dang, sorry, that sucks!  So either the Secure Settings app isn't doing it's job or the tablet has some weird setting that causes things not to run when its screen is turned off.  Maybe a low power mode? 

Does the screen turn on/off (with the backlight still on) with the Tasker project?  If so, then the secure settings app is probably working.  What model is the Acer tablet?

the screen turns on/off perfectly with your setup, as well as the imperihome version as well.  it's just that the backlight remains on, so it glows a bit at night (distracting if in bedroom), as well as causes unneeded usage on the screen.

I have an Acer Iconia B1 7".

I wonder how i can go through the steps one by one and trouble shoot each is working...
Title: Re: (Video) How to setup and configure the ImperiHome app
Post by: petewill on March 04, 2015, 04:34:46 pm
the screen turns on/off perfectly with your setup, as well as the imperihome version as well.  it's just that the backlight remains on, so it glows a bit at night (distracting if in bedroom), as well as causes unneeded usage on the screen.

I have an Acer Iconia B1 7".

I wonder how i can go through the steps one by one and trouble shoot each is working...

You can test the Tasker on/off settings by going to the home screen of the tablet (not ImperiHome).  If it turns on/off when there is motion that would let you know if the Tasker steps are working. 
Title: Re: (Video) How to setup and configure the ImperiHome app
Post by: Inzax on April 22, 2015, 10:43:35 am
Pete (or anybody who knows)

You mentioned you have a "couple" of old cell phones you have re-tasked as touch panels.  How many devices are you running on your vera set up?  I am running one at the moment and I am looking at a stack of old android touchscreens.  I would like to go to maybe TWO or THREE devices.   I am going to test it but thought I would ask if you ran in to any issues with multiple devices run on the same vera.  (U17 Edge.)

Thanks. 
Title: Re: (Video) How to setup and configure the ImperiHome app
Post by: RoChess on April 22, 2015, 12:43:37 pm
How many devices are you running on your vera set up?

2x Acer 21.5" Android touchscreen AIO
1x Samsung S2
1x Samsung S3
1x Nexus 7 1st gen
1x Nexus 7-LTE 2nd gen
1x LG Pad 7-LTE

All running ImperiHome, but probably a max of 3 devices simultaneously.
Title: Re: (Video) How to setup and configure the ImperiHome app
Post by: petewill on April 22, 2015, 07:41:08 pm
How many devices are you running on your vera set up?

What are you trying to do?  Control the phones with the Vera app or just control vera with the app?  I have two phones controlled by vera but 5 that can control vera. 
Title: Re: (Video) How to setup and configure the ImperiHome app
Post by: Inzax on April 22, 2015, 07:55:51 pm
How many devices are you running on your vera set up?

What are you trying to do?  Control the phones with the Vera app or just control vera with the app?  I have two phones controlled by vera but 5 that can control vera.

If I understand correctly, I am trying to do both. 

If somebody triggers my outdoor motion sensor I have a scene in vera that wakes the phone and opens the corresponding page to the needed camera.  I also have a "security" page that gets brought up showing what security device has been tripped.

In the area of "phone controlling vera" I have a page where I can arm and disarm my security system from the phone by executing scenes in vera. 

So far, one phone.  I was thinking of doing similar set ups in different parts of the house.  Probably two more touchscreens.   Weekend project...but to be honest ImperiHome is really easy so should only take a bit.  My main concern was I would make U17 wonky/unstable by adding to many ImperiHome "devices."
Title: Re: (Video) How to setup and configure the ImperiHome app
Post by: petewill on April 22, 2015, 08:04:37 pm
How many devices are you running on your vera set up?

What are you trying to do?  Control the phones with the Vera app or just control vera with the app?  I have two phones controlled by vera but 5 that can control vera.

If I understand correctly, I am trying to do both. 

If somebody triggers my outdoor motion sensor I have a scene in vera that wakes the phone and opens the corresponding page to the needed camera.  I also have a "security" page that gets brought up showing what security device has been tripped.

In the area of "phone controlling vera" I have a page where I can arm and disarm my security system from the phone by executing scenes in vera. 

So far, one phone.  I was thinking of doing similar set ups in different parts of the house.  Probably two more touchscreens.   Weekend project...but to be honest ImperiHome is really easy so should only take a bit.  My main concern was I would make U17 wonky/unstable by adding to many ImperiHome "devices."

Ok, that makes sense.  I guess can't fully answer but I have 2 and everything seems to be working fine.  I'm also still on UI5.  Let us know how it goes :)
Title: Re: (Video) How to setup and configure the ImperiHome app
Post by: Inzax on April 24, 2015, 12:48:10 pm
4 Touchscreens up and running.  No meltdown yet.....

3 old Droid 4's positioned around house with a cheap 49 dollar android 7 inch touchscreen. 

Have a nice outdoor motion sensor working within a scene to bring up the appropriate cameras when someone approaches the house.  Very nice.

I will re-post if edge melts.
Title: Re: (Video) How to setup and configure the ImperiHome app
Post by: Inzax on April 26, 2015, 08:58:08 am
...added a rooted kindle to the mix.  I don't need 5 TS's but more curious about the limits.  Each TS is part of the same scene which pops up the appropriate cameras when sensing movement. 

I will probably retire one of the droid's since the kindle screen is bigger.
Title: Re: (Video) How to setup and configure the ImperiHome app
Post by: petewill on April 27, 2015, 03:50:53 pm
Nice!  Thanks for the update.
Title: Re: (Video) How to setup and configure the ImperiHome app
Post by: dannieboiz on May 08, 2015, 01:15:10 am
I followed your instruction and was able to get motion detection to work. Screen turns on everytime. however, the screen off time out remains active even if you're using the phone, so it would blink at the interval set and turn back on. How can we overcome this issue?
Title: Re: (Video) How to setup and configure the ImperiHome app
Post by: petewill on July 22, 2015, 03:22:03 pm
I followed your instruction and was able to get motion detection to work. Screen turns on everytime. however, the screen off time out remains active even if you're using the phone, so it would blink at the interval set and turn back on. How can we overcome this issue?
Sorry for the delayed reply.  I was never notified of your post.  I primarily intended this to be used on old phones that are dedicated as control panels.  I don't know if this will be good to use on a phone that you use for purposes other than this.  It will probably drain your battery pretty fast.
Title: Re: (Video) How to setup and configure the ImperiHome app
Post by: emknowledge on August 03, 2015, 12:03:26 pm
I HAVE FOLLOWS STEP-BY-STEP PROCEDURES FROM YOUR VIDEOS HERE.

Part 1: Setting up the ImperiHome App - http://youtu.be/5W6C4psWs-4
Part 2: Turn on/off screen using Tasker - http://youtu.be/qIh1xXGVXeI
Part 3: Install & Configure the ImperiHome Vera App - http://youtu.be/wF88xN_pO54

I am still having trouble getting the tablet or phone to come on let alone turn off and start Imperihome app. Everything looks just as you did in videos, but mine does not perform as such. A ny clue as to what could be the problem. Thanks.
Title: Re: (Video) How to setup and configure the ImperiHome app
Post by: ando1 on August 03, 2015, 01:13:46 pm

Have a nice outdoor motion sensor working within a scene to bring up the appropriate cameras when someone approaches the house.  Very nice.


Hi,

I was wondering what you are using as the outdoor motion sensor as I am also looking for these.

Thanks,
Andy
Title: Re: (Video) How to setup and configure the ImperiHome app
Post by: petewill on August 03, 2015, 03:43:10 pm
I HAVE FOLLOWS STEP-BY-STEP PROCEDURES FROM YOUR VIDEOS HERE.

Part 1: Setting up the ImperiHome App - http://youtu.be/5W6C4psWs-4
Part 2: Turn on/off screen using Tasker - http://youtu.be/qIh1xXGVXeI
Part 3: Install & Configure the ImperiHome Vera App - http://youtu.be/wF88xN_pO54

I am still having trouble getting the tablet or phone to come on let alone turn off and start Imperihome app. Everything looks just as you did in videos, but mine does not perform as such. A ny clue as to what could be the problem. Thanks.

Have you rooted your device.  That may be necessary for some devices (not all of mine required it but one did).
Title: Re: (Video) How to setup and configure the ImperiHome app
Post by: petewill on August 03, 2015, 03:45:52 pm

Hi,

I was wondering what you are using as the outdoor motion sensor as I am also looking for these.

Thanks,
Andy

Andy, I know you were asking Inzax but I use MySensors (http://www.mysensors.org/build/motion) for my outdoor motion sensor.  Cost me about $5.  It's not waterproof but I have it under my porch and it has been working flawlessly for over a year. 
Title: Re: (Video) How to setup and configure the ImperiHome app
Post by: ando1 on August 04, 2015, 06:19:53 am

Andy, I know you were asking Inzax but I use MySensors (http://www.mysensors.org/build/motion) for my outdoor motion sensor.  Cost me about $5.  It's not waterproof but I have it under my porch and it has been working flawlessly for over a year.

@petewill:

Thanks! That looks really interesting and I am going to give it a try!

Andy
Title: Re: (Video) How to setup and configure the ImperiHome app
Post by: Inzax on August 04, 2015, 08:18:40 am

Have a nice outdoor motion sensor working within a scene to bring up the appropriate cameras when someone approaches the house.  Very nice.


Hi,

I was wondering what you are using as the outdoor motion sensor as I am also looking for these.

Thanks,
Andy

Hey Andy.  My wireless motion sensor runs through my security panel (concord 4).  It is not a zwave device however, since vera interfaces with my security panel there is no difference I can tell on its functionality.  The motion sensor I have is an old GE model.  I tried to find the exact make however, it is not sold anymore.  It is big, old and probably not what you need.  It actually works with a door sensor placed inside the module. 

Right now, there are much better options that are smaller and work exactly the same directly through the vera module.  If you really want to know the make I can probably find it online.  The closest I could find based on pictures is a DSC outdoor module.  Mine looks close to this.  http://www.homesecuritystore.com/dsc-lc-171?
Title: Re: (Video) How to setup and configure the ImperiHome app
Post by: petewill on August 04, 2015, 09:09:17 am
@ando1

Great!  It's a lot of fun!  If you're new to Arduino make sure you check out the MySensors site for more info.  You will need a gateway to interface with the Vera.  If you are on UI7 I would recommend the Ethernet gateway.  It's a little more complex to build but it is easier to configure in Vera.  If you get stuck there are lots of helpful people on the mysensors forum.
Title: Re: (Video) How to setup and configure the ImperiHome app
Post by: giove7223 on November 21, 2015, 08:42:06 am
Hi Everyone,

I made a couple of videos on how I recycled a couple of old cell phones to use as home automation control panels.  I'm using the ImperiHome App and the videos are about how to set everything up.  I split them into 3 parts because they cover different parts of using the app on a phone/tablet.  I love the ImperiHome app and I hope these videos will help other people love it too. 

Part 1: Setting up the ImperiHome App - http://youtu.be/5W6C4psWs-4
Part 2: Turn on/off screen using Tasker - http://youtu.be/qIh1xXGVXeI
Part 3: Install & Configure the ImperiHome Vera App - http://youtu.be/wF88xN_pO54

I have uploaded the Tasker project so you can import it into your phone/tablet and hopefully save some time creating all the tasks.


Pete

Hello Pete

Thanks for your post.
I have followed your guide and got Motion Detector working (i can hear sounds).
I have imported the xml into tasker but nothing happen. If I click play on the scene it turn the screen off and therefore I assume it works but nothing happen automatically.. can you help me on this?
thanks
Title: Re: (Video) How to setup and configure the ImperiHome app
Post by: CraigO on December 13, 2015, 08:34:37 pm
I'm getting the same behavior as giove7223. I have all the pieces installed and configured and I hear an sound when the motion detector trips. But the screen doesn't automatically turn on. If I manually play the "screen off" Tasker piece it does turn the screen off.

I'm using an Amazon Fire tablet running the latest code (5.1.1 I think).

Anyone have any ideas?

Thanks,
Craig
Title: Re: (Video) How to setup and configure the ImperiHome app
Post by: Christian R on January 15, 2017, 09:27:39 am
I'm getting the same behavior as giove7223. I have all the pieces installed and configured and I hear an sound when the motion detector trips. But the screen doesn't automatically turn on. If I manually play the "screen off" Tasker piece it does turn the screen off.

I'm using an Amazon Fire tablet running the latest code (5.1.1 I think).

Anyone have any ideas?

Thanks,
Craig

Update: Action Variable has changed. It should be org.motion.detector.ACTION_GLOBAL_BROADCAST

Title: Re: (Video) How to setup and configure the ImperiHome app
Post by: James92TSi on March 16, 2018, 06:10:47 pm
Hey Pete, thanks for posting all this helpful info!

I made one tweak to your Tasker project in order to keep the screen from timing out if a user walks up to an already-lit screen and is standing there when the timer expires. (I saw some comments about this - might have been here or on Youtube, don't recall).

I cut the "variable set %Count to 0" action item out of the beginning of the Timer task and pasted it into the Turn On Screen task between the End If and the Perform Task Timer line. Like this:

Code: [Select]
if %ScreenOn eq False
   Variable Set %ScreenOn to True
   Secure Settings configuration Screen Bright Manual - On
End If
Variable Set %Count to 0
Perform Task name Timer

This way whenever motion is sensed, it turns on the screen (if not already on), then resets the timer. The display times out 30 sec after the last motion sensing event but it shouldn't time out in front of any users.

I also changed the Motion Detector "suspend" setting to 5. I don't know how well my ancient tablet would have dealt with a notification every 2 sec.

Side note: I'm doing this on a Samsung P4wifi with AOSP Nougat on it - which IS compatible with the Imperihome native camera wakeup feature. Problem is, I really wanted to hide the bottom navbar (immersive mode) and I ran into issues with the screen backlight staying on if I managed the wakeup/timeout in Imperihome with the navbar hidden. Tried multiple immersive mode apps with the same result. Managing the screen wakeup/timeout your way let me keep both features. Thanks!
Title: Re: (Video) How to setup and configure the ImperiHome app
Post by: petewill on March 19, 2018, 09:17:05 am
Thanks for posting this James!  Like you said, multiple people have asked for this feature.  Great job.