Author Topic: [PLUGIN] Smarter iKettle | Release 24 Feb 2015 | 100% - UI5 | UI7  (Read 6358 times)

Offline hax0rmort

  • Full Member
  • ***
  • Posts: 106
  • Karma: +9/-5
Re: [PLUGIN] Smarter iKettle | Release 24 Feb 2015 | 100% - UI5 | UI7
« Reply #30 on: July 21, 2016, 10:47:46 am »
konrad, 

greetings.  are you by chance a ios jailbreak dev also?   name is very familiar.

just pursing the forum.   Catching up.    Just read your thread and wanted to say thank you for taking the time to create the plugin.  Seems like it was something that you set your mind to and accomplished and I'm sure those who own these devices are pretty happy about it, lol.      Nothing more, just wanted to say thanks to people like you who see the need for something either for themselves or public use,  and fill the gap.    Just what you did here.   Good job.    Hope you find time to update your app for v2 people if they're nice enough. ;)

Offline konradwalsh

  • Hero Member
  • *****
  • Posts: 564
  • Karma: +19/-6
Re: [PLUGIN] Smarter iKettle | Release 24 Feb 2015 | 100% - UI5 | UI7
« Reply #31 on: July 21, 2016, 10:53:09 am »
You're very welcome

======
v2 Status
======


So far, I haven't been able to get the plugin to be reliable enough to release. V2 uses methods I am not very clear on and havent had time to figure out

Offline lfairbank

  • Newbie
  • *
  • Posts: 6
  • Karma: +0/-0
Re: [PLUGIN] Smarter iKettle | Release 24 Feb 2015 | 100% - UI5 | UI7
« Reply #32 on: July 26, 2016, 09:23:26 pm »
Hi,
It looks like these guys have figured it out.
Might just be able to grab the commands from this;

https://github.com/athombv/am.smarter/tree/master/node_modules/ikettle.js

this one too;

https://github.com/lloydwatkin/ikettle.js



Offline lfairbank

  • Newbie
  • *
  • Posts: 6
  • Karma: +0/-0
Re: [PLUGIN] Smarter iKettle | Release 24 Feb 2015 | 100% - UI5 | UI7
« Reply #34 on: July 27, 2016, 06:59:08 pm »
I played with this one last night

https://github.com/ian-kent/ikettle2/tree/master/go/cmd/ikettle2

was able (with some minor fixes) to compile an exe that works as a shell for the device and will respond to commands.
So this actually works but is manual

Offline konradwalsh

  • Hero Member
  • *****
  • Posts: 564
  • Karma: +19/-6
Re: [PLUGIN] Smarter iKettle | Release 24 Feb 2015 | 100% - UI5 | UI7
« Reply #35 on: July 28, 2016, 05:26:35 am »
Yes..

I have a working PLugin that does that.. but its very unreliable. I have also compiled that one and the Android one.. The android one is quite reliable but I cant see whats making the difference.

If you take you r compiled on and run for a couple of hours, you might see what I mean... I stops responding to the same commands

I think its an issue with the Kettle Firmware on board

Offline lfairbank

  • Newbie
  • *
  • Posts: 6
  • Karma: +0/-0
Re: [PLUGIN] Smarter iKettle | Release 24 Feb 2015 | 100% - UI5 | UI7
« Reply #36 on: July 28, 2016, 08:30:49 am »
I installed eventghost on my server and can now trigger the exe with a web get.
This is awesome as the HA bridge can do this.
The result is; "alexa, turn the kettle on" and a hot cup of tea.

Offline konradwalsh

  • Hero Member
  • *****
  • Posts: 564
  • Karma: +19/-6
Re: [PLUGIN] Smarter iKettle | Release 24 Feb 2015 | 100% - UI5 | UI7
« Reply #37 on: July 28, 2016, 10:30:42 am »
I installed eventghost on my server and can now trigger the exe with a web get.
This is awesome as the HA bridge can do this.
The result is; "alexa, turn the kettle on" and a hot cup of tea.

COOOL!







can you send me your go file that you amended the bugs in?
"main.go"
I might test that one for reliability

Offline lfairbank

  • Newbie
  • *
  • Posts: 6
  • Karma: +0/-0
Re: [PLUGIN] Smarter iKettle | Release 24 Feb 2015 | 100% - UI5 | UI7
« Reply #38 on: July 29, 2016, 12:26:22 am »
here you go!

I renamed to txt do it would attach

Offline konradwalsh

  • Hero Member
  • *****
  • Posts: 564
  • Karma: +19/-6
Re: [PLUGIN] Smarter iKettle | Release 24 Feb 2015 | 100% - UI5 | UI7
« Reply #39 on: July 29, 2016, 05:17:43 am »
Thank you.. Ill run that for a while and see how stable it is

Offline lfairbank

  • Newbie
  • *
  • Posts: 6
  • Karma: +0/-0
Re: [PLUGIN] Smarter iKettle | Release 24 Feb 2015 | 100% - UI5 | UI7
« Reply #40 on: October 13, 2016, 12:34:26 am »
I am running the command line version of this

https://github.com/Tristan79/iBrew

for both the kettle and coffee machine and it is rock solid

Offline m.zukowski

  • Newbie
  • *
  • Posts: 5
  • Karma: +0/-0
Re: [PLUGIN] Smarter iKettle | Release 24 Feb 2015 | 100% - UI5 | UI7
« Reply #41 on: December 27, 2016, 05:29:14 pm »
Hi all,

I'm new to vera as I only have it for two days. I'm able to switch the Ikettle 2.0 with this luup code:

local hex = {
  "21", "7e",
}
local binary = "";
for i, v in ipairs(hex) do
  binary = binary .. string.char(tonumber(v, 16))
end
local socket = require("socket")
tcp = assert(socket.connect("xxx.xxx.xxx.xxx", 2081))
tcp:send(binary .. "\r\n")
luup.sleep(100)
tcp:close()
return true

(change ip address as needed)

But I don't know anything about lua coding, any help would be much appreciated :D
« Last Edit: December 27, 2016, 06:23:32 pm by m.zukowski »

Offline newpond

  • Newbie
  • *
  • Posts: 3
  • Karma: +0/-0
Re: [PLUGIN] Smarter iKettle | Release 24 Feb 2015 | 100% - UI5 | UI7
« Reply #42 on: December 30, 2016, 06:34:42 pm »
Hi m.zukowski !

Are you able to tell me how you actually added the kettle as a device in vera?
I have tried using the old app in the app store but it just says at the top of my vera dashboard "Please specify your iKettle IP" which I already have.

I am not sure whether to use this app or whether your method involved adding it manually somehow (which I also tried to do via the devapp section but it just seemed to create some xml file and not an actual device). I did how ever paste your code into the test luup section (with my kettles IP) and it successfully turned it one!!

So am part of the way I guess.

I am a newbie like you at this but any help would be greatly appreciated!!

thanks
Jon

Offline m.zukowski

  • Newbie
  • *
  • Posts: 5
  • Karma: +0/-0
Re: [PLUGIN] Smarter iKettle | Release 24 Feb 2015 | 100% - UI5 | UI7
« Reply #43 on: December 30, 2016, 07:10:37 pm »
Hi, Jon.

I've added the old ikettle app for 1.0 and than started playing with the .xml files. At this point I'm able to to switch Ikettle 2.0 on/off. Please find the .xml file in the attachment. All you have to do is specify the ip address and that's it. For voice control I'm using imperihome app on android. After assigning virtual switch, I can control Ikettle 2.0 with voice using commands "switch on/off Kettle" (named the vswitch kettle). I've assigned scenes to vSwitch To switch Kettle between the states. For now that's it, but I will keep working on the project so when google home will arrive in UK I want to be able to ask kettle about the water level and perhaps pre set the temp with voice. As I  mentioned I'm new to lua coding therefore it might take some time :). I'm only using the original app and changing some code to what I think might work :) (on/off works  ;D ) The owner of the app should take most of the credit as it is a lot of coding and I only added a couple of lines... I hope he is not offended by it.

BTW. I'm pretty sure that the original ikettle won't boil if anyone will chane the .xml file as the commands are different.

BTW2. The original app was using port 2000 to connect to ikettle, I'kettle 2.0 is using port 2081 to connect therefore you would not be able to send anything to it
« Last Edit: December 30, 2016, 07:14:21 pm by m.zukowski »

Offline newpond

  • Newbie
  • *
  • Posts: 3
  • Karma: +0/-0
Re: [PLUGIN] Smarter iKettle | Release 24 Feb 2015 | 100% - UI5 | UI7
« Reply #44 on: January 01, 2017, 10:02:52 am »
Hi m.zukowski,
Thank you so much!! it worked a treat, I really appreciate the help.
Out of interest do you know how easy it would be to remove all the other buttons such as "warm" "5 mins" etc? I am using it with veramate but guessing the code would be the same for most the apps.

cheers
Jon