Smarter Coffee and iBrew (includes DTH links)

Yes. I have run long-term testing now and it is stable.

I will liaise with the maintainer and ask him to merge back…

Sorry, just looked at this again, the IP address on these lines and line 220 should be the IP of your kettle, not the iBrew server… As I say, will fix so it is a config option later

Hi

So I have updated the device handler to take the IP of the kettle as a setting - not hard coded

On github: https://github.com/jonbur/SmartThingsPublic/tree/master/devicetypes/jonbur/ibrew.src

Cheers

I’m afraid it’s still not working for me;

2017-02-24 14:43:10,740 - INFO - 200 SUBSCRIBE /api/192.168.1.154/smartthings (192.168.1.179) 1210.72ms
2017-02-24 14:43:10,840 - INFO - 200 GET /api/192.168.1.154/status (192.168.1.179) 22.81ms
2017-02-24 14:43:10,944 - DEBUG - SmartThings Handler
2017-02-24 14:43:10,954 - DEBUG - SmartThings Handler
2017-02-24 14:43:12,959 - DEBUG - SmartThings Handler
2017-02-24 14:43:16,999 - DEBUG - SmartThings Handler
2017-02-24 14:43:17,016 - DEBUG - SmartThings Handler
2017-02-24 14:43:19,018 - DEBUG - SmartThings Handler
2017-02-24 14:43:19,028 - DEBUG - SmartThings Handler
2017-02-24 14:43:21,039 - DEBUG - SmartThings Handler
2017-02-24 14:43:23,058 - DEBUG - SmartThings Handler
2017-02-24 14:43:25,079 - DEBUG - SmartThings Handler
2017-02-24 14:43:25,090 - DEBUG - SmartThings Handler
2017-02-24 14:43:27,098 - DEBUG - SmartThings Handler
2017-02-24 14:43:27,108 - DEBUG - SmartThings Handler
2017-02-24 14:43:29,119 - DEBUG - SmartThings Handler
2017-02-24 14:43:31,220 - DEBUG - SmartThings Handler
2017-02-24 14:43:35,179 - DEBUG - SmartThings Handler
2017-02-24 14:43:35,189 - DEBUG - SmartThings Handler
2017-02-24 14:43:37,198 - DEBUG - SmartThings Handler

App does not appear to get any status updates back?

Edited to say that 192.168.1.179 is the ip of a powerline network extender! what is that ip in brackets in the log file?

Is this project still alive?

console log showing error…

Starting please wait…

SmartThings
Connected to [192.168.1.154] iKettle 2.0 (iBrew certified firmware v19)

Status ready
Temperature 49 ºC
Water sensor 2159 (calibration base 1740)
Default heating Heat water to 100ºC

For list of commands type: help and press enter
Press enter for status update and press ctrl-c to quit

192.168.1.154:iKettle 2.0$./iBrewConsole.py
Traceback (most recent call last):
File “/home/pi/iBrew/smarter/SmarterProtocol.py”, line 963, in code_to_number
return int(code,16)
ValueError: invalid literal for int() with base 16: ‘./’

Could not convert code to number: ./
Could not encode code ‘./ibrewconsole.py’ at position: 1
Traceback (most recent call last):
File “/home/pi/iBrew/smarter/SmarterProtocol.py”, line 1032, in codes_to_message
message += self.code_to_raw(code[i*3]+code[i*3+1])
File “/home/pi/iBrew/smarter/SmarterProtocol.py”, line 958, in code_to_raw
return self.number_to_raw(self.code_to_number(code))
File “/home/pi/iBrew/smarter/SmarterProtocol.py”, line 965, in code_to_number
raise SmarterError(ConvertCodeNumber,"Could not convert code to number: " + code )
SmarterError

iBrew: Sending raw command message failed

Anyone have a copy of the ibrew.exe for windows please. All the links online point to a dead dropbox link :frowning:

The creator has posted a message on the project’s readme.md that he’s not going to be working on the project due to illness.

He’s done a great job, I use iBrew as a bridge to control the Smarter Coffee machine on a Raspberry Pi.

There are bugs in it though, I’ve fixed a couple of issues in my fork and I suspect there will be a few more…

I don’t have a iKettle though so I can’t help you. Time to brush up on your Python skills :wink:

Mmmm I wouldn’t recommend downloading an .exe from dropbox unless you want a virus.

Can I try your fork?

Kettle and Coffee control works - the only problem is that no status updates get back to smartthings.

0/10 for python skills - better start learning ;-(

Hi Freddy.

My branch is here:
https://github.com/petermajor/iBrew

But I’m sure that won’t fix your problem re status updates in SmartThings.

I haven’t got that far yet. I’m still building the smart app / device handler to send commands to iBrew.

What events are you looking for in particular? If you need real events it can be done but it’s harder. But if you just want the on/off status to be updating in fairly reasonable time, you can just implement the Polling / Refresh capabilities in the device handler.

** Just in case it might help somebody **

My problem is fixed. Needed to change the format of the MAC address in the device handler to exclude the ':" and to capitalise - so ‘B827XX30BE3’ in my case

Help!

I’m trying to control my kettle via Alexa/ST through a Pi

I’ve followed the instruction on Tristan79’s Github, installed everything on my Pi (I’ve not used it in ages, so I just blasted a new Raspbian image onto it and started from scratch).
Got as far as sudo make setuplin and I get something about Python dependancies, sits there for a few minutes, and it returns to the command prompt. It doesn’t appear to make anything.

I know this isn’t really a ST issue, but you guys seem to have it working just fine so I was hoping someone could help!

I got it figured out, I hadn’t made bonjour and when I tried that failed with some sort of egg error that a bit of Googling resolved :slight_smile:

However when setting up the DTH, I get a constant error of “Please fill out all the required fields” even though Ip, port, and the two MAC addresses are filled out. It also has a name and an icon, there is nothing else to fill out!

I was getting that in the phone app. But switched to the IDE and was able to edit the fields there successfully. Hope that helps

If you’re feeling rambunctious I built my own IoTea kettle and wrote up the results here.

Here’s what it looks like in action:

I also have an absurdly expensive espresso machine which I’ve automated with the simple expedience of plugging it into a Z-Wave power switch. So long as the machine has a hardware power on/off (as most high-end espresso machines do), then it’s a simple matter of using a normal appliance module. Mine lights up every morning at 5am so the machine is uniformly warmed up by the time I get to using it.

Thanks - I eventually did it a different way, and edited the Smartapp so it didn’t see any fields as required - all optional. I still filled them all in and it works fine.

Sadly my DeLonghi doesn’t turn on when the power is applied - it whirrs a bit, but then the warmup activity only wakes place once you’ve pressed a button.

Freddy, in which part of the code did you change it? Thanks

Does your branch and smartthings device handler work with the Smarter Coffee machine?

It’s not been tested with it, so I’m afraid I don’t know. It will depend on whether the control messages I have hooked are common across Kettle and Coffee Machine (really can’t recall)