Hi. Doing a quick search on Google and the HomeSeer forums, I couldn’t really find any posts with a quick and easy way to make widgets on Android for use with HomeSeer via their MyHomeSeer cloud service. I’ve been using this method for a while to run events from widgets on my phone from anywhere and thought I’d share it for the sake of anyone else doing a search. This is for novices and shows how to add a widget for running an Event, but you can see from the SDK guide that with a little bit of time that you can do quite a bit more.
I used the information in the SDK guide located here:
https://homeseer.com/support/homesee...DK/default.htm
and saw you can control devices and trigger events with a single URL using HTTP get.
So, there’s a million ways and apps you could use to do this, and this is just one way I chose. Feel free to post your ideas and comments (with screenshots please). IFTTT is popular for this as well. You could also just simply use a browser to create home screen shortcuts to the URLs to perform actions, but you'd have the extra step of having to close your browser out after running an action.
Quick Summary
Find the event ID (you can also use group name and event name to run)
Create a Tasker task to access a URL then display a popup with the result for each widget that you want
Instructions
For the below, use the following substitutions
YOURMYHSEMAILACCOUNTNAME: The part before the @ in your email address used for your MyHomeSeer account
YOURDOMAIN.COM: The part after the @ in your email address used for your MyHomeSeer account
YOURMYHSPASSWORD: Your MyHomeSeer Password
EVENTID: The numeric ID of the event you want to run. There's multiple ways to find the ID, and I mention one way below. Also note that you can also use the group name and event name if you want, just be sure to encode the URL and use the proper case, and use the URL format in the API guide.
First, find the id of the event you want to activate. To get a list of all accessible events ids and names, you can use the following URL:
https://connected.homeseer.com/JSON?user= YOURMYHSEMAILACCOUNTNAME%40YOURDOMAIN.COM&pass=YOURMYHSPASSW ORD&request=getevents
(Use CTRL-F in your browser if you need to find the id by name if you have a large number of events)
Open Tasker, tap on Tasks, then tap on the + icon. Give your task a name then tap the checkbox.
Tap on the + icon to add an action. Select Net, then HTTP Get.
For Server:Port, enter
https://connected.homeseer.com:443
For Path, enter
JSON?user=YOURMYHSEMAILACCOUNTNAME%40YOURDOMAIN.COM&pass=YOU RMYHSPASSWORD&request=runevent&id=EVENTID
You can leave everything else alone.
Go back and add a second action using the + icon.
Select Alert, then Popup.
Under Text, enter
%HTTPD
Change the Timeout parameter for the popup to 1 second
Go back to your task. Now, click the icon at the bottom that’s a square grid of 9 squares. Next, navigate and find an icon that you like that will be used for your home screen widget. Now, go back to the Tasker main screen or else you won’t be able to add a widget. Next, go to your phone/tablet’s home screen.
Lastly, you’ll need to add the widget to your home screen. This process varies between Android devices, but usually you’ll need to hold down your finger on an empty area of your home screen, then select widgets. Sometimes there is a widget section in your applications menu.
Now, select the Tasker widget, hold down on the Task 1x1 Widget, then drop it where you want the Widget to go. Select the task that you just created that you want to link to the widget.
That’s all there is to it!
Comment