<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Openhab2 on ads' corner</title><link>https://andreas.scherbaum.la/tags/openhab2/</link><description>Recent content in Openhab2 on ads' corner</description><generator>Hugo</generator><language>en-us</language><lastBuildDate>Sat, 19 Mar 2022 23:14:00 +0100</lastBuildDate><atom:link href="https://andreas.scherbaum.la/tags/openhab2/index.xml" rel="self" type="application/rss+xml"/><item><title>Does an openHAB Item exist?</title><link>https://andreas.scherbaum.la/post/2022-03-19_does-an-openhab-item-exist/</link><pubDate>Sat, 19 Mar 2022 23:14:00 +0100</pubDate><guid>https://andreas.scherbaum.la/post/2022-03-19_does-an-openhab-item-exist/</guid><description>&lt;p&gt;In a more complex openHAB2 Rule I&amp;rsquo;m writing, I need to find out if a certain Item exist. If I try to access it when it does not exist, the Rule will fail. Not good.&lt;/p&gt;&#10;&lt;p&gt;I could pass in a parameter to the framework which builds the Rule, but that is cumbersome and requires changes on several places.&lt;/p&gt;&#10;&lt;p&gt;Let&amp;rsquo;s see if I can have the Rule figure this out.&lt;/p&gt;</description></item><item><title>openHAB: stop a ChromeCast</title><link>https://andreas.scherbaum.la/post/2021-02-10_openhab-stop-a-chromecast/</link><pubDate>Wed, 10 Feb 2021 20:09:00 +0100</pubDate><guid>https://andreas.scherbaum.la/post/2021-02-10_openhab-stop-a-chromecast/</guid><description>&lt;p&gt;There are a number of &lt;a href="https://andreas.scherbaum.la/tags/chromecast"&gt;ChromeCasts&lt;/a&gt; in our setup. I&amp;rsquo;m adding (physical) switches to turn &lt;a href="https://andreas.scherbaum.la/post/2020-07-05_openhab-turn-display-on-and-off-for-a-video-chromecast/"&gt;displays on and off&lt;/a&gt;, and primarily control the volume. When I turn the display off, I also want the &lt;em&gt;ChromeCast&lt;/em&gt; to &lt;a href="https://andreas.scherbaum.la/post/2020-07-04_openhab-detect-if-a-chromecast-is-currently-used-or-idle/"&gt;stop doing whatever it is doing&lt;/a&gt; right now (stop streaming), and go back to the default application (for video CC).&lt;/p&gt;</description></item><item><title>openHAB: timestamp from last Item update</title><link>https://andreas.scherbaum.la/post/2021-01-28_openhab-timestamp-from-last-item-update/</link><pubDate>Thu, 28 Jan 2021 20:25:00 +0100</pubDate><guid>https://andreas.scherbaum.la/post/2021-01-28_openhab-timestamp-from-last-item-update/</guid><description>&lt;p&gt;If &lt;a href="https://www.openhab.org/"&gt;openHAB&lt;/a&gt; has a &lt;a href="https://www.openhab.org/docs/configuration/persistence.html"&gt;Persistence&lt;/a&gt; service configured, the time of the last Item update (and a &lt;a href="https://www.openhab.org/docs/configuration/persistence.html#persistence-extensions-in-scripts-and-rules"&gt;couple other times&lt;/a&gt;) is available in Rules. This makes it quite handy to check if a certain item hasn&amp;rsquo;t been updated in a long time. As example I have the &lt;a href="https://andreas.scherbaum.la/post/2020-08-15_openhab-and-tankerkoenig-gas-prices-+-telegram-integration-second-iteration/"&gt;Tankerkoenig Binding installed&lt;/a&gt;, and this data is persisted in &lt;a href="https://www.influxdata.com/products/influxdb/"&gt;InfluxDB&lt;/a&gt;. This way I can see historic gas prices in &lt;em&gt;Grafana&lt;/em&gt;.&lt;/p&gt;&#10;&lt;p&gt;When the &lt;em&gt;Telegram&lt;/em&gt; Bot answers the &lt;code&gt;/tanken&lt;/code&gt; question, it appends the timestamp of the last gas prices update.&lt;/p&gt;</description></item><item><title>Online indicator for remote controllable power plugs in openHAB</title><link>https://andreas.scherbaum.la/post/2021-01-09_online-indicator-for-remote-controllable-power-plugs-in-openhab/</link><pubDate>Sat, 09 Jan 2021 23:46:00 +0100</pubDate><guid>https://andreas.scherbaum.la/post/2021-01-09_online-indicator-for-remote-controllable-power-plugs-in-openhab/</guid><description>&lt;p&gt;Recently I installed a number of new power sockets (like &lt;a href="https://www.amazon.de/-/en/switchable-Control-Directly-compatible-Compatible/dp/B074PZLX2P"&gt;this one&lt;/a&gt;). The &lt;a href="https://phoscon.de/en/raspbee2"&gt;Hue bridge&lt;/a&gt; can not only add each switch to a light group, but also reports each plug as a &lt;a href="https://www.openhab.org/docs/configuration/things.html"&gt;Thing&lt;/a&gt; in &lt;a href="https://www.openhab.org/"&gt;openHAB&lt;/a&gt;. There I thought it will be a nice touch if &lt;em&gt;openHAB&lt;/em&gt; actually reports when it sees a device plugged in. The power socket has a LED which turns on when the plug is on. The &lt;em&gt;Hue&lt;/em&gt; bridge reports &lt;code&gt;OFFLINE&lt;/code&gt; and &lt;code&gt;ONLINE&lt;/code&gt;. That&amp;rsquo;s useful.&lt;/p&gt;&#10;&lt;p&gt;The plan is to turn the LED light - and the power plug - on and off for a few second.&lt;/p&gt;</description></item><item><title>openHAB: reset DateTime in rules</title><link>https://andreas.scherbaum.la/post/2021-01-01_openhab-reset-datetime-in-rules/</link><pubDate>Fri, 01 Jan 2021 18:26:00 +0100</pubDate><guid>https://andreas.scherbaum.la/post/2021-01-01_openhab-reset-datetime-in-rules/</guid><description>&lt;p&gt;In one of my &lt;a href="https://www.openhab.org/"&gt;openHAB&lt;/a&gt; rules I&amp;rsquo;m using a timestamp to track when an &lt;a href="https://www.openhab.org/docs/configuration/items.html"&gt;Item&lt;/a&gt; went offline. This is used in my monitoring to let the user (me) know how long the Item is already offline.&lt;/p&gt;&#10;&lt;p&gt;Background: we have a couple &lt;a href="https://www.openhab.org/addons/bindings/chromecast/"&gt;ChromeCasts&lt;/a&gt; in our network. When they are connected to a 5GHz Wi-Fi they are quite unstable and often loose the network connection. Usually the openHAB binding reconnects the device quickly, but it happens that the device stays offline. It might have something to do with the router, but nevertheless I want to know when things go offline.&lt;/p&gt;</description></item><item><title>openHAB: Configuration model '....rules' has errors, therefore ignoring it: no viable alternative at input '...'</title><link>https://andreas.scherbaum.la/post/2020-12-25_openhab-configuration-model-....rules-has-errors-therefore-ignoring-it-no-viable-alternative-at-input-.../</link><pubDate>Fri, 25 Dec 2020 10:50:00 +0100</pubDate><guid>https://andreas.scherbaum.la/post/2020-12-25_openhab-configuration-model-....rules-has-errors-therefore-ignoring-it-no-viable-alternative-at-input-.../</guid><description>&lt;p&gt;The &lt;em&gt;openHAB&lt;/em&gt; rule system is not very helpful by pointing out when it&amp;rsquo;s missing something, or when there is an error to actually point to the problem.&lt;/p&gt;</description></item><item><title>Add a Google Calendar to openHAB</title><link>https://andreas.scherbaum.la/post/2020-10-27_add-a-google-calendar-to-openhab/</link><pubDate>Tue, 27 Oct 2020 22:14:00 +0100</pubDate><guid>https://andreas.scherbaum.la/post/2020-10-27_add-a-google-calendar-to-openhab/</guid><description>&lt;p&gt;&lt;em&gt;openHAB&lt;/em&gt; can integrate &lt;em&gt;Google&lt;/em&gt; Calendars. The functionality is kind of limited, it can only see the current and the next calendar event, but in my case that is enough. More about the use case in another blog post.&lt;/p&gt;</description></item><item><title>openHAB: faster loading of rules files</title><link>https://andreas.scherbaum.la/post/2020-10-24_openhab-faster-loading-of-rules-files/</link><pubDate>Sat, 24 Oct 2020 19:36:00 +0200</pubDate><guid>https://andreas.scherbaum.la/post/2020-10-24_openhab-faster-loading-of-rules-files/</guid><description>&lt;p&gt;&lt;em&gt;openHAB&lt;/em&gt; rules files are lazy loaded. When a rule is used the first time, the entire rule file is loaded and compiled, which apparently is single-threaded and takes a couple seconds. Even on a reasonable powerful Rasperry Pi 4. This happens both after restarting &lt;em&gt;openHAB&lt;/em&gt; and after changing the rules file. It also means that whatever the rule in question is supposed to do has to wait a couple seconds when requested for the first time. Imagine you have a light switch, enter a room, press the switch, and it takes 5-10 seconds until the light comes on.&lt;/p&gt;&#10;&lt;p&gt;To work around this problem, I add a piece of code in all rules files which triggers an immediate action right after loading the file. This way the rules file is already pre-loaded (which again takes a couple seconds, but likely at a time when the rule is not needed right now).&lt;/p&gt;</description></item><item><title>Audio reminders in openHAB</title><link>https://andreas.scherbaum.la/post/2020-10-15_audio-reminders-in-openhab/</link><pubDate>Thu, 15 Oct 2020 21:20:00 +0200</pubDate><guid>https://andreas.scherbaum.la/post/2020-10-15_audio-reminders-in-openhab/</guid><description>&lt;p&gt;A while ago someone mentioned &amp;ldquo;reminders&amp;rdquo; used in their home audio system, and I took that idea and implemented something similar in &lt;a href="https://andreas.scherbaum.la/tags/openhab"&gt;openHAB&lt;/a&gt;.&lt;/p&gt;&#10;&lt;p&gt;The basic idea is that I can send scheduled notifications to any audio sink &lt;em&gt;openHAB&lt;/em&gt; is using, possibly more than one audio sink for one message. Also I want to differentiate between a simple audio sound, and text output.&lt;/p&gt;</description></item><item><title>openHAB, Telegram Bot and quoting URLs</title><link>https://andreas.scherbaum.la/post/2020-08-19_openhab-telegram-bot-and-quoting-urls/</link><pubDate>Wed, 19 Aug 2020 13:49:00 +0200</pubDate><guid>https://andreas.scherbaum.la/post/2020-08-19_openhab-telegram-bot-and-quoting-urls/</guid><description>&lt;p&gt;A while ago I &lt;a href="https://andreas.scherbaum.la/post/2020-06-28_deutscher-wetterdienst-notifications-in-openhab-and-telegram/"&gt;integrated DWD warnings&lt;/a&gt; (&lt;em&gt;Deutscher Wetterdienst&lt;/em&gt;) into our home automation system, and receive severe weather notifications ever since then. That works quite good, but it was missing a weblink with more details - or if you want to forward the warning to someone it would be useful to have a link to the warning as well. The &lt;em&gt;DWD&lt;/em&gt; binding does not provide that piece of information, but it is easy enough to add - or so I thought.&lt;/p&gt;</description></item><item><title>Text-to-Speech in openHAB</title><link>https://andreas.scherbaum.la/post/2020-08-16_text-to-speech-in-openhab/</link><pubDate>Sun, 16 Aug 2020 17:28:00 +0200</pubDate><guid>https://andreas.scherbaum.la/post/2020-08-16_text-to-speech-in-openhab/</guid><description>&lt;p&gt;In my ongoing endeavor to improve our home, a while ago I added a notification when the &lt;a href="https://andreas.scherbaum.la/post/2018-07-06_notification-when-washing-machine-or-dryer-are-finished-with-openhab/"&gt;washing machine and the dryer are finished&lt;/a&gt;. The notification is send to a &lt;a href="https://andreas.scherbaum.la/post/2020-06-22_openhab-and-telegram-bot/"&gt;Telegram channel&lt;/a&gt;. Over the summer vacation I added a number new &lt;a href="https://andreas.scherbaum.la/tags/chromecast"&gt;ChromeCast&lt;/a&gt; Audio devices (Google no longer offers the Audio CC, if you need one get one now). One is placed in the kitchen. Not only can I listen to music while eating breakfast, I can also output notifications, by using the CC as an &lt;a href="https://www.openhab.org/docs/configuration/multimedia.html"&gt;audio sink in openHAB&lt;/a&gt;.&lt;/p&gt;&#10;&lt;p&gt;To make that useful, I decided to use a Text-to-Speech system. &lt;em&gt;openHAB&lt;/em&gt; offers a couple different TTS systems, however most of them need a cloud integration, and therefore a working Internet connection. The &amp;ldquo;&lt;a href="https://www.openhab.org/addons/voice/picotts/"&gt;Pico TTS&lt;/a&gt;&amp;rdquo; works standalone, and was my favorite choice for this implementation.&lt;/p&gt;</description></item><item><title>openHAB and Tankerkönig gas prices + Telegram integration - Second iteration</title><link>https://andreas.scherbaum.la/post/2020-08-15_openhab-and-tankerkoenig-gas-prices-+-telegram-integration-second-iteration/</link><pubDate>Sat, 15 Aug 2020 18:25:00 +0200</pubDate><guid>https://andreas.scherbaum.la/post/2020-08-15_openhab-and-tankerkoenig-gas-prices-+-telegram-integration-second-iteration/</guid><description>&lt;p&gt;In my &lt;a href="https://andreas.scherbaum.la/post/2020-06-27_openhab-and-tankerkoenig-gas-prices-+-telegram-integration/"&gt;previous blog&lt;/a&gt; post about &amp;ldquo;&lt;a href="https://www.tankerkoenig.de/"&gt;Tankerkönig&lt;/a&gt;&amp;rdquo; I explained the details of how to integrate this binding into &lt;em&gt;openHAB&lt;/em&gt; and provide a &lt;em&gt;Telegram&lt;/em&gt; interface.&lt;/p&gt;&#10;&lt;p&gt;Someone on the &lt;em&gt;openHAB&lt;/em&gt; community forum &lt;a href="https://community.openhab.org/t/openhab-and-tankerkonig-gas-prices-telegram-integration/101410/2"&gt;pointed out&lt;/a&gt; that &lt;em&gt;Telegram&lt;/em&gt; bots allow queries, where one can present the user with options, and the user only has to click on one of the options. That makes it easier to use, and less typing is required as well. I went ahead and implemented that.&lt;/p&gt;&#10;&lt;p&gt;Most of the &lt;a href="https://andreas.scherbaum.la/post/2020-06-27_openhab-and-tankerkoenig-gas-prices-+-telegram-integration/"&gt;implementation&lt;/a&gt; does not change, especially all the Things and Items are the same. The Rules change however.&lt;/p&gt;</description></item><item><title>Install openHABian image on Linux</title><link>https://andreas.scherbaum.la/post/2020-08-08_install-openhabian-image-on-linux/</link><pubDate>Sat, 08 Aug 2020 12:36:00 +0200</pubDate><guid>https://andreas.scherbaum.la/post/2020-08-08_install-openhabian-image-on-linux/</guid><description>&lt;p&gt;My plan is to reinstall &lt;a href="https://github.com/openhab/openhabian"&gt;openHABian&lt;/a&gt; on a bigger SDcard, and on a &lt;em&gt;Raspberry Pi&lt;/em&gt; 4. The latest release (&lt;a href="https://github.com/openhab/openhabian/releases/tag/v1.5"&gt;v1.5&lt;/a&gt;) supports the new Pi 4, and I decided it&amp;rsquo;s time to do a fresh install, and see if all my Playbooks are still working.&lt;/p&gt;&#10;&lt;p&gt;As always, I&amp;rsquo;m searching my shell history for the right command how to install the image &amp;hellip; but came up empty.&lt;/p&gt;</description></item><item><title>Improve openHAB Rules response time</title><link>https://andreas.scherbaum.la/post/2020-07-06_improve-openhab-rules-response-time/</link><pubDate>Mon, 06 Jul 2020 11:48:00 +0200</pubDate><guid>https://andreas.scherbaum.la/post/2020-07-06_improve-openhab-rules-response-time/</guid><description>&lt;p&gt;By default, &lt;em&gt;openHAB&lt;/em&gt; only starts &lt;code&gt;5&lt;/code&gt; threads to deal with execution of &lt;a href="https://www.openhab.org/docs/configuration/rules-dsl.html"&gt;Rules&lt;/a&gt;. That&amp;rsquo;s not a lot, and if all threads are busy, rules have to wait until a slot is free. This results in slow &lt;code&gt;Rule&lt;/code&gt; response time.&lt;/p&gt;&#10;&lt;p&gt;This can be improved.&lt;/p&gt;</description></item><item><title>openHAB: Turn display on and off for a Video ChromeCast</title><link>https://andreas.scherbaum.la/post/2020-07-05_openhab-turn-display-on-and-off-for-a-video-chromecast/</link><pubDate>Sun, 05 Jul 2020 00:20:00 +0200</pubDate><guid>https://andreas.scherbaum.la/post/2020-07-05_openhab-turn-display-on-and-off-for-a-video-chromecast/</guid><description>&lt;p&gt;After figuring out if a &lt;a href="https://andreas.scherbaum.la/post/2020-07-04_openhab-detect-if-a-chromecast-is-currently-used-or-idle/"&gt;ChromeCast is currently used&lt;/a&gt;, it was time to fix a long-standing problem. At home we don&amp;rsquo;t have TVs, just &amp;ldquo;dumb&amp;rdquo; displays, and stream content using &lt;em&gt;ChromeCasts&lt;/em&gt;. However a video &lt;em&gt;ChromeCast&lt;/em&gt; never really turns off, but keeps the display running, using a &lt;code&gt;Backdrop&lt;/code&gt; app. This app keeps showing pictures on the display when the &lt;em&gt;ChromeCast&lt;/em&gt; is not used otherwise, effectively preventing any powersafe mode.&lt;/p&gt;&#10;&lt;p&gt;That&amp;rsquo;s both annoying (who wants to have pictures shown in the living room or working room all night), and consumes energy. It&amp;rsquo;s also &lt;a href="https://support.google.com/chromecast/thread/1738612?hl=en"&gt;intentional by Google&lt;/a&gt;. So far we had to turn the display on and off manually, which is inconvenient.&lt;/p&gt;</description></item><item><title>openHAB: detect if a ChromeCast is currently used or idle</title><link>https://andreas.scherbaum.la/post/2020-07-04_openhab-detect-if-a-chromecast-is-currently-used-or-idle/</link><pubDate>Sat, 04 Jul 2020 20:38:00 +0200</pubDate><guid>https://andreas.scherbaum.la/post/2020-07-04_openhab-detect-if-a-chromecast-is-currently-used-or-idle/</guid><description>&lt;p&gt;We have a couple of Audio and Video &lt;em&gt;ChromeCasts&lt;/em&gt; in use. For an upcoming project I need to figure out if any of them is currently used. That is different for the Audio and the Video devices: the Audio just goes &lt;code&gt;idle=ON&lt;/code&gt;, the Video devices however load the &lt;code&gt;Backdrop&lt;/code&gt; app and show pictures when idling. Google for &lt;a href="https://support.google.com/chromecast/thread/1738612?hl=en"&gt;whatever reason&lt;/a&gt; does not want the attached monitor to go in powersafe mode. So much for saving energy &amp;hellip;&lt;/p&gt;</description></item><item><title>Deutscher Wetterdienst notifications in openHAB and Telegram</title><link>https://andreas.scherbaum.la/post/2020-06-28_deutscher-wetterdienst-notifications-in-openhab-and-telegram/</link><pubDate>Sun, 28 Jun 2020 17:32:00 +0200</pubDate><guid>https://andreas.scherbaum.la/post/2020-06-28_deutscher-wetterdienst-notifications-in-openhab-and-telegram/</guid><description>&lt;p&gt;The &amp;ldquo;&lt;a href="https://www.dwd.de/"&gt;Deutscher Wetterdienst&lt;/a&gt;&amp;rdquo; &lt;em&gt;DWD&lt;/em&gt; (&lt;em&gt;German Weather Service&lt;/em&gt;) provices a service which sends out alarms for upcoming events, like heavy rain, storm, blizzard, strong winds ect. This service is only available for &lt;em&gt;Germany&lt;/em&gt;. And it has a &lt;a href="https://www.openhab.org/addons/bindings/dwdunwetter/"&gt;binding for openHAB&lt;/a&gt;. Time to integrate this, activate a number of regions I&amp;rsquo;m interested in, and send notifications to our mobile phones.&lt;/p&gt;</description></item><item><title>openHAB and Tankerkönig gas prices + Telegram integration</title><link>https://andreas.scherbaum.la/post/2020-06-27_openhab-and-tankerkoenig-gas-prices-+-telegram-integration/</link><pubDate>Sat, 27 Jun 2020 01:03:00 +0200</pubDate><guid>https://andreas.scherbaum.la/post/2020-06-27_openhab-and-tankerkoenig-gas-prices-+-telegram-integration/</guid><description>&lt;p&gt;In &lt;em&gt;Germany&lt;/em&gt;, every gas station must report gas prices online, to the &lt;a href="https://www.bundeskartellamt.de/DE/Wirtschaftsbereiche/Mineral%C3%B6l/MTS-Kraftstoffe/mtskraftstoffe_node.html"&gt;Markttransparenzstelle für Kraftstoffe&lt;/a&gt;. Businesses and users can then fetch this data and provide services. One of these companies is &lt;a href="https://www.tankerkoenig.de/"&gt;Tankerkönig&lt;/a&gt;, and there&amp;rsquo;s also a &lt;a href="https://www.openhab.org/addons/bindings/tankerkoenig/"&gt;Binding for openHAB&lt;/a&gt;.&lt;/p&gt;&#10;&lt;p&gt;If you are interested in gas prices for certain gas stations, you need to &lt;a href="https://creativecommons.tankerkoenig.de/"&gt;sign up for a (free) API key&lt;/a&gt;, and figure out the IDs of the gas stations. For that &lt;a href="https://creativecommons.tankerkoenig.de/TankstellenFinder/index.html"&gt;go to this website&lt;/a&gt;, Position the blue marker on the location you are interested in, and then click on all the gas stations you want to include. Finally click on &lt;code&gt;Tankstellen übernehmen&lt;/code&gt; - this will open a &lt;em&gt;JSON&lt;/em&gt; with the data, from there extract the &lt;code&gt;id&lt;/code&gt; (and possibly the other data as well).&lt;/p&gt;</description></item><item><title>openHAB and Telegram Bot</title><link>https://andreas.scherbaum.la/post/2020-06-22_openhab-and-telegram-bot/</link><pubDate>Mon, 22 Jun 2020 10:54:00 +0200</pubDate><guid>https://andreas.scherbaum.la/post/2020-06-22_openhab-and-telegram-bot/</guid><description>&lt;p&gt;&lt;em&gt;openHAB&lt;/em&gt; 2 comes with a &lt;em&gt;Telegram&lt;/em&gt; binding which allows to run a &lt;em&gt;Telegram&lt;/em&gt; Bot. This bot can both send messages to users and groups, and can receive commands and respond to them. That&amp;rsquo;s useful: your home automation system can send all kind of details to your mobile phone.&lt;/p&gt;</description></item><item><title>Move InfluxDB data directory to a SDcard</title><link>https://andreas.scherbaum.la/post/2020-06-21_move-influxdb-data-directory-to-a-sdcard/</link><pubDate>Sun, 21 Jun 2020 21:26:00 +0200</pubDate><guid>https://andreas.scherbaum.la/post/2020-06-21_move-influxdb-data-directory-to-a-sdcard/</guid><description>&lt;p&gt;For my &lt;a href="https://andreas.scherbaum.la/categories/openhab"&gt;openHAB&lt;/a&gt; system I installed &lt;em&gt;InfluxDB&lt;/em&gt; (on a separate) &lt;em&gt;Raspberry Pi&lt;/em&gt;. The Pi has a 32 GB SDcard, but that is not enough for storing all the data, and that Pi has additional work to do as well. For that reason I also attached a &lt;em&gt;1 TB&lt;/em&gt; disk to the Pi, and mounted it on &lt;code&gt;/data&lt;/code&gt;. Now all I have to do is move the &lt;em&gt;InfluxDB&lt;/em&gt; data directory to &lt;code&gt;/data&lt;/code&gt;.&lt;/p&gt;</description></item><item><title>Monitor ChromeCast status in openHAB</title><link>https://andreas.scherbaum.la/post/2020-06-19_monitor-chromecast-status-in-openhab/</link><pubDate>Fri, 19 Jun 2020 13:10:00 +0200</pubDate><guid>https://andreas.scherbaum.la/post/2020-06-19_monitor-chromecast-status-in-openhab/</guid><description>&lt;p&gt;I really like to monitor things, to catch issues early on. In our home we have a couple &lt;a href="https://en.wikipedia.org/wiki/Chromecast"&gt;ChromeCasts&lt;/a&gt;, both Audio and Video. They are all connected to the &lt;a href="https://andreas.scherbaum.la/categories/openhab"&gt;openHAB&lt;/a&gt; system, Once in a while they stop working, and need to be restarted (unplugged and plugged in again). Unfortunately you usually only find that out when you want to stream something, and wonder why either the &lt;em&gt;ChromeCast&lt;/em&gt; does not show up in the device list, or does show up but does not accept the media.&lt;/p&gt;</description></item><item><title>openHAB and HP printer</title><link>https://andreas.scherbaum.la/post/2020-06-18_openhab-and-hp-printer/</link><pubDate>Thu, 18 Jun 2020 01:43:00 +0200</pubDate><guid>https://andreas.scherbaum.la/post/2020-06-18_openhab-and-hp-printer/</guid><description>&lt;p&gt;Recent &lt;em&gt;openHAB&lt;/em&gt; versions come with a new &lt;a href="https://www.openhab.org/addons/bindings/hpprinter/"&gt;HP Printer Binding&lt;/a&gt;, which is a big improvement over the more general &lt;a href="https://www.openhab.org/addons/bindings/ipp/"&gt;IPP Binding&lt;/a&gt; for printers.&lt;/p&gt;</description></item><item><title>New OpenWeatherMap channels missing after openHAB upgrade from 2.4 to 2.5</title><link>https://andreas.scherbaum.la/post/2020-06-07_new-openweathermap-channels-missing-after-openhab-upgrade-from-2.4-to-2.5/</link><pubDate>Sun, 07 Jun 2020 22:54:00 +0200</pubDate><guid>https://andreas.scherbaum.la/post/2020-06-07_new-openweathermap-channels-missing-after-openhab-upgrade-from-2.4-to-2.5/</guid><description>&lt;p&gt;A while ago I upgraded &lt;em&gt;openHAB&lt;/em&gt; from version &lt;code&gt;2.4&lt;/code&gt; to &lt;code&gt;2.5&lt;/code&gt;. That comes with the &lt;a href="https://andreas.scherbaum.la/post/2020-04-08_openhab-habpanel-configuration-gets-destroyed-habpanel-stays-blank/"&gt;usual share of problems&lt;/a&gt;, but eventually I got it working.&lt;/p&gt;</description></item><item><title>Install a Raspbee II on a Raspberry Pi</title><link>https://andreas.scherbaum.la/post/2020-05-29_install-a-raspbee-ii-on-a-raspberry-pi/</link><pubDate>Fri, 29 May 2020 01:16:00 +0200</pubDate><guid>https://andreas.scherbaum.la/post/2020-05-29_install-a-raspbee-ii-on-a-raspberry-pi/</guid><description>&lt;p&gt;A while ago I got a &lt;a href="https://twitter.com/sys_adm_ama/status/1261419079916761088"&gt;recommendation&lt;/a&gt; to look into a &lt;em&gt;Raspbee&lt;/em&gt; (from &lt;a href="https://www.dresden-elektronik.de/"&gt;dresden elektronik&lt;/a&gt;) as &lt;em&gt;Zigbee&lt;/em&gt; gateway. That looked like fun, therefore I ordered one of the devices. The first step is the installation of the &lt;em&gt;Pi&lt;/em&gt; itself and then the software for the &lt;em&gt;Raspbee&lt;/em&gt;.&lt;/p&gt;</description></item><item><title>Raspberry Pi watchdog for openHAB</title><link>https://andreas.scherbaum.la/post/2020-05-07_raspberry-pi-watchdog-for-openhab/</link><pubDate>Thu, 07 May 2020 02:27:00 +0200</pubDate><guid>https://andreas.scherbaum.la/post/2020-05-07_raspberry-pi-watchdog-for-openhab/</guid><description>&lt;p&gt;The &lt;a href="https://andreas.scherbaum.la/categories/openhab"&gt;openHAB&lt;/a&gt; display in the kitchen is still the problem child. Occasionally it just stops, other times it does not refresh the &lt;em&gt;HABpanel&lt;/em&gt;, even though it has a connection to the &lt;em&gt;openHAB&lt;/em&gt; server. Then there is the problem with the &lt;a href="https://andreas.scherbaum.la/post/2020-01-29_reboot-the-raspberry-pi-on-network-failures-brcmfmac-brcmf_cfg80211_scan-scan-error-110/"&gt;network card in the Pi&lt;/a&gt;. And - ok, that&amp;rsquo;s a server-side problem - occasionally the &lt;a href="https://andreas.scherbaum.la/post/2020-04-28_openhab2-check-if-alive/"&gt;weather stops updating&lt;/a&gt;. All in all that&amp;rsquo;s a lot of trouble for a display which is just supposed to run standalone.&lt;/p&gt;&#10;&lt;p&gt;In the latest iteration I looked into activating the integrated hardware watchdog in the &lt;em&gt;Raspberry Pi&lt;/em&gt;. Checking the temperature it never goes above ~55°C celcius, even though the display is in an almost closed frame and can&amp;rsquo;t exchange much heat with the environment. But nevertheless occasionally the &lt;em&gt;Pi&lt;/em&gt; just halts, and stops operating.&lt;/p&gt;</description></item><item><title>openhab2: check if alive</title><link>https://andreas.scherbaum.la/post/2020-04-28_openhab2-check-if-alive/</link><pubDate>Tue, 28 Apr 2020 15:42:00 +0200</pubDate><guid>https://andreas.scherbaum.la/post/2020-04-28_openhab2-check-if-alive/</guid><description>&lt;p&gt;As mentioned in my previous &lt;a href="https://andreas.scherbaum.la/post/2020-04-08_openhab-habpanel-configuration-gets-destroyed-habpanel-stays-blank/"&gt;openHAB blog post&lt;/a&gt;: it seems to be too much to ask to have a reliable and working display in the kitchen.&lt;/p&gt;&#10;&lt;p&gt;Another problem I found is that the &lt;a href="https://andreas.scherbaum.la/post/2019-01-25_weather-forecast-in-openhab-based-on-openweathermap-using-ansible/"&gt;weather data&lt;/a&gt; occasionally does not update. Everything seems to work, no errors in the log, just no updated data. Of course this results in outdated weather info in the kitchen, and the threat that &amp;ldquo;someone&amp;rdquo; will buy a regular weather station and render my 7&amp;quot; &lt;em&gt;Raspberry&lt;/em&gt; display useless.&lt;/p&gt;</description></item><item><title>Apache Karaf client in openHAB, and the "Session has been closed" error</title><link>https://andreas.scherbaum.la/post/2020-04-21_apache-karaf-client-in-openhab-and-the-session-has-been-closed-error/</link><pubDate>Tue, 21 Apr 2020 20:39:00 +0200</pubDate><guid>https://andreas.scherbaum.la/post/2020-04-21_apache-karaf-client-in-openhab-and-the-session-has-been-closed-error/</guid><description>&lt;p&gt;Don&amp;rsquo;t you love it when things suddenly stop working?&lt;/p&gt;&#10;&lt;p&gt;In my &lt;a href="https://andreas.scherbaum.la/categories/openhab"&gt;openHAB&lt;/a&gt; installation I have a check which verifies that the weather data is up to date. Otherwise it restarts the openhab2 service. And this check stopped working &amp;hellip; Leaving the kitchen display not updated for a longer time. The same display where I expect the entire installation to &amp;ldquo;just work&amp;rdquo;, and don&amp;rsquo;t create so many different problems. Seems to be a hard problem to have an &lt;em&gt;openHAB&lt;/em&gt; installation without any trouble &amp;hellip;&lt;/p&gt;</description></item><item><title>openHAB HABpanel configuration gets destroyed, HABpanel stays blank</title><link>https://andreas.scherbaum.la/post/2020-04-08_openhab-habpanel-configuration-gets-destroyed-habpanel-stays-blank/</link><pubDate>Wed, 08 Apr 2020 19:58:00 +0200</pubDate><guid>https://andreas.scherbaum.la/post/2020-04-08_openhab-habpanel-configuration-gets-destroyed-habpanel-stays-blank/</guid><description>&lt;p&gt;&lt;a href="https://www.openhab.org/"&gt;openHAB&lt;/a&gt; is a stream of pure joy when it comes to debugging. Especially when all I want is a small display in the kitchen, working autonomous and without the need to restart it all the time or login to fix issues.&lt;/p&gt;</description></item><item><title>Show raw openHAB Image Type in HABpanel</title><link>https://andreas.scherbaum.la/post/2020-02-22_show-raw-openhab-image-type-in-habpanel/</link><pubDate>Sat, 22 Feb 2020 14:28:00 +0100</pubDate><guid>https://andreas.scherbaum.la/post/2020-02-22_show-raw-openhab-image-type-in-habpanel/</guid><description>&lt;p&gt;In our Home Automation system, I read weather data from &lt;em&gt;OpenWeatherMap&lt;/em&gt;. &lt;a href="https://andreas.scherbaum.la/post/2019-01-25_weather-forecast-in-openhab-based-on-openweathermap-using-ansible/"&gt;I blogged about the implementation before&lt;/a&gt;. The weather data provides an icon which can be used to show the current weather:&lt;/p&gt;</description></item><item><title>Raspberry Pi: take a screenshot from a display with no keyboard and mouse</title><link>https://andreas.scherbaum.la/post/2020-02-10_raspberry-pi-take-a-screenshot-from-a-display-with-no-keyboard-and-mouse/</link><pubDate>Mon, 10 Feb 2020 00:58:00 +0100</pubDate><guid>https://andreas.scherbaum.la/post/2020-02-10_raspberry-pi-take-a-screenshot-from-a-display-with-no-keyboard-and-mouse/</guid><description>&lt;p&gt;The &lt;em&gt;Raspberry Pi&lt;/em&gt; in the kitchen runs relatively stable, but recently the browser (which is showing the &lt;a href="https://www.openhab.org/"&gt;openHAB&lt;/a&gt; &lt;em&gt;HABpanel&lt;/em&gt;) popped up a warning in the upper right corner. That&amp;rsquo;s annoying, because this area in &lt;em&gt;HABpanel&lt;/em&gt; shows the outside temperature.&lt;/p&gt;&#10;&lt;p&gt;Before investigating what&amp;rsquo;s going on, I had to figure out a way to get a screenshot of the display - without running into the kitchen with my mobile phone. And without attaching a keyboard all the time (to press the &lt;code&gt;Print&lt;/code&gt; button).&lt;/p&gt;</description></item><item><title>Hide the mouse cursor on a Raspberry Pi</title><link>https://andreas.scherbaum.la/post/2020-02-02_hide-the-mouse-cursor-on-a-raspberry-pi/</link><pubDate>Sun, 02 Feb 2020 13:03:00 +0100</pubDate><guid>https://andreas.scherbaum.la/post/2020-02-02_hide-the-mouse-cursor-on-a-raspberry-pi/</guid><description>&lt;p&gt;The &lt;em&gt;openHAB&lt;/em&gt; &lt;em&gt;HABpanel&lt;/em&gt; we have in the kitchen runs on a &lt;em&gt;Raspberry Pi&lt;/em&gt; and uses a touchscreen display. The browser starts in &lt;a href="https://andreas.scherbaum.la/post/2020-01-14_automatically-start-a-fullscreen-browser-on-a-raspberry-pi-show-openhab-habpanel/"&gt;fullscreen mode&lt;/a&gt;, and shows a specific &lt;em&gt;HABpanel&lt;/em&gt; screen for this display. That&amp;rsquo;s all nice, but by default the mouse cursor is in the way. Let&amp;rsquo;s get rid of it.&lt;/p&gt;&#10;&lt;p&gt;The &lt;a href="https://www.raspberrypi.org/downloads/raspbian/"&gt;Raspbian&lt;/a&gt; system which runs on the &lt;em&gt;Pi&lt;/em&gt; comes with a package called &lt;code&gt;unclutter&lt;/code&gt;. This hides the curser after a few seconds. All I have to do is install the package, and start the app. Right?&lt;/p&gt;</description></item><item><title>Reboot the Raspberry Pi on network failures (brcmfmac: brcmf_cfg80211_scan: scan error -110)</title><link>https://andreas.scherbaum.la/post/2020-01-29_reboot-the-raspberry-pi-on-network-failures-brcmfmac-brcmf_cfg80211_scan-scan-error-110/</link><pubDate>Wed, 29 Jan 2020 01:41:00 +0100</pubDate><guid>https://andreas.scherbaum.la/post/2020-01-29_reboot-the-raspberry-pi-on-network-failures-brcmfmac-brcmf_cfg80211_scan-scan-error-110/</guid><description>&lt;p&gt;In one of my &lt;a href="https://andreas.scherbaum.la/post/2020-01-18_occasional-habpanel-disconnect-from-the-openhab-server/"&gt;earlier blog posts&lt;/a&gt; I reported that occasionally the &lt;em&gt;HABpanel&lt;/em&gt; will disconnect from the server. Turns out it&amp;rsquo;s not &lt;em&gt;HABpanel&lt;/em&gt;, but it&amp;rsquo;s the Pi itself which is causing the trouble. Part of the problem why it took me so long to investigate is that the display is in the kitchen, and someone had to have a look and spot the small red error message. To work around that problem, I hooked the device up in the network monitoring, and had an alarm triggered when the device is not reachable. Sure enough, that happens occasionally.&lt;/p&gt;&#10;&lt;p&gt;Because I moved &lt;code&gt;/var/log&lt;/code&gt; to a small RAM disk to &lt;a href="https://andreas.scherbaum.la/post/2019-01-13_avoid-wear-out-of-ssd-cards-in-an-openhab-system/"&gt;avoid wearing out the SDcard&lt;/a&gt;, all logs are lost once the device is rebooted. Had to bring keyboard and mouse to the kitchen in order to save the logfiles once the device was no longer reachable over the network.&lt;/p&gt;&#10;&lt;p&gt;Turns out it&amp;rsquo;s a well-known problem with the network chip on the &lt;em&gt;Raspberry Pi&lt;/em&gt;. One of the &lt;em&gt;GitHub&lt;/em&gt; &lt;a href="https://github.com/raspberrypi/linux/issues/2453"&gt;issues is open since 2018&lt;/a&gt;, the &lt;a href="https://github.com/raspberrypi/linux/issues/3155"&gt;other one since 2019&lt;/a&gt;. So no hope for a real quick fix :-(&lt;/p&gt;</description></item><item><title>Dim the Raspberry Pi screen</title><link>https://andreas.scherbaum.la/post/2020-01-26_dim-the-raspberry-pi-screen/</link><pubDate>Sun, 26 Jan 2020 14:26:00 +0100</pubDate><guid>https://andreas.scherbaum.la/post/2020-01-26_dim-the-raspberry-pi-screen/</guid><description>&lt;p&gt;The new &lt;em&gt;Raspberry&lt;/em&gt; display works nice, but the screen is too bright. At night in the kitchen it enlightens the entire room - unnecessarily. Since I&amp;rsquo;m using the original &lt;a href="https://www.raspberrypi.org/products/raspberry-pi-touch-display/"&gt;Raspberry Pi 7&amp;quot; touch display&lt;/a&gt;, the brightness can be controlled in &lt;code&gt;/sys/class/backlight/rpi_backlight/brightness&lt;/code&gt;. This &amp;ldquo;file&amp;rdquo; can hold a value from &lt;code&gt;0&lt;/code&gt; (&lt;em&gt;display off&lt;/em&gt;) to &lt;code&gt;255&lt;/code&gt; (&lt;em&gt;full bright&lt;/em&gt;).&lt;/p&gt;&#10;&lt;p&gt;My first idea was to use a light sensor. But the display itself does not have such a sensor, and if I connect one to the &lt;em&gt;Pi&lt;/em&gt;, I somehow need to connect the sensor in a way that it can &amp;ldquo;see&amp;rdquo; the light in the room. Which means the sensor is clearly visible next to the display.&lt;/p&gt;&#10;&lt;p&gt;The next idea is a cron job, which dims the display, depending on the time of the day. A bit brighter over the day, and almost dark in the night. Cron job works fine, but let&amp;rsquo;s make this an exercise in writing more code by using &lt;em&gt;systemd&lt;/em&gt; timers. Because why not making it more complicated &amp;hellip;&lt;/p&gt;</description></item><item><title>Occasional HABpanel disconnect from the openHAB server</title><link>https://andreas.scherbaum.la/post/2020-01-18_occasional-habpanel-disconnect-from-the-openhab-server/</link><pubDate>Sat, 18 Jan 2020 16:20:00 +0100</pubDate><guid>https://andreas.scherbaum.la/post/2020-01-18_occasional-habpanel-disconnect-from-the-openhab-server/</guid><description>&lt;p&gt;The new display showing &lt;em&gt;HABpanel&lt;/em&gt; works quite nice. But occasionally the fullscreen browser will lose the network connection. As far as I can see, it&amp;rsquo;s not a &lt;a href="https://andreas.scherbaum.la/post/2020-01-13_raspberry-pi-disable-wi-fi-powersave-and-stay-connected-all-the-time/"&gt;Wi-Fi problem of the Raspberry Pi&lt;/a&gt;, but still annoying: in the morning the browser shows a small red warning that the connection to the &lt;a href="https://www.openhab.org/"&gt;openHAB&lt;/a&gt; server is lost, time is still correct, but temperature and the status of other devices is outdated. To fix that, I have to leave fullscreen mode, hit reload - and then there is no keyboard for &lt;a href="https://andreas.scherbaum.la/post/2020-01-14_automatically-start-a-fullscreen-browser-on-a-raspberry-pi-show-openhab-habpanel/"&gt;going into fullscreen mode&lt;/a&gt; again (that&amp;rsquo;s using the &lt;code&gt;F11&lt;/code&gt; key).&lt;/p&gt;</description></item><item><title>Automatically start a fullscreen browser on a Raspberry Pi - show openHAB HABpanel</title><link>https://andreas.scherbaum.la/post/2020-01-14_automatically-start-a-fullscreen-browser-on-a-raspberry-pi-show-openhab-habpanel/</link><pubDate>Tue, 14 Jan 2020 16:58:00 +0100</pubDate><guid>https://andreas.scherbaum.la/post/2020-01-14_automatically-start-a-fullscreen-browser-on-a-raspberry-pi-show-openhab-habpanel/</guid><description>&lt;p&gt;The &lt;em&gt;Raspberry Pi&lt;/em&gt; with the &lt;a href="https://www.raspberrypi.org/products/raspberry-pi-touch-display/"&gt;touch display&lt;/a&gt; for the &lt;a href="https://andreas.scherbaum.la/tags/openhab"&gt;home automation system&lt;/a&gt; is coming along nicely. One problem to solve: how to display the &lt;a href="https://www.openhab.org/"&gt;openHAB&lt;/a&gt; &lt;a href="https://www.openhab.org/docs/configuration/habpanel.html"&gt;HABpanel&lt;/a&gt;, and which browser to use?&lt;/p&gt;&#10;&lt;p&gt;&lt;em&gt;Firefox&lt;/em&gt; and &lt;em&gt;Chrome&lt;/em&gt; don&amp;rsquo;t run on &lt;a href="https://en.wikipedia.org/wiki/Raspbian"&gt;Raspbian&lt;/a&gt;. However &lt;a href="https://en.wikipedia.org/wiki/Chromium_(web_browser)"&gt;Chromium&lt;/a&gt; (the open source part of the &lt;em&gt;Chrome&lt;/em&gt; browser) is. That&amp;rsquo;s a good start. But how to start the browser automatically, and in full screen?&lt;/p&gt;</description></item><item><title>Raspberry Pi: disable Wi-Fi powersave, and stay connected all the time</title><link>https://andreas.scherbaum.la/post/2020-01-13_raspberry-pi-disable-wi-fi-powersave-and-stay-connected-all-the-time/</link><pubDate>Mon, 13 Jan 2020 02:09:00 +0100</pubDate><guid>https://andreas.scherbaum.la/post/2020-01-13_raspberry-pi-disable-wi-fi-powersave-and-stay-connected-all-the-time/</guid><description>&lt;p&gt;Recently I installed a &lt;a href="https://en.wikipedia.org/wiki/Raspberry_Pi"&gt;Raspberry Pi&lt;/a&gt; with &lt;a href="https://en.wikipedia.org/wiki/Raspbian"&gt;Raspbian&lt;/a&gt;, and attached a touchscreen to it. The device is supposed to work as a display for our &lt;a href="https://www.openhab.org/"&gt;openHAB&lt;/a&gt; home automation system. All nice and shiny, except the Pi occasionally disconnects from the Wi-Fi - apparently in order to safe power. Once the network device is needed, the Wi-Fi is reconnected. That is the default setting.&lt;/p&gt;&#10;&lt;p&gt;That is quite annoying, because the &lt;em&gt;HABpanel&lt;/em&gt; will lose it&amp;rsquo;s connection to the &lt;em&gt;openHAB&lt;/em&gt; server, and no longer show widget updates. Some widgets like &amp;ldquo;time&amp;rdquo; will just continue to work, but other widgets like status of the &lt;a href="https://andreas.scherbaum.la/post/2018-07-06_notification-when-washing-machine-or-dryer-are-finished-with-openhab/"&gt;washing machine&lt;/a&gt;, or the current outside temperature just show the last state, and never update.&lt;/p&gt;</description></item><item><title>openHAB: widget with multiple different background colors</title><link>https://andreas.scherbaum.la/post/2020-01-11_openhab-widget-with-multiple-different-background-colors/</link><pubDate>Sat, 11 Jan 2020 17:56:00 +0100</pubDate><guid>https://andreas.scherbaum.la/post/2020-01-11_openhab-widget-with-multiple-different-background-colors/</guid><description>&lt;p&gt;Previously I &lt;a href="https://andreas.scherbaum.la/post/2018-07-06_notification-when-washing-machine-or-dryer-are-finished-with-openhab/"&gt;blogged about how the washing machine and the dryer are integrated into the openHAB home automation system&lt;/a&gt;.&lt;/p&gt;&#10;&lt;p&gt;For a while I had a standard &lt;a href="https://github.com/openhab/openhab-webui/tree/master/bundles/org.openhab.ui.habpanel/web/app/widgets/dummy"&gt;Dummy&lt;/a&gt; widget in &lt;a href="https://docs.openhab.org/v2.1/addons/uis/habpanel/readme.html"&gt;HABpanel&lt;/a&gt;, but that didn&amp;rsquo;t look very nice, was very standard, and the different icons for different states don&amp;rsquo;t really work. When I started integrating another &lt;em&gt;Raspberry Pi&lt;/em&gt; with a touch screen (blog post to come), I refreshed the &lt;em&gt;HABpanel&lt;/em&gt;, added another dashboard, and along the way I wrote a new &amp;ldquo;&lt;a href="https://github.com/openhab/openhab-webui/tree/master/bundles/org.openhab.ui.habpanel/web/app/widgets/template"&gt;Template&lt;/a&gt;&amp;rdquo; widget for the washing machine and the dryer.&lt;/p&gt;</description></item><item><title>webhook service with TLS and Let's Encrypt certificate</title><link>https://andreas.scherbaum.la/post/2019-12-15_webhook-service-with-tls-and-lets-encrypt-certificate/</link><pubDate>Sun, 15 Dec 2019 19:15:00 +0100</pubDate><guid>https://andreas.scherbaum.la/post/2019-12-15_webhook-service-with-tls-and-lets-encrypt-certificate/</guid><description>&lt;p&gt;For a number of services, I need a system/service which can receive web hooks, and act when such a trigger is received.&lt;/p&gt;</description></item><item><title>Weather Forecast in openHAB based on OpenWeatherMap, using Ansible</title><link>https://andreas.scherbaum.la/post/2019-01-25_weather-forecast-in-openhab-based-on-openweathermap-using-ansible/</link><pubDate>Fri, 25 Jan 2019 21:00:00 +0100</pubDate><guid>https://andreas.scherbaum.la/post/2019-01-25_weather-forecast-in-openhab-based-on-openweathermap-using-ansible/</guid><description>&lt;p&gt;After setting up &lt;a href="https://andreas.scherbaum.la/post/2019-01-24_install-openweathermap-in-openhab-using-ansible/"&gt;OpenWeatherMap in openHAB&lt;/a&gt;, I had another project on my list: send a forecast for the next day.&lt;/p&gt;&#10;&lt;p&gt;That is rather easy to do with a &lt;a href="https://www.openhab.org/docs/configuration/rules-dsl.html#time-based-triggers"&gt;Cron&lt;/a&gt; &lt;a href="https://www.openhab.org/docs/configuration/rules-dsl.html"&gt;rule&lt;/a&gt;.&lt;/p&gt;</description></item><item><title>Install OpenWeatherMap in openHAB, using Ansible</title><link>https://andreas.scherbaum.la/post/2019-01-24_install-openweathermap-in-openhab-using-ansible/</link><pubDate>Thu, 24 Jan 2019 21:00:00 +0100</pubDate><guid>https://andreas.scherbaum.la/post/2019-01-24_install-openweathermap-in-openhab-using-ansible/</guid><description>&lt;p&gt;Next item on my home automation todo list: weather, and forecast. No good system without that data!&lt;/p&gt;&#10;&lt;p&gt;After exploring the options which &lt;a href="https://www.openhab.org/"&gt;openHAB&lt;/a&gt; supports, I settled for &lt;a href="https://openweathermap.org/"&gt;OpenWeatherMap&lt;/a&gt;. Note: you need an account with &lt;em&gt;OWM&lt;/em&gt;, the basic functionality is free, the paid options give you more and better forecast.&lt;/p&gt;</description></item><item><title>Avoid "wear out" of SSD-cards in an openHAB system</title><link>https://andreas.scherbaum.la/post/2019-01-13_avoid-wear-out-of-ssd-cards-in-an-openhab-system/</link><pubDate>Sun, 13 Jan 2019 23:31:00 +0100</pubDate><guid>https://andreas.scherbaum.la/post/2019-01-13_avoid-wear-out-of-ssd-cards-in-an-openhab-system/</guid><description>&lt;p&gt;You might know that problem: the brand new SSD in your system is super fast, but after a good time using it, the card is dead. Unlike spinning disks, which usually fail over time, and show I/O errors by blocks, SSD cards are prone to a problem called &lt;a href="https://en.wikipedia.org/wiki/Wear_leveling"&gt;Wear leveling&lt;/a&gt;. Blocks which are written more often will &amp;ldquo;wear out&amp;rdquo;, and become unresponsible. More writes increase this risk. And a typical &lt;a href="https://www.openhab.org/"&gt;openHAB&lt;/a&gt; system does a number of writes all the time: every time an external status changes, it&amp;rsquo;s written to the event log. By default the syslog is written to disk as well, and then there is a myriad of systemd services, writing status information into files.&lt;/p&gt;</description></item><item><title>Configure a FRITZ!Box in openHAB, using Ansible</title><link>https://andreas.scherbaum.la/post/2018-12-12_configure-a-fritz-box-in-openhab-using-ansible/</link><pubDate>Wed, 12 Dec 2018 22:03:00 +0100</pubDate><guid>https://andreas.scherbaum.la/post/2018-12-12_configure-a-fritz-box-in-openhab-using-ansible/</guid><description>&lt;p&gt;A while ago I posted about &lt;a href="https://andreas.scherbaum.la/post/2018-07-04_add-a-fritz-box-to-openhab-using-ansible/"&gt;adding a Fritz!Box to openHAB, using Ansible&lt;/a&gt;. Now I had to use the Playbook to install another Raspberry, and found that some parts are missing in my posting. Mostly at the end, when it comes to configuring the &lt;a href="https://en.avm.de/products/fritzbox/"&gt;Fritz!Box&lt;/a&gt;.&lt;/p&gt;&#10;&lt;p&gt;Therefore let&amp;rsquo;s run over all the steps again, and make sure that everything is covered.&lt;/p&gt;</description></item><item><title>Pushover app on Huawei Android phones</title><link>https://andreas.scherbaum.la/post/2018-07-22_pushover-app-on-huawei-android-phones/</link><pubDate>Sun, 22 Jul 2018 21:47:00 +0200</pubDate><guid>https://andreas.scherbaum.la/post/2018-07-22_pushover-app-on-huawei-android-phones/</guid><description>&lt;p&gt;While diving deeper into my &lt;a href="https://andreas.scherbaum.la/categories/openhab"&gt;openHAB&lt;/a&gt; installation, the need for notifications on mobile phones came up. After some research, I settled with &lt;em&gt;Pushover&lt;/em&gt;, which provides &lt;em&gt;Android&lt;/em&gt; and &lt;em&gt;iOS&lt;/em&gt; apps, as well as Desktop notifications. &lt;em&gt;openHAB&lt;/em&gt; Rules have support for &lt;em&gt;Pushover&lt;/em&gt;, and everything works well together.&lt;/p&gt;&#10;&lt;p&gt;Except when &lt;em&gt;Android&lt;/em&gt; decides to kill apps, because they sit idle and do nothing. It so happens on my &lt;em&gt;Huawei&lt;/em&gt; phone that notifications are delivered to the device, but no popup shows up. Only when I open the up, suddenly all the messages are there. The &lt;a href="https://pushover.net/faq#problem-push"&gt;Pushover FAQ has an entry for this&lt;/a&gt;, even for &lt;em&gt;Huawei&lt;/em&gt; phones, but it is outdated.&lt;/p&gt;&#10;&lt;p&gt;After another research it turns out, that the battery management in &lt;em&gt;Android&lt;/em&gt; is at fault - but it can be disabled.&lt;/p&gt;</description></item><item><title>openHAB: redirect port 8080 to port 80</title><link>https://andreas.scherbaum.la/post/2018-07-15_openhab-redirect-port-8080-to-port-80/</link><pubDate>Sun, 15 Jul 2018 22:59:00 +0200</pubDate><guid>https://andreas.scherbaum.la/post/2018-07-15_openhab-redirect-port-8080-to-port-80/</guid><description>&lt;p&gt;The &lt;a href="https://www.openhab.org/"&gt;openHAB&lt;/a&gt; &lt;a href="https://www.raspberrypi.org/"&gt;Raspberry&lt;/a&gt; &lt;a href="https://docs.openhab.org/installation/openhabian.html"&gt;image&lt;/a&gt;, by default, listens on port 8080. After &lt;a href="https://andreas.scherbaum.la/categories/openhab"&gt;using the image for a while&lt;/a&gt;, it became quite boring to always add the port to the URL. Quickly I decided to redirect port &lt;code&gt;80&lt;/code&gt; to port &lt;code&gt;8080&lt;/code&gt;, and make my life easier.&lt;/p&gt;&#10;&lt;p&gt;Not sure how much work that is in the &lt;em&gt;openHAB&lt;/em&gt; settings, I settled with redirecting or forwarding the port &lt;code&gt;80&lt;/code&gt; to port &lt;code&gt;8080&lt;/code&gt;.&lt;/p&gt;</description></item><item><title>Notification when washing machine or dryer are finished, with openHAB</title><link>https://andreas.scherbaum.la/post/2018-07-06_notification-when-washing-machine-or-dryer-are-finished-with-openhab/</link><pubDate>Fri, 06 Jul 2018 18:09:00 +0200</pubDate><guid>https://andreas.scherbaum.la/post/2018-07-06_notification-when-washing-machine-or-dryer-are-finished-with-openhab/</guid><description>&lt;p&gt;As part of my &lt;a href="https://andreas.scherbaum.la/categories/openhab"&gt;home automation project&lt;/a&gt;, I wanted the washing machine and the dryer to send notifications when they are finished. Both machines are in a separate room, and their alarm beeps are hard to hear in the other parts of the flat. Also because of the noise both machines make during operation, the door is usually closed.&lt;/p&gt;&#10;&lt;p&gt;After checking several options how to interact with the washing machine and the dryer (from listening to the audio signals to having light sensors glued over the status led, open the frame and install something inside, and a small cam with picture recognition), I settled with measuring the power consumption. Next step: find the right kit.&lt;/p&gt;</description></item><item><title>Add a FRITZ!Box to openHAB, using Ansible</title><link>https://andreas.scherbaum.la/post/2018-07-04_add-a-fritz-box-to-openhab-using-ansible/</link><pubDate>Wed, 04 Jul 2018 14:31:00 +0200</pubDate><guid>https://andreas.scherbaum.la/post/2018-07-04_add-a-fritz-box-to-openhab-using-ansible/</guid><description>&lt;p&gt;Next step &lt;a href="https://andreas.scherbaum.la/categories/openhab"&gt;on my way to add home automation&lt;/a&gt;: the &lt;em&gt;FRITZ!Box&lt;/em&gt;. Mostly for the current IP-address, and call information.&lt;/p&gt;&#10;&lt;p&gt;After some research it became obvious that more manual work is required, hence again something which can be automated.&lt;/p&gt;</description></item><item><title>Update openHAB Things configuration using Ansible</title><link>https://andreas.scherbaum.la/post/2018-07-03_update-openhab-things-configuration-using-ansible/</link><pubDate>Tue, 03 Jul 2018 15:16:00 +0200</pubDate><guid>https://andreas.scherbaum.la/post/2018-07-03_update-openhab-things-configuration-using-ansible/</guid><description>&lt;p&gt;In my &lt;a href="https://andreas.scherbaum.la/post/2018-07-01_install-openhab2-bindings-using-ansible/"&gt;earlier&lt;/a&gt; &lt;a href="https://andreas.scherbaum.la/post/2018-07-02_auto-approve-and-link-certain-inbox-items-in-openhab-using-ansible/"&gt;openHAB&lt;/a&gt; &lt;a href="https://andreas.scherbaum.la/categories/openhab"&gt;blog posts&lt;/a&gt; I automated the installation of extensions and linking of &lt;em&gt;Channels&lt;/em&gt; to &lt;em&gt;Items&lt;/em&gt;. Another problem I&amp;rsquo;m facing is the configuration of items. Again, that&amp;rsquo;s very easy in the UI - if you are willing to click through the list of &lt;em&gt;Items&lt;/em&gt;, and manually do all the steps.&lt;/p&gt;&#10;&lt;p&gt;Among other things I&amp;rsquo;m using the &lt;code&gt;binding-yahooweather&lt;/code&gt; and the &lt;code&gt;binding-ipp&lt;/code&gt; bindings, and the first one needs configuration before it can work properly. For the second one, it righly discovered a laser printer in our network, but occasionally when &lt;em&gt;openHAB&lt;/em&gt; requests the status information, this spins up an internal disk in the printer. Therefore it is feasible to increase the time between checks - it&amp;rsquo;s just the number of outstanding print jobs anyway. Doesn&amp;rsquo;t matter if someone reacts 5 or 15 minutes later, if the problem was not discovered instantly.&lt;/p&gt;</description></item><item><title>Auto-approve and link certain inbox items in openHAB using Ansible</title><link>https://andreas.scherbaum.la/post/2018-07-02_auto-approve-and-link-certain-inbox-items-in-openhab-using-ansible/</link><pubDate>Mon, 02 Jul 2018 14:41:00 +0200</pubDate><guid>https://andreas.scherbaum.la/post/2018-07-02_auto-approve-and-link-certain-inbox-items-in-openhab-using-ansible/</guid><description>&lt;p&gt;&lt;a href="https://andreas.scherbaum.la/post/2018-07-01_install-openhab2-bindings-using-ansible/"&gt;After starting to look&lt;/a&gt; into &lt;a href="https://www.openhab.org/"&gt;openHAB&lt;/a&gt;, and automate the installation with &lt;a href="https://www.ansible.com/"&gt;Ansible&lt;/a&gt;, I discovered that there is an API, but the main focus of the documentation and examples clearly is on using the UI and don&amp;rsquo;t automate the installation. It takes some time to figure out the details. In my last blog post I automated the installation of extensions/bindings, and ended with running a rediscover scan.&lt;/p&gt;&#10;&lt;p&gt;Now it&amp;rsquo;s time to see if there are new items in the inbox, and possibly auto-approve and link them in &lt;em&gt;Ansible&lt;/em&gt;.&lt;/p&gt;</description></item><item><title>Install openHAB2 bindings using Ansible</title><link>https://andreas.scherbaum.la/post/2018-07-01_install-openhab2-bindings-using-ansible/</link><pubDate>Sun, 01 Jul 2018 11:33:00 +0200</pubDate><guid>https://andreas.scherbaum.la/post/2018-07-01_install-openhab2-bindings-using-ansible/</guid><description>&lt;p&gt;Recently I started looking into Home Automation, using a &lt;a href="https://en.wikipedia.org/wiki/Raspberry_Pi"&gt;Raspberry Pi&lt;/a&gt; and the &lt;a href="https://www.openhab.org/"&gt;openHAB&lt;/a&gt; as platform. The website provides ready-to-go images based on &lt;em&gt;Debian&lt;/em&gt;, named &lt;a href="https://docs.openhab.org/installation/openhabian.html"&gt;openHABian&lt;/a&gt;. Me being me, I decided to install the image, let it boot up for the first time, and then take it from there using &lt;a href="https://www.ansible.com/"&gt;Ansible&lt;/a&gt; as automation tool. That&amp;rsquo;s a bit more effort in the beginning, but ensures that I can always just wipe the SDcard, and start over from the beginning. Especially useful if I screw up at some point during testing.&lt;/p&gt;</description></item></channel></rss>