Simple cron in rules files for Openhab
In this post i explain how to schedule task from rules file using cron.
Rules are triggered based on the what you specify in the “when” part.
It can either trigger by update of item or in specific time. For time scheduling is used Unix-like job scheduler called cron.
Home automation solution based on open-source software and own solutions. DIY home automation.
Why would you want “Do It Yourself” approach.
– Security (I do not trust devices connecting across internet and storing data on 3rd party cloud solutions)
– Absolute control (You can set up whatever your imagination can produce)
I will be adding new blog posts as i manage to set up new things in my environment.
With my set up i can either use any web browser, Android Openhab app or Google Home to control my environment.
For example i can say “Hey Google, turn on Movie Time” . This will trigger:
– Set Projector screen down
– Turn On Projector
– Set AV receiver ON and to specific preset with specific volume and sound settings.
– Change AV receiver Input to Computer.
Architecture overview of my Home Automation:
Openhab – open source automation software for your DIY home automation openhabian – debian with openhab integrated WinThing – Program to control Windows PC through mqtt and openhab
MQTT broker (Mosquitto) – lightweight messaging protocol for sending messages between computers AutoIT – scripting language to control Windows OS with ease EventGhost – automation tool for Windows. Use for IR for example.
I had installed from house developer the button controls for external venetian blinds from company named legrand.
Failed to find any usefull documentation on internet regarding this specific button control.
I contacted the fibaro support if they can help me to connect it. They were very helpfull and could find documentation on neighbour country website for my type of switch. Read Full Post…
To control remote computer from openhab we need following software: MQTT broker (my choise is Mosquitto) WinThing
Openhab addons – MQTT binding and MQTT translation
optional – openhab cloud connector to use this with voice control as Google Home.
This tutorial will describe how to build the sensor and how to connect it to Openhab.
You will need to have Mysensors gateway already installed. For this check my tutorial on how to build Mysensors gateway Read Full Post…
Tutorial on how to make the smart plug from d-link dsp-w215 controllable from other than the official dlink application. In this case Openhab but should be possible to integrate it in any other application. Following tutorial is for linux. But with slight modification should be possible to use on windows as well (NODEJS is multiplatform).