I recently came across the Kello Smart Alarm Clock and decided to integrate it with my openHAB setup. The clock offers a range of features, including Wi-Fi connectivity and IFTTT integration, which makes it a versatile addition to any smart home ecosystem. Here’s how I set it up and some tips for others looking to do the same!
Playing a Web Radio Station on Kello
One of the most interesting features I explored was using Kello as an internet radio. I followed this tutorial to send commands to the Kello from openHAB. The process involves creating an item in your items.cfg file and setting up a rule to trigger the radio commands.
Setting Up the Item
Add this to your items.cfg:
markdown
Switch item=Kello_Radio label=“Radio” icon=“soundvolume”
Creating the Rule
Add this rule to your rules.cfg:
markdown
rule “Kello Radio”
when
Item Kello_Radio changed
then
if(Kello_Radio.state == ON) {
executeCommandLine(“/home/openhabian/kello radioOn”,10000)
} else {
executeCommandLine(“/home/openhabian/kello radioOff”,10000)
}
end
Kello Shell Script
Create a shell script named kello in your /home/openhabian/ directory:
markdown
#!/bin/bash
if [ $1 == “radioOn” ]
then
printf “\n0p41uri:http://br-br1-obb.cast.addradio.de/br/br1/obb/mp3/128/stream.mp3\r” | nc 192.168.1.88 4444
fi
if [ $1 == “radioOff” ]
then
printf “\n0d41\r” | nc 192.168.1.88 4444
fi
Replace the IP address with your Kello’s IP and the URL with your preferred web radio station. Don’t forget to escape special characters!
IFTTT Integration
For added flexibility, I integrated Kello with IFTTT. This allows me to trigger actions on my openHAB instance when the alarm rings or snoozes. Here’s how I did it:
- Create an IFTTT account and set up a Maker channel.
- Copy the Webhook ID into the Kello app.
- Create an IFTTT applet with events like
alarm_start,alarm_stop, oralarm_soon. - Use the openHAB action to control your lights, adjust settings, or send commands.
Conclusion
Integrating Kello with openHAB has been a fantastic experience. It’s not just an alarm clock; it’s a versatile device that can enhance your smart home setup in countless ways. Whether you’re using it for notifications, playing music, or controlling lights, Kello proves to be a valuable addition. I hope this guide helps others explore its capabilities!
If anyone has tips or alternative setups, I’d love to hear about them in the comments below!