After using Shelly flood sensors for a few years I’ve needed to add another one. This time a bought a Shelly Flood Gen 4 and noticed the difference to the old ones. So, here’s my code snippet to use them all via mqtt: alias: Benachrichtigung bei Wasser Sensor triggers: - id: Kueche trigger: mqtt options: topic: shellies/shellyflood-3494546A1B2C/sensor/flood payload: "true" - id: Waschmaschine trigger: mqtt options: topic: shellies/shellyflood-3494546D3E4F/sensor/flood payload: "true" - id: Heizkeller trigger: mqtt options: topic: shellyfloodg4-58e6c5A5B6C7/events/rpc value_template: "{{ value_json.params['flood:0'].alarm }}" payload: true conditions: [] actions: - metadata: {} data: title: Wassersensor {{ trigger.id }} hat Wasser entdeckt message: "{{ trigger.id }}" action: notify.email_markus mode: single The thing that cost me an hour of debugging: Use payload: true for gen4, not payload: "true".
Warum ich Jabber benutze
Nachdem ich mich vor ein paar Tagen gegen Skype ausgesprochen haben möchte ich heute ein paar positive Worte über Jabber schreiben. Über Jabber kann man Kurznachrichten austauschen, bald auch telefonieren. Jabber (eigentlich heißt das Protokoll XMPP, aber das spricht sich so schwer) ist ein freies Protokoll, d.h. jeder kann ein Programm entwickeln, was Jabber unterstützt (im Gegensatz zu Skype, nur Skype kann Skype). Das Jabber Netzwerk ist dezentral. Das bedeutet, dass jeder seinen eigenen Jabber Server betreiben kann, wobei die Jabber Server untereinander vernetzt sind. So betreiben z.B. web.de, GMX, der CCC und auch Google Jabber Server. Somit gleicht diese Strucktur dem Internet - niemand kann einfach Jabber abschalten. Dies unterscheidet Jabber grundlegend von anderen Protokollen wie z.B. ICQ oder MSN. Hier betreiben AOL oder Microsoft die Server und die gesammte Kommunikation läuft immer darüber (wäre ja auch blöd wenn nicht, denn AOL oder auch Microsoft speichern ja alle Unterhaltungen und sichern sich die Rechte daran). ...
Warum ich kein Skype benutze
Des Öfteren werde ich nach meinem Skype Benutzernamen gefragt. Wenn ich dann antworte, dass ich lieber offene Kommunikationsmittel benutze führt dies meist zu Verwunderung. Keine Frage, Skype ist einfach, weit verbreitet und funktioniert. Aber ich kann mich einfach nicht mit den folgenden Gegebenheiten anfreunden: Die Gründer von Skype waren auch maßgeblich bei der Entwicklung von KaZaA beteiligt. KaZaA, einer der ersten - meist für illegale Zwecke genutzte - P2P Tauschbörsen, beinhaltete diverse Schadprogramme (spyware, adware und hijacker). Diese mit KaZaA installierten Programme beobachteten den Benutzer, übermitteln die Daten des Benutzers an externe Server und präsentieren (unerwünschte) Werbung. Alles bei Wikipedia nachlesbar. ...
Secure synchronization with wuala
Today I reanimate my Mac (the one you can’t carry in a small bag ;-) and came back to the secure synchronization problem. Woala seems to be a new and good pice of software, developed in Switzerland from some IT guys - you got my trust. Seems to work good for backups, but changing a 5MB file on both machines leads to one version and no complaints about a conflic (the newer silently wins). Thats not ok for my Things Database (todo-list)…
Secure synchronization with OS X launchd and unison
After some weeks of using TeamDrive I felt that I have to get another solution for syncing. TeamDrive isn’t bad, but it isn’t good either. It works most of the time, say 95%. But syncing is a matter of 100% trust, so I can’t live with crashes or “oh, I’ll sync in a few minutes, perhaps”. So I decided to give unison and OS X “Folder Action” a try. But those don’t have a “on file change” event and reading about it many user complain that they aren’t really reliable. So that wouldn’t be better that TeamDrive. ...
Font size in WordPress Plugin CodeColorer
Today I replaced SyntaxHighlighter Evolved simply because he doesn’t support AppleScript. After some tests CodeColorer was the one to take with one problem: The font was really big. After some minutes of searching I replaced the font size given in wp-content/plugins/codecolorer/codecolorer.css from [cc lang=“css” nowrap=“false” first_line=“5”].codecolorer, .codecolorer *, .codecolorer-container, .codecolorer-container * { font: 13px/1.4em Monaco, Lucida Console, monospace }[/cc] to [cc lang=“css” nowrap=“false” first_line=“5”].codecolorer, .codecolorer *, .codecolorer-container, .codecolorer-container * { font: 10px Monaco, Lucida Console, monospace }[/cc]
Creating To Dos from Redmine in Things
I just have had to create a dozen of To Dos in Things based on Redmine Issues. Being lazy I thougth I could spend an hour better in coding than in typing new To Dos, so here it is: # v2010010402 tell application "Firefox" # set myFirefox to properties of front window as list # set theTitle to «class pTit» of front window as text set theTitle to name of front window # Calling display ... within tell application "Firefox" leads to error # -1728 every time you call the script again till firefox is really # closed, so save the vars and end tell end tell if (length of theTitle < 2) then display alert "Could not get the title (empty)" else # save previous delimiters set tid to AppleScript's text item delimiters set AppleScript's text item delimiters to "#" set theSubstring to (text item 2 of theTitle) as text set AppleScript's text item delimiters to " - Issue Tracker xyz" set theName to "#" & (text item 1 of theSubstring) as text # restore delimiters set AppleScript's text item delimiters to tid tell application "Things" set newToDo to make new to do with properties {name:theName} end tell tell application "GrowlHelperApp" set the allNotificationsList to {"Task Created"} set the enabledNotificationsList to {"Task Created"} register as application ¬ "Create Task from Multiple Mail (Growl Enabled)" all notifications allNotificationsList ¬ default notifications enabledNotificationsList ¬ icon of application "Things" notify with name ¬ "Task Created" title ¬ "Task created in Things" description ¬ theName application name "Create Task from Multiple Mail (Growl Enabled)" end tell end if
spamgourmet bleibt Nummer 1
Habe gerade noch ein wenig geforscht, ob es eine vertrauenswürdige Alternative zum vom Ansatz her genialen spamgourmet.com gibt (Problem: spamgourmet kann alle E-Mails grundsätzlich mitlesen, speichern, etc), leider nichts gefunden. Der CCC, das wäre mein favorisierter Betreiber, hat einen etwas anderen Service, anonbox.net. Hier wird die E-Mail Adresse für einige Stunden bereitgehalten, nicht das, was ich suche. Als ich dann festgestellt habe, dass spamgourmet Open Source ist habe ich die weitere Suche eingestellt und bleibe vorerst da. Vielleicht gibts ja irgendwann einen eigenen spamgourmet Dienst..
Dropbox vs ifolder vs TeamDrive
Nachdem ich den Versuch, Dropbox mit EncFS unter Snow Leopard zu betreiben, aufgegeben habe musste eine alternative Lösung her. Im Rennen waren: Dropbox einfach so nutzen, iFolder oder TeamDrive. Gegen Dropbox spricht der externe Server, die Daten landen irgendwo auf irgendeinem Rechner in der “Cloud”. Ich weiß nicht, was mit den Daten geschieht. Vielleicht bin ich paranoid, aber es gefällt mit nicht. iFolder ist von Ansatz her perfekt, OpenSource, Windos und Mac Client. Aber in .Net geschrieben und der Server scheint Probleme unter Linux != SLES zu machen. Auch gibt es keine Lobeshymnen für die Linux und Mac Version. Ungesehen ausgeschieden. ...
Switch from MLO to Things
After month of using MyLifeOrganized (MLO) within Parallels under Mac (and years using it under plain old Windows) I finally made the switch to a native and amazing Mac OS Software: Things. The only reason to wait so long for the switch was the data in MLO. There was no converter and using copy & paste for ~1500 entries was way to much for a lazy programmer. So I wrote a converter and yes - here we are. After processing 1h all entries are there including german umlauts, I love UTF8. Ok, much work to do after the move as I have used a deep hirachy within my outline in MLO, but better than nothing.