Tasker

From: Chris (CHRISSS)25 Feb 2016 15:22
To: milko 6 of 43
Yup. No security on here. I can't be bothered with a pin or anything.

Seems silly that there's no way to wake the phone to the home screen. If I try to go to an URL from the lock screen nothing happens. And it didn't work this morning after the call/end call thing so we had a cold house.
From: ANT_THOMAS25 Feb 2016 15:34
To: Chris (CHRISSS) 7 of 43
You don't want a cold house!

I've got a new remote/wireless relay to fit to the boiler to change from the arduino+receiver+relay combo.
From: milko25 Feb 2016 16:49
To: Chris (CHRISSS) 8 of 43
Right but what you're doing here is avoiding using the simple timer function of your heating by some overcomplicated kludge phone thing involving two apps but at the root of it is your phone's clock, ie a simple timer... I say you pretty much are asking for a cold house!
From: ANT_THOMAS25 Feb 2016 17:30
To: Chris (CHRISSS) 9 of 43
Possibly a better idea

Create a PHP file that has a PHP exec command in it to run a script that turns on the heating.

Tasker can run file/http open commands, point at that address.

You may even have the possibility to do that already with your web interface and tasker.

Just checked, it's the HTTP Get task.
From: ANT_THOMAS25 Feb 2016 17:32
To: Chris (CHRISSS) 10 of 43
So if you have something like this

http://ipaddress/homeautomation.php?command=turnonheating

You could use tasker to "open" that address.
From: Chris (CHRISSS)25 Feb 2016 17:59
To: milko 11 of 43
Haha. Yeah, I think that about sums it up perfectly :)
From: Chris (CHRISSS)25 Feb 2016 18:02
To: ANT_THOMAS 12 of 43
Does that work with the screen off? If so that would definitely work.

My web server does that yeah, so http://ip.net/boiler/index.html?param=heatingon (or heatingon90 for 1.5hrs of heating (or heatingon13 if you're feeling unlucky))
From: ANT_THOMAS25 Feb 2016 18:11
To: Chris (CHRISSS) 13 of 43
Yeah, screen off is fine. All in the background, you just need to set the trigger.
From: Chris (CHRISSS)25 Feb 2016 18:16
To: ANT_THOMAS 14 of 43
Excellent. I'll try that out later. Thanks :)
From: ANT_THOMAS25 Feb 2016 19:26
To: Chris (CHRISSS) 15 of 43
I've got home screen widgets to run some tasker tasks. One being an "All Off" task that turns off all of my remotely controllable lights. Saves me delving into the webui
EDITED: 25 Feb 2016 19:37 by ANT_THOMAS
From: koswix25 Feb 2016 23:54
To: ANT_THOMAS 16 of 43
I looked for tasker in play store and there's lots of apps with same name. Which one is the real one? :/
From: ANT_THOMAS25 Feb 2016 23:58
To: koswix 17 of 43
From: Chris (CHRISSS)26 Feb 2016 00:47
To: ANT_THOMAS 18 of 43
It doesn't seem to be working. I think it's because I have a password on the site. In Chrome I can add it to the URL but the HTTP get in Tasker doesn't seem to register it.
From: Chris (CHRISSS)26 Feb 2016 00:48
To: ANT_THOMAS 19 of 43
Handy. How many wireless devices do you have? And is your new relay just triggered straight from the Pi?
From: Chris (CHRISSS)26 Feb 2016 01:15
To: ALL20 of 43
Slightly changed my task and it seems to be working.

Turn WiFi on
Wait 30 seconds
Wake device
Wait 3 seconds
Call 150
Wait 3 seconds
End call
Wait 3 seconds
Browse to URL and turn heating on for 90 minutes

Hopefully it will work in the morning and we'll have a nice warm house.
From: ANT_THOMAS26 Feb 2016 07:43
To: Chris (CHRISSS) 21 of 43
It should work with passwords. Let me just screen shot my config because you really don't need to do all this waking and screen on stuff.
From: ANT_THOMAS26 Feb 2016 07:47
To: Chris (CHRISSS) 22 of 43
Screenshot wouldn't really show it.

In the server: port section you want it to be this format. No http etc

user:pass@address/location/index.php?status=alloff

Set timeout to 1
EDITED: 26 Feb 2016 07:47 by ANT_THOMAS
From: ANT_THOMAS26 Feb 2016 08:27
To: Chris (CHRISSS) 23 of 43
Yeah triggered by the Pi with a 433 MHz signal.

Controllable lights:
1 lightwave rf dimming switch in the bedroom
1 dimmable led strip in the bedroom behind the bed
1 bedside lamp on a remote socket
1 living room lamp on a remote socket
1 led strip behind the TV on a remote socket

I've got other things on remote sockets too and some spares in case I want to add more.
From: Chris (CHRISSS)26 Feb 2016 08:37
To: ANT_THOMAS 24 of 43
Heating didn't come on again this morning. Not sure why :S

Just tried HTTP Get again and not working. I've copied the URL that works in Chrome and it does nothing. Could it be the two colons in the URL?

user@pass:blah.ddns.net:port/boiler/index.html?param=heatingon
From: ANT_THOMAS26 Feb 2016 08:56
To: Chris (CHRISSS) 25 of 43
It's user:pass@address not user@pass

Or the other option I've noticed I use is

user:pass@address in the server:port section

/folder/page.html?whatever=blah in the path section

Try that