Switch hacked toon ifttt

Moderator: leecollings

Post Reply
peterdr
Posts: 26
Joined: Wednesday 28 November 2018 19:58
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Switch hacked toon ifttt

Post 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?
peterdr
Posts: 26
Joined: Wednesday 28 November 2018 19:58
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Switch hacked toon ifttt

Post 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.
peterdr
Posts: 26
Joined: Wednesday 28 November 2018 19:58
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Switch hacked toon ifttt

Post 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.
hoeby
Posts: 531
Joined: Saturday 02 June 2018 11:05
Target OS: Raspberry Pi / ODroid
Domoticz version: V2022.1
Location: Echt, Netherlands
Contact:

Re: Switch hacked toon ifttt

Post 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
Thin-client --> Docker Domoticz main environment
Pi3A+ --> Google home (GAssistPi)
Pi3B+ --> Docker (P1monitor, Domoticz test environment, Ubiquity controller)
hoeby
Posts: 531
Joined: Saturday 02 June 2018 11:05
Target OS: Raspberry Pi / ODroid
Domoticz version: V2022.1
Location: Echt, Netherlands
Contact:

Re: Switch hacked toon ifttt

Post 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
Thin-client --> Docker Domoticz main environment
Pi3A+ --> Google home (GAssistPi)
Pi3B+ --> Docker (P1monitor, Domoticz test environment, Ubiquity controller)
peterdr
Posts: 26
Joined: Wednesday 28 November 2018 19:58
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Switch hacked toon ifttt

Post 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.
peterdr
Posts: 26
Joined: Wednesday 28 November 2018 19:58
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Switch hacked toon ifttt

Post 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.
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest