I’ve posted a quick video showing the features that I’m currently using with my openHAB system.
It includes MQTT communication (with arduinos controlling PWM Leds, Fan, Bulb Lights), Voice Commands, Google Assistant Integration (With IFTT) and finally Kodi and Chromecast integration.
I’ve used my own case as a subject of my Electronic Engineering final dissertation. Unfortunately it’s only in portuguese for now, but I’ll improve and translate it soon.
Nice implementation of Google Assistant!
Can you explain how you did this? I don’t have any voice commands configured, but that doesn’t look so difficult. How did you connect to IFTTT?
I did that with https://myopenhab.org/.
All you have to do is make sure that the VoiceCommand item is available to your openHAB Cloud connection (in this case it should be with myopenhab.org), then you will need to connect your IFTT account with your myopenhab.org and Google account. After that you can create an IFTT Applet for every time a specific command is given to your Google Assistant, it should update the VoiceCommand Item of your openHAB.
Hi, Ian! My fan already had that feature, on the original wall panel there was a switch to change from clockwise to counter-clockwise. I’ve just used a relay where the switch was.
The fan itself has 3 wires, one is the neutral an one of the other two should be connected to the phase. Each one of these makes it spin one way or another.
@lucianopeixoto It is working, and very well! I made a quick demo video using the new action…
@wars, what is your objection to using myopenhab? It’s well supported, secure, and reliable. By “on prem” do you mean on the local network only? I thought Google Assistant needed a connection to the internet to work (I know Google Home does), which means you’re relying on the cloud, anyway…
Nice, @bartus! Nice system you have. I’ve been trying this integration today, and everything is working great. Now the IFTTT working around is no longer necessary at all, I had already started making the tutorial I’ve mentioned earlier but stopped as soon as I saw that new topic!
I have my scenes as numbers, but after your video I’ll create some switches like I believe you did. I’ve liked the idea of saying “Turn sleep mode on”.
Thank you @lucianopeixoto! I also made a quick how-to post/video recently, where I show the integration setup (which you seem to already have working, anyway :
As for the scenes, you’re absolutely right! I have switch items, one for each scene, and a rule assigned to each switch, e.g.:
rule "Lighting Scene Sleep"
when
Item Scene_Sleep received command ON
then
sendCommand(EveningLights, OFF)
sendCommand(FF_Kitchen_Recessed, 0)
sendCommand(Light_FF_Kitchen_Sink, 0)
sendCommand(Light_FF_Kitchen_Island_L, 0)
sendCommand(Light_FF_Kitchen_Island_C, 25)
sendCommand(Light_FF_Kitchen_Island_R, 0)
sendCommand(Light_FF_Living_Sconces, 0)
postUpdate(Scene_Sleep, OFF)
end
which fires only when the switch is toggled ON, handles the turning of individual lights off/dim, and then toggles the scene switch back OFF.