Comments on: Control your TP-Link HS100 smart plug with IFTTT http://itnerd.space/2017/01/22/control-your-tp-link-hs100-smart-plug-with-ifttt/ Blog about Cloud, Automation, Android, Smart things... Thu, 27 Jul 2017 22:01:00 +0000 hourly 1 https://wordpress.org/?v=4.7.5 By: Jon Homer http://itnerd.space/2017/01/22/control-your-tp-link-hs100-smart-plug-with-ifttt/#comment-212 Thu, 20 Jul 2017 15:42:00 +0000 http://itnerd.space/?p=208#comment-212 Home assistant doesn’t support tp-link as far as I can see

]]>
By: MJKienzle http://itnerd.space/2017/01/22/control-your-tp-link-hs100-smart-plug-with-ifttt/#comment-210 Thu, 20 Jul 2017 07:40:00 +0000 http://itnerd.space/?p=208#comment-210 Use the maker channel through HomeAssistant? Works great.

]]>
By: Alexandre Dumont http://itnerd.space/2017/01/22/control-your-tp-link-hs100-smart-plug-with-ifttt/#comment-209 Thu, 20 Jul 2017 07:23:00 +0000 http://itnerd.space/?p=208#comment-209 That’s a totally different approach, this post is about controlling the plug using the cloud service API.

]]>
By: stefien http://itnerd.space/2017/01/22/control-your-tp-link-hs100-smart-plug-with-ifttt/#comment-206 Wed, 19 Jul 2017 21:09:00 +0000 http://itnerd.space/?p=208#comment-206 In the case above, he wasn’t testing in IFTTT, but in jsonlint which appears to have different formatting rules than IFTTT. With IFTTT, you had to have the curly braces on different lines, with jsonlint, you had to bring them together. Different online sites with different ways of interpreting the input. In reality, either one, technically, should be fine. But you work with what you have. 🙂

If he’s going to be testing his code on jsonlint, he’s going to need to adjust his curly brace location there, but then re-adjust once he brings it over to IFTTT

]]>
By: Alexandre Dumont http://itnerd.space/2017/01/22/control-your-tp-link-hs100-smart-plug-with-ifttt/#comment-205 Wed, 19 Jul 2017 21:02:00 +0000 http://itnerd.space/?p=208#comment-205 IFTTT is definitely susceptible to the payload format. How I formatted it, it worked, at least when I took the screen shot you can see in the post. Follow my formatting in case of doubts.

]]>
By: stefien http://itnerd.space/2017/01/22/control-your-tp-link-hs100-smart-plug-with-ifttt/#comment-204 Wed, 19 Jul 2017 19:58:00 +0000 http://itnerd.space/?p=208#comment-204 Hoping either the OP or someone else with more JSON knowledge than me can assist. Got this working smoothly (thanks to the OP as well as some of the tips I saw in the comments. Thank you everyone!)

I’m attempting to tie this into my alarm system so that when my alarm is triggered, IFTTT will flash the lights. As it works now, it will turn the lights ON, but I’m unable to figure out how to string multiple commands, so the connection sends a state ON/state OFF/state ON/state OFF etc.

Any thoughts?

]]>
By: stefien http://itnerd.space/2017/01/22/control-your-tp-link-hs100-smart-plug-with-ifttt/#comment-203 Wed, 19 Jul 2017 19:40:00 +0000 http://itnerd.space/?p=208#comment-203 I had the same issue. The problem ended up being the rows the braces were on. It had to be formatted as below for it to work.

{
“method”: “passthrough”,
“params”: {
“deviceId”: “800676FD5F0A287A6137E090F5DD916D183CXXXX”,
“requestData”: “{“system”:{“set_relay_state”:{“state”:1}}}”
}
}

]]>
By: Adam Parsons http://itnerd.space/2017/01/22/control-your-tp-link-hs100-smart-plug-with-ifttt/#comment-196 Mon, 17 Jul 2017 07:44:00 +0000 http://itnerd.space/?p=208#comment-196 Can anyone advise on adding multiple device ids so I can turn on more than one at a time?

]]>
By: Patrick Griffith http://itnerd.space/2017/01/22/control-your-tp-link-hs100-smart-plug-with-ifttt/#comment-195 Mon, 17 Jul 2017 07:25:00 +0000 http://itnerd.space/?p=208#comment-195 @adumont:disqus thank you so much for the reply. That did it! I saw someones comment about making sure the json was without spaces, but I didn’t think the line breaks would make a difference. Much appreciated.

]]>
By: Alexandre Dumont http://itnerd.space/2017/01/22/control-your-tp-link-hs100-smart-plug-with-ifttt/#comment-194 Mon, 17 Jul 2017 06:15:00 +0000 http://itnerd.space/?p=208#comment-194 I believe that’s because IFTTT notation for ingredients (variables) is like this {{name}}. In your caer IFTTT understands your }} as the end of an ingredient name, and is missing the opening. My advice try to separate every } with a new line to avoid confusion.

]]>