Smarter Coffee and iBrew (includes DTH links)

@Claudio_Roselli I changed it in the smartapp

@jonbur should be easy enough to convert to the coffee machine, the problem I came across was that the smartapp needs a unique mac address. I dont know how to add a second (or spoofed?) network interface to the pi…

You are quite right, SmartThings uses the MAC address that the source IP resolves to in order to work out which DH to route asynchronous messages to. Therefore, if you have two devices using the same architecture (i.e. two kettles or a kettle and a coffee machine proxied via iBrew) they need to appear to SmartThings to come from separate IP/MAC addresses.

This can probably be done using macvlans (https://sreeninet.wordpress.com/2016/05/29/macvlan-and-ipvlan/) - I’ve not done this on raspbian, but have previously on other linux distros.

Potentially need to run multiple copies of iBrew and bind to the different interfaces as well

Apologies, no time to look at this any further. Happy hunting!

Hi, what controls do you have available for the smarter coffee? I would be interested in on/off, number of cups and possibly passing it on to Alexa. How far did you get with the device handler? I’m interested in the coffee machine, I have already set up with iKettle and I’m pleased with it

Using Smarter Coffee

I’m currently successfully (as I see it) iBrew on a Pi and I get a successfull connection to my coffee maker. I can control it from console and everything.

But when I try to access the web interface, the webserver won’t respond.

I see that the service is up on the port 2080 in netstat, and it states in the console that it is up and running. But when i try to access the website, nothing happens. The web browser just keeps waiting and waiting and waiting.

I’ve verified that my computer can access the port 2080 on the Pi (and there is no FW).

I even can’t access the website locally on the pi through SSH with console browsers like Links. Same thing happens there as a normal browser on a normal computer.

I’ve tried locally both hostname, localhost and 127.0.0.1. On the computer, I’ve tried both IP and hostname.

What can be wrong? No error messages found.

Do anyone know if there exists a device handler for the Smarter Coffee 2.0 for smartthings?

Did you get this working on the 2nd generation coffee machine ?

Sorry, I’m using the Gen. 1.

Just a reminder that if you have the 3rd generation Smarter brand kettle or 2nd generation coffeemaker, they now have an IFTTT channel and you can get indirect integration with SmartThings that way. :sunglasses:

Thanks!

I saw that ibrew appeared to let you turn the hot plate on / off. The EU version of the smarter coffee maker only keeps the hot plate on for 40mins vs the US version of 2 hours - so I was hoping to hack something together to extend the time the hot plate is on for :innocent:

Hi,

Did anyone get Smarter Coffee working with Smartthings? I’m wondering if the device handler for the iKettle can be modified to request strength/cups/on/off/water level?

Thanks Experts :sunglasses:

I would like to know this also

Thanks

Maybe if the coffee machine device handler acted like a dimmable light you could choose number of cups (brightness) and choose coarseness (colour)? Or the other way around? Just an idea, it’s been a long time since I’ve tinkered with smart apps so it might be a job for someone fresher

The start, stop and status commands look like they will work for both iKettle and smarter coffee, so I should be able to just turn on and off the coffee machine.

Maybe I could use ibrew on the Mac and add applescript commands for turn on/off grinder and set number of cups so I don’t break this wonderful handler?

Have you checked the IFTTT service lately? They have added a number of coffee – specific fields, and it may be all that you need. :sunglasses:

Does anyone have this working with gen1 coffee machine ? my Ibrew server works and I’ve cloned Jonbur’s repo which (I believe) has the extra bits to allow the DTH to talk to the iBrew server

When I toggle the coffee machine device power in ST app (new one) I can see in iBrew logs incoming requests from the ST hub however, the IDE log gives me :

unknown response: [sensors:[hotplate:false, waterlevel:2, grinder:false, heater:false], status:[timerevent:false, carafe:true, cups:0, enoughwater:1, working:false, ready:true], settings:[carafe:required, default:[hotplate:40, cups:2, source:beans, strength:medium], current:[hotplate:40, cups:2, source:beans, strength:medium], mode:carafe], appliance:[firmware:[certified:iBrew certified firmware, version:22], model:Smarter Coffee, network:[connection:[port:2081, directmode:false, host:192.168.0.29, relay:false, connected:true], relay:[port:2081, active:false, bind:]], mode:normal]]

Under a different Smartapp. I think this might be due to the mac routing mentioned but I’ve set the ibrew server mac as B827EBD2E589 which I believe is the correct syntax…

Thanks

Answers self…

The Hue B Smart was absorbing the incoming response. I ended up removing that smartapp. The MAC syntax is correct.

I have an new device handler for the Smarter Gen1 coffee machine to handle switching on and monitoring the water level (Currently shown on a thermometer til I figure out something better!) It’s based heavily on Jonbur’s DTH (cheers Jon!) but doesn’t require his clone of iBrew, it works with Tristan’s original code (Mostly because I couldn’t figure out how to write the callbacks for the coffee machine :joy:

DTH is here https://github.com/brewston/iBrew/blob/master/ibrew.src if anyone reading this wants it

1 Like