Is there anyone who can whip up a component for the Smarter Coffee and iKettle?
Full focus on Smarter Coffee ofcourse (who needs a cup of boiling water in the morning.)
I am still working on the web interface (e.t.a. december, if anyone wants to help :-).
But the json rest api and the command line is are done and fully working.
Also almost the whole protocol description is mapped out…
If you figure out how to bridge it, please post it in the issues, i will update the readme
Already added homekit support through homebridge
@Tristan79, will you create a HASS component at some point? Was looking into buying the ikettle but would only get it if I can add it to my HASS. Anyway, thanks for all that you’ve done already! Checked out the github repo and it looks awesome so far
This looks awesome! A more robust component would be neat, not sure if we have anything even close to this currently.
Would need a temperate setting in addition what was suggested by @dennisaion. for those of us who want a cup of (slightly less than) boiling water in the morning.
Could be a bit till I investigate further, start of ski season has not been kind to the budget.
Then for the two scripts:
ibrewcontrol.sh:
#!/bin/bash
COMMAND=$1
ibrew $COMMAND <your Kettle IP>
ibrewstatus.sh:
#!/bin/bash
CMD=`ibrew shortstatus <your kettle IP> |grep ready`
if [ -z "$CMD" ];then
exit 0
else
exit 1
fi
I also set a notifier to let me know when it boils (from the configuration.yaml):
automation:
- alias: ‘The Kettle has boiled’
trigger:
platform: state
entity_id: switch.my_kettle
to: ‘off’
action:
service: notify.notify
data:
message: ‘Kettle has Boiled’
All works great!!!
I’ll play around with the JSON interface this weekend. Thanks again Tristan for a lot of work!
Any chance you can point out where im going wrong.
I have cloned the repository and followed the install on pi steps, and setup the switch but when i toggle the button nothing happens.
Im also unable to start the webserver, i get the following error: ERROR - Web Server: Couldn’t open socket on port :2080 and various other messages when trying to run any of the commands via a terminal window
Any help would be greatly appreciated.
Here is the output i get when trying to run the status command:
pi@HomeAssistant:~ $ ibrew 192.168.0.205:2000 status
Starting please wait...
2017-01-06 23:06:38,501 - DEBUG - Traceback (most recent call last):
File "/home/pi/iBrew/source/smarter/SmarterInterface.py", line 2414, in connect
self.__socket.connect((self.host, self.port))
File "/usr/lib/python2.7/socket.py", line 224, in meth
return getattr(self._sock,name)(*args)
timeout: timed out
2017-01-06 23:06:38,519 - DEBUG - timed out
2017-01-06 23:06:38,524 - ERROR - [192.168.4.1] Could not connect to 192.168.4.1:2081
2017-01-06 23:06:38,528 - DEBUG -
2017-01-06 23:06:38,531 - INFO - iBrew: Could not connect to [192.168.4.1]
You mixed up the order Are you trying to connect to the original iKettle? Seeing you want to use port 2000 then try:
./ibrew legacy status 192.168.0.205
The original ikettle webserver support is none existing at the moment. I have to find a method to detect it (and write a passthrough but that is the easy part)… but I do not have an iKettle to play with… so I have no way of knowing how to do that. I will slowly add stuff with guesswork and hope someone corrects me …
i was wondering if you where able to give me hand, still very new to Python, Bash and Home assistant
I have manged to get the switch to work in my config, and turning the kettle on via the interface is working fine.
But my issue is the switch doesn’t stay active, so i’m unable to stop the boiling if needed, i’m aware that this means the command_state is not evaluating to 0 but im not sure how to fix it…
When running the status command ibrew legacy status 192.168.0.205 after triggering the start command, i get iBrew: Legacy iKettle: Heating water 100 C returned.
I have attempted to amend the ibrewstatus.sh bash scrip posted both, above and on the github page https://github.com/Tristan79/iBrew#home-assistant but cant seems to get the status to work.
In both examples i changed the ready/busy grep filter to Heating but still it fails to stay Active.
Is this still working for any of your guys? I have attempted but doesn’t seam to work. This is my first attempt including a component using scripts
Im running both HASS and iBrew in docker containers IBrew can control the kettle/coffee machine but I’m unable to control through HASS using the instructions from iBrew below any ideas?