Loxone and Drayton Wiser

240 views
Skip to first unread message

Harry Phelps

unread,
Jul 8, 2021, 6:56:21 AM7/8/21
to Loxone English
Hello,

Does anyone know if it's possible to control Wiser from Loxone? I don't need granular control but would love to be able to activate away mode via Loxone when the house is empty or the front door is open for example.
I know it has an IFTTT channel and that some chaps working on OpenHAB have discovered some sort of API (https://pypi.org/project/wiserHeatAPIv2/) to use with it.

Jonathan Dixon

unread,
Jul 8, 2021, 7:30:46 AM7/8/21
to Harry Phelps, Loxone English
Disclaimer: I don't have Wiser.

The documentation here makes it look quite simple to integrate:

2/ make an HTTP virtual output that does a POST request to http://IP_ADDR/data/domain/System/RequestOverride with payload "{"type":2,"setPoint":100}" to enable away mode (10ºC min temp in that example), and "{"type":0,"setPoint":0}" to turn it off again,
 include an http header of "Secret: <your secret>"

AIUI in Loxone you can send  the "Secret: <foo>" customer header by putting it in the (oddly named) "HTTP Extension for ON/OFF" fields. (The POST payload obviously goes in "HTTP Post Command for ON/OFF")

HTH





--
You received this message because you are subscribed to the Google Groups "Loxone English" group.
To unsubscribe from this group and stop receiving emails from it, send an email to loxone-englis...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/loxone-english/cfdc6235-9f66-49d6-86f9-18f6a4258a3bn%40googlegroups.com.

Harry Phelps

unread,
Jul 8, 2021, 8:08:35 AM7/8/21
to Loxone English

Hey thanks for the quick reply! I hadn't seen that page when searching. I'm not brilliant at coding so can I try to take this step by step?

I make a virtual output and set the address as http://192.168.xx.xx/data/domain/System/RequestOverride

Then add a virtual output command adding {"type":2,"setPoint":100} or {"type":0,"setPoint":0} to it depending on the command I want to send.

Is that correct? I'm not sure where to add the secret string though.

Harry Phelps

unread,
Jul 8, 2021, 8:11:38 AM7/8/21
to Loxone English
Oh hang on, Ii have just seen your comment about the secret string, story about that. I'll amend the config and test.

Jonathan Dixon

unread,
Jul 8, 2021, 8:14:36 AM7/8/21
to Harry Phelps, Loxone English
On Thu, 8 Jul 2021 at 13:08, 'Harry Phelps' via Loxone English <loxone-...@googlegroups.com> wrote:

Hey thanks for the quick reply! I hadn't seen that page when searching. I'm not brilliant at coding so can I try to take this step by step?

I make a virtual output and set the address as http://192.168.xx.xx/data/domain/System/RequestOverride

Then add a virtual output command adding {"type":2,"setPoint":100} or {"type":0,"setPoint":0} to it depending on the command I want to send.

Is that correct? I'm not sure where to add the secret string though.

The secret goes in an HTTP Header, which appears to be what Loxone calls a "HTTP Extension" hopefully others can confirm (I've never actually used it, but I've done plenty of HTTP coding over the last 3 decades :-)

If you can install curl on your computer, I'd always test it there first before messing around in the Loxone UI.  Example:

curl --header "Secret: INSERT_SECRET_HERE" \
  --request POST \
  --data '{"type":2,"setPoint":100}' \
  http://192.168.xx.xx/data/domain/System/RequestOverride

 

On Thursday, 8 July 2021 at 12:30:46 UTC+1 Joth wrote:
Disclaimer: I don't have Wiser.

The documentation here makes it look quite simple to integrate:

2/ make an HTTP virtual output that does a POST request to http://IP_ADDR/data/domain/System/RequestOverride with payload "{"type":2,"setPoint":100}" to enable away mode (10ºC min temp in that example), and "{"type":0,"setPoint":0}" to turn it off again,
 include an http header of "Secret: <your secret>"

AIUI in Loxone you can send  the "Secret: <foo>" customer header by putting it in the (oddly named) "HTTP Extension for ON/OFF" fields. (The POST payload obviously goes in "HTTP Post Command for ON/OFF")

HTH





On Thu, 8 Jul 2021 at 11:56, 'Harry Phelps' via Loxone English <loxone-...@googlegroups.com> wrote:
Hello,

Does anyone know if it's possible to control Wiser from Loxone? I don't need granular control but would love to be able to activate away mode via Loxone when the house is empty or the front door is open for example.
I know it has an IFTTT channel and that some chaps working on OpenHAB have discovered some sort of API (https://pypi.org/project/wiserHeatAPIv2/) to use with it.

--
You received this message because you are subscribed to the Google Groups "Loxone English" group.
To unsubscribe from this group and stop receiving emails from it, send an email to loxone-englis...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/loxone-english/cfdc6235-9f66-49d6-86f9-18f6a4258a3bn%40googlegroups.com.

--
You received this message because you are subscribed to the Google Groups "Loxone English" group.
To unsubscribe from this group and stop receiving emails from it, send an email to loxone-englis...@googlegroups.com.

Harry Phelps

unread,
Jul 10, 2021, 6:21:40 AM7/10/21
to Loxone English
Apologies for going quiet, w*rk got in the way.

Below are the various ways I have tried to make the VO work in Loxone without any luck.
Not quite sure how to run Curl but I do have a Pi that I can install Node-Red on so am going to look at that and follow the instructions on knightnet to see if I can get it working via that.

Virtual Output

Address                              192.168.xx.xx/data/domain/System/RequestOverride

Close connection after sending   Checked

Separator                                      ;

Virtual Output Command

Command for ON                         

HTTP extensions for ON              "Secret:secretstring"

HTTP Post command for ON      {"type":2,"setPoint":100}

HTTP method for ON                   POST

 


Command for ON                         

HTTP extensions for ON              "Secret: secretstring"

HTTP Post command for ON      {"type":2,"setPoint":100}

HTTP method for ON                   POST

 

 

Command for ON                         {"type":2,"setPoint":100}

HTTP extensions for ON              "Secret: secretstring"

HTTP Post command for ON       

HTTP method for ON                   POST

 


Command for ON                         {"type":2,"setPoint":100}

HTTP extensions for ON              "Secret:secretstring"

HTTP Post command for ON       

HTTP method for ON                   POST

Harry Phelps

unread,
Jul 25, 2021, 3:21:02 PM7/25/21
to Loxone English
So, I managed to get this to work in the end by using webhooks in IFTTT. As I don't need instant actions this is a great workaround. Hugh at Loxone realised that the HTTP method for ON needed to be GET rather than POST. If anyone needs the config/instructions I can post them. I expect it may also be worth trying out Joth's suggestion with a VO but using GET instead.

Jonathan Dixon

unread,
Jul 25, 2021, 4:22:41 PM7/25/21
to Harry Phelps, Loxone English
Hmmm you can't send payload in a GET request (unless it's URL encoded, but this seems very unlikely) so other than the initial secret retrieval (which is indeed via GET) I'm skeptical.

and
it actually seems to use PATCH (not POST or GET). Sorry about that! 

And, not sure of Loxone has any support for issuing PATCH requests?




Harry Phelps

unread,
Jul 26, 2021, 5:40:50 AM7/26/21
to Loxone English
Joth,

At this point I should mention that I can use Crestron's SIMPL Windows and Loxone Config, I'm pretty damn clueless when it comes to JSON, HTML etc. I can follow editing instructions fairly well but never even tried to learn either so I bow to your superior knowledge.
Here is what is working for me using webhooks/Wiser in IFTTT (after setting up the webhook to control Wiser away mode). Obviously it would be better to use a VO and keep everything inside my network, as I said I will experiment with that but will involve me blindly pasting info into different fields so may take some time!
One thing it may be worth mentioning in case anyone is attempting something similar is that the below didn't work when I entered this info into it. I had to make a second one before the miniserver could communicate with IFTTT.

VO
Close connection: checked
Separator: ;

VO Command
Command for ON: /trigger/wiserlaters/with/key/secretstring
HTTP extensions for ON: 
HTTP command for ON:
HTTP method for ON: GET

Harry Phelps

unread,
Jul 26, 2021, 6:01:50 AM7/26/21
to Loxone English
Edit:  One thing it may be worth mentioning in case anyone is attempting something similar is that the below didn't work when I entered this info into the original VO I had made. I had to make a second one before the miniserver could communicate with IFTTT.
Reply all
Reply to author
Forward
0 new messages