Page 1 of 1

Switch hacked toon ifttt

Posted: Wednesday 06 March 2019 21:39
by peterdr
Hello,
I am usung a hacked toon in Domoticz.
Everything is working.
Now i purchased a goolge home mini and through ifttt i can use it my lights in domoticz with the google home mini.
No i want to use the iftt command to switch between the comfort ,sleep ,away and so on but i don't know how to use the url.
I cannot find on internet the correct url.
Can somebody help me?

Re: Switch hacked toon ifttt

Posted: Friday 08 March 2019 11:16
by peterdr
Hmm niemand die daar de juiste instelling voor weet.
Een gewone switch schakeld icm goole assistant prima.
De comfort en sleep enzo dat word ook via een switch gestuurd.
Dit moet toch met ifttt ook aangestuurd moeten kunnen worden.
Ik vind wel wat over de toon maar dat is allemaal gebaseerd op het abonnement bij eneco.
Dat werkt dus bij mij niet.
De toon bedien ik dus wel gewoon via domoticz.

Re: Switch hacked toon ifttt

Posted: Friday 08 March 2019 11:22
by peterdr
Hmm no one knows the right settings for that.
An ordinary switch in combination with a goole assistant works fine.
The comfort and sleep and such, is also sent via a switch.
This should be able to be controlled with ifttt.
I find something about the toon but that is all based on the subscription at eneco.
That does not work for me.
So I just operate the toon through domoticz.
The lights i have a url like this
http://login:passw:portnr/json.htm?type=command&param=switchlight&idx=X&switchcmd=off

This works for the light.
So i thought there must be a command for the toon to.

Re: Switch hacked toon ifttt

Posted: Friday 08 March 2019 12:45
by hoeby
I couldn't help you with an exact url.
This is because I don't know how you programmed your 'comfort, sleep and such'
Maybe you can make a printscreen from your device, this could help to find the url.

But your switch ON/OFF is a json command. Look on this link, a lot of json commands. For sure, yours is in there (with little changing of it)
https://www.domoticz.com/wiki/Domoticz_ ... d_switches

Re: Switch hacked toon ifttt

Posted: Friday 08 March 2019 19:31
by hoeby
http://login:passw@ip:portnr/json.htm?type=command&param=switchlight&idx=IDX&switchcmd=Set%20Level&level=LEVEL

maybe this can work.
what do you need to change.
- login --> your domoticz login
- passw --> your domoticz password
- ip --> your domoticz ip address
- portnr --> your domoticz port number
- IDX --> your idx device number
- LEVEL --> to switch selector number

Re: Switch hacked toon ifttt

Posted: Tuesday 19 March 2019 20:41
by peterdr
thank you.
Normal it should be working but somehow it doen't.
If i logon into domoticz then through the webbrowser this command works.
I have to set level to 20 for sleep and 30 for comfort.
This is working.
The line is almost identical with the light command so i think this should be working.
Strange.

Re: Switch hacked toon ifttt

Posted: Wednesday 20 March 2019 19:36
by peterdr
Ok,
Suddenly it is working.
I used the same rule as yesterday but it is working with this now.
Thank you. I am very happy.