Glad to start writing my smart home story!
And really glad to share it with you Openhab community.
Your feedback and remarks are more than welcome!!!
Since more than 10 months (with less long nights), i moved to my new house. at the first sight, i prefered to pay instead of building a smart home by myself.
Quickly, I have understood that it will be expensive and limited.
it was an interesting journey, i learned a lot and i am really impressed by the professionalism of the community and more important than this : the willing to help, to share knowledge ( one of the best example is the excellent series of article on the Design pattern approach by Rich Koshak).
My first intention was to use broadlink devices which are cheap, good quality and do not need neutral line.
Without openhab just with the RM pro, i have controlled my AC, TV and some TC2 switches.
I have understood the limitations of the broadlink echo system:
- limited UI
- only available on android, no WEB UI
- No persistence. (really problematic for AC)
- no integration without something not from broadlink
- No voice command…
but a cheap and stable solution for IR and RF
To overcome to all the limitations, i came to the conclusion that i need a smart home server like openhab.
i have hesitated between homeassistant and openhab and i finally decided to go to openhab because there was an android application.,
my expected design was to to be able to get this integration
Indeed i am a fan of IFTTT.:). so simple and so strong!
i have started installing openhab on windows, it was not really fun.
i ordered my first raspberry ! i am still impressed by the power of this small thing!
Thanks to the excellent articles and movies of https://www.mksmarthouse.com/, i have got a good understanding and made some progress.
Sorry to be so “windows minded”, but i have installed openhab on debian. it’s always good to have UI.
On the second side, it took me a lot of time to install all the components provided with the openhabian image : MQTT, nodeRed, Taillog framework……
My initial broadlink hardware to integrate with Openhab:
- Broadlink S1.
Integration done thanks to the amazing rednode
- Broadlink SP1
integrated thank to this python service to communicate through mqttt https://github.com/psyciknz/broadlink-mqtt
More details in this post
-
Broadlink TC2
integrated thank to this python service to communicate through mqttt https://github.com/psyciknz/broadlink-mqtt -
Broadlink A1
Integration done thanks to the amazing rednode
-
Broadlink M1
integrated thank to this python service to communicate through mqttt https://github.com/psyciknz/broadlink-mqtt
BTW, This thread https://community.openhab.org/t/broadlink-binding-for-rmx-a1-spx-and-mp-any-interest was promising but the contributor has dissapeared:(
i really like broadlink but the switches are based on RF, the communication is one way only. => no possibility to know the current state.
i have decided to use also a mesh network . Z-wave is more standardized to zigbee and CHris Jackson has made an excellent job and an excellent maintenance.
My Z-wave hardware:
-
Controller Z-Wave Plus Z-Stick GEN5 - Aeon Labs
(i had some issue with the inclusion. i need to plug the stick to my laptop and to use the program Aeon Lab OTA to add/remove a node.) -
NEO Coolcam NAS-DS01Z Smart Home Z-Wave Plus Door Window Sensor Compatible with Z-wave 300 series and 500 series Home Automation
-
NEO Coolcam NAS-PD01Z Smart Home Z-Wave Plus PIR Motion Sensor Compatible with Z-wave 300 series and 500 series Home Automation
i am really satisfied from the neo devices stability but in as you can see for PIR motion sensor, the temperature is not retrieved. -
Fibaro Sensor
Other Things to integrate:
Hardware :
- Chromecast : Simple to integrate with the chromecast binding
- Voice Kit AIY DIY
- Irobot
- Switcher (water boiler)
Services :
- IFTTT
- Google calendar : My home should have a calendar!
- Google assistant : i want to speak with my home!
- Telegram : i want to chat with my home!
- Google sheets : to keep motion or door sensor activity in a google sheets
- tts
IFTTT
Let’s speak about IFTTT, the integration is awesome from IFTTT to openhab.
From openhab to IFTTT, there’s a big delay.
When i want to trigger a IFTTT action from openhab, it’s definitely faster to use the IFTTT webmaker from a rule instead of using in the IF the openhab service.
a webhook call from a rule
var String ifttt_key = "d--*****************************"
var String notification_json
val String currentTime = String::format( "%1$tl:%1$tM%1$tp on %1$tA, %1$tB %1$te, %1$tY", new java.util.Date )
var lastItem = TriggerGlobalScene.previousState().state.toString
var String ifttt_url = "https://maker.ifttt.com/trigger/"+TriggerGlobalScene.state.toString + "/with/key/" + ifttt_key
var String TriggerStripped =TriggerGlobalScene.state.toString
TriggerStripped =TriggerStripped.replace('','_')
notification_json = '{"value1":"' + lastItem + '","value2":"' + TriggerStripped +'","value3":"' + currentTime + '"}'
sendHttpPostRequest(ifttt_url, "application/json", notification_json,8000)
i have exposed 4 items :
- voicecommand_input
- Calendar_input
- Telegram_input
- VoiceToSpeak_input
and a last one which is called “Scene”
All the items inputs trigger the scene Change.
Example: if the scene changes to bye, it will turn off everything.
With this implementation, i can trigger any scenes from Google Assistant, google calendar, and telegram…
- Send /IFTTT bye to a telegram group
- say to the google assistant $lili bye
- Add a meeting called bye
The “VoiceToSpeak_input” : a nice recipe!
Use the google assistant with a magic word and in case the magic word is found, it will update the VoiceToSpeak_input.
if the VoiceToSpeak_input, a rule will “say” the input.
you can speak remotely to your home through google assistant!.
I have still some issues with TTS.
Below you can find the recipe of each use case
Google assistant integration
Google calendar integration
Google sheets integration to Record activity or motion
To summarize: Google assistant integrated => BTW, the AIY DIY voice kit also covered since the same google account is used.
My integration map :
Let’s go over my sitemap:
1 Stable sitemap
a nice weather widget implemented in 2 sec
I love the web frame but it’s only available in web not from the android application
MyCalendar:
The google calendar of the home! another web UI framework
from this google calendar, i schedule irobot, Water boil, Bye scene, Turn on/Turn OFF AC
Map settings:
roles and permissions are missing in openhab
Settings sitemap
For example, the LP switch is the parental lock to turn on TV. if the kids are smart and they are ! they will found it
all the integrations could be disabled from this section.
Pi monitoring thanks to the system info binding
Graph:
Thanks to InfluxDB persistence and Grafana, i have nice monitoring graph
and i have also some sensors graph
i have also a section debugging :
My model is cool but it could not work without internet and the IFTTT dependency is a must but it’s stable. Not sure to know/understand if there’s an IFTTT usage limit.
What i am missing:
- Roles and permissions
- Camera integration Y203
- A simple TTS configuration, i want that my home will speak.
In case that the door is opened more than minutes or if a scenario is triggered.
I didn’t succeed to get the AIY DIY google voice. if someone could guide me, i will appreciate.
i have also ordered a chromecast audio. i didn’t succeed to make speak through bluetooth speaker
- a solution for switch two ways without neutral line.
i will test this model , did someone has some feedbacks?
5 a good solution to learn and send all the IR combinations of an air conditioner… more details here
6 Folks, do you see a point to setup a own openhab cloud instance? will it work with IFTTT?
Thanks for all your help