iOS/iPad battery level monitor in Homeseer

Forum about other Home automation topics which can not be categorized in any other forum. So this needs to be Home automation Domotica related! (otherwise use Off Topic)
Post Reply
Rutger
Member
Member
Posts: 339
Joined: Wed May 19, 2010 8:48 pm
Location: Netherlands

iOS/iPad battery level monitor in Homeseer

Post by Rutger »

I would like to monitor the battery level of my iPad in Homeseer and start the charger when the battery level is below a certain level, and stop charging at i.e. 100%.
In Hstouch you can monitor the battery level with text '[$BATTERY]'. Unfortunately it isn't possible to parse this value into a virtual device.

I searched for an app that monitor the battery level and send automatically, periodically or at predefined levels an email to Homeseer.
With a other script it's easy to import the battery level from the email text into a virtual device and start the charger.

I found an app, named 'Last Alert', which could do my requests, but it use also the GPS module to send the location, which costs a lot of battery power, say 10% per hour.
If you turn off the location setting for that app, the app crashes, so it's no option to turn it off.

Has somebody an other idea to monitor the battery level of my iPad in Homeseer?
My home automation blog: https://rutg3r.com
Rutger
Member
Member
Posts: 339
Joined: Wed May 19, 2010 8:48 pm
Location: Netherlands

Re: iOS/iPad battery level monitor in Homeseer

Post by Rutger »

I see that I posted this in the wrong area, better was the Homeseer Script Forum, maybe someone can fix this?

The solution to my question is a script command "[$SCRIPT=&hs.setdevicevalue("A1",[$BATTERY])]", were A1 is a virtual device.

If you put this in a textfield it will write the value several times a second to the virtual device, which is too much for me and I don't have the screen were this field exist, always on top. If another screen is active this textfield command doens't work anymore.
So I created a recurring event that runs a hstouch action with a press on a (hidden) button. The button run this script command (with elements).

Sometimes I have an error in the log, but the value is correctly received from hstouch:

7-3-2013 14:39 iOS iPad 75
7-3-2013 14:34 iOS iPad 75
7-3-2013 14:29 iOS iPad 70
7-3-2013 14:24 iOS iPad 70
7-3-2013 14:19 iOS iPad 70
7-3-2013 14:14 iOS iPad 70
7-3-2013 14:09 iOS iPad 70
7-3-2013 14:04 iOS iPad 65
7-3-2013 13:59 iOS iPad 65
7-3-2013 13:54 iOS iPad 65
7-3-2013 13:49 iOS iPad 65
My home automation blog: https://rutg3r.com
Post Reply

Return to “Miscellaneous Home Automation topics”