Version: 4.10252
Platform: Raspi
Plugin/Hardware: RFXCom
I have been successfully using IFTTT to respond to HTTP commands from Domoticz and also to generate Webhooks from IFTTT to activate devices in Domoticz however, I have discovered that if the Domoticz device has an IDX number higher or equal to 1365 then no action is taken by Domoticz and the log records an "Unauthorized switch command". Has anyone else come across this limitation? Is it a design flaw? Is it a designed limitation?
I would be grateful for any insight anyone can provide.
IFTTT interface with Domoticz Topic is solved
Moderators: leecollings, remb0
-
- Posts: 7
- Joined: Sunday 24 May 2015 16:45
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
IFTTT interface with Domoticz
Raspi, RFXCom, Harmony Hub, Hive, Sonoff, ESP8266, LWRF, Alcto WS, X10
-
- Posts: 7
- Joined: Sunday 24 May 2015 16:45
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: IFTTT interface with Domoticz
I received no replies to this post. Have I posted in the wrong place or failed to observe some protocol. My apologies if that is the case, perhaps someone can offer some guidance. However, the problem identified still exists and is causing me some problems. I notice the limit does seem to have increased as it is now at 1742 an IDX of 1741 works just fine but anything higher gets the error message. Another solution would be to renumber the "switches" in Domoticz database. Is there anyone that can help me with this please?
Raspi, RFXCom, Harmony Hub, Hive, Sonoff, ESP8266, LWRF, Alcto WS, X10
- waaren
- Posts: 6028
- Joined: Tuesday 03 January 2017 14:18
- Target OS: Linux
- Domoticz version: Beta
- Location: Netherlands
- Contact:
Re: IFTTT interface with Domoticz
Just tested this on build domoticz build 12130 with Alexa as "this" and webhook as "that" with a testdevice with idx 3085 without a problem.Craigarran wrote: ↑Monday 08 June 2020 17:41 I received no replies to this post. Have I posted in the wrong place or failed to observe some protocol. My apologies if that is the case, perhaps someone can offer some guidance. However, the problem identified still exists and is causing me some problems. I notice the limit does seem to have increased as it is now at 1742 an IDX of 1741 works just fine but anything higher gets the error message. Another solution would be to renumber the "switches" in Domoticz database. Is there anyone that can help me with this please?
webhook
Code: Select all
https://mydomainName:443/json.htm?username=xxxxxxxxx&password=xxxxxxxxx/type=command¶m=switchlight&idx=3085&switchcmd=On
Code: Select all
2020-06-08 18:19:51.502 Status: User: IFTTTxx initiated a switch command (3085/iftttSwitch/On)
2020-06-08 18:19:51.509 (Virtual) Light/Switch (iftttSwitch)
2020-06-08 18:19:51.519 Status: Incoming connection from: 3.86.114.107
Debian buster, bullseye on RPI-4, Intel NUC.
dz Beta, Z-Wave, RFLink, RFXtrx433e, P1, Youless, Hue, Yeelight, Xiaomi, MQTT
==>> dzVents wiki
dz Beta, Z-Wave, RFLink, RFXtrx433e, P1, Youless, Hue, Yeelight, Xiaomi, MQTT
==>> dzVents wiki
-
- Posts: 7
- Joined: Sunday 24 May 2015 16:45
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: IFTTT interface with Domoticz
Thanks for the reply Warren. This is strange. Below you can see two webhooks using IDX 1742 and then 1741 with the log messages. incidentally , if I use either in a browser they will work.
webhook:
http://user:password@domainname:8080/js ... tchcmd=Set Level&level= {{NumberField}}
message in log:
2020-06-08 14:38:14.299 Error: User: IFTTT initiated a Unauthorized switch command!
webhook:
http://user:password@domainname:8080/js ... tchcmd=Set Level&level= {{NumberField}}
message in log:
2020-06-08 17:41:00.808 Status: User: xxxx initiated a switch command (1741/Lounge Video/Set Level)
webhook:
http://user:password@domainname:8080/js ... tchcmd=Set Level&level= {{NumberField}}
message in log:
2020-06-08 14:38:14.299 Error: User: IFTTT initiated a Unauthorized switch command!
webhook:
http://user:password@domainname:8080/js ... tchcmd=Set Level&level= {{NumberField}}
message in log:
2020-06-08 17:41:00.808 Status: User: xxxx initiated a switch command (1741/Lounge Video/Set Level)
Raspi, RFXCom, Harmony Hub, Hive, Sonoff, ESP8266, LWRF, Alcto WS, X10
- waaren
- Posts: 6028
- Joined: Tuesday 03 January 2017 14:18
- Target OS: Linux
- Domoticz version: Beta
- Location: Netherlands
- Contact:
Re: IFTTT interface with Domoticz
Don't know if it's related but I need to replace a space with %20 in the webhook to get it to work.Craigarran wrote: ↑Monday 08 June 2020 18:46 message in log:
2020-06-08 14:38:14.299 Error: User: IFTTT initiated a Unauthorized switch command!
Code: Select all
http://user:password@domainname:8080/json.htm?type=command¶m=switchlight&idx=1742&switchcmd=Set%20Level&level=25
Anyway, I would first try to just switch on/off and see if that works
Debian buster, bullseye on RPI-4, Intel NUC.
dz Beta, Z-Wave, RFLink, RFXtrx433e, P1, Youless, Hue, Yeelight, Xiaomi, MQTT
==>> dzVents wiki
dz Beta, Z-Wave, RFLink, RFXtrx433e, P1, Youless, Hue, Yeelight, Xiaomi, MQTT
==>> dzVents wiki
-
- Posts: 7
- Joined: Sunday 24 May 2015 16:45
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: IFTTT interface with Domoticz
Have tried the %20 substitute for space and also simplifying to On/Off, no change. I am running the latest Stable release 2020.2(build12075). Will try latest Beta.
Raspi, RFXCom, Harmony Hub, Hive, Sonoff, ESP8266, LWRF, Alcto WS, X10
- waaren
- Posts: 6028
- Joined: Tuesday 03 January 2017 14:18
- Target OS: Linux
- Domoticz version: Beta
- Location: Netherlands
- Contact:
Re: IFTTT interface with Domoticz
Other differences are that I use https and my placement of username password in the URLCraigarran wrote: ↑Monday 08 June 2020 19:07 Have tried the %20 substitute for space and also simplifying to On/Off, no change. I am running the latest Stable release 2020.2(build12075). Will try latest Beta.
Debian buster, bullseye on RPI-4, Intel NUC.
dz Beta, Z-Wave, RFLink, RFXtrx433e, P1, Youless, Hue, Yeelight, Xiaomi, MQTT
==>> dzVents wiki
dz Beta, Z-Wave, RFLink, RFXtrx433e, P1, Youless, Hue, Yeelight, Xiaomi, MQTT
==>> dzVents wiki
-
- Posts: 7
- Joined: Sunday 24 May 2015 16:45
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: IFTTT interface with Domoticz
Upgraded to 2020.2(build12130) it seems to be okay although I'm getting error 404 returned when using IDX numbers for dimmer type switches. But all others okay and I get the same from a browser or IFTTT so not the original problem, that seems to be solved. So very many thanks for your help.
Raspi, RFXCom, Harmony Hub, Hive, Sonoff, ESP8266, LWRF, Alcto WS, X10
Who is online
Users browsing this forum: Bing [Bot] and 1 guest