FHEM module “Pushover”

To get our outdoor plants through the winter, we bought a greenhouse with a gas heating. This works perfectly when gas heating is turned on and the gas can is not empty. If not, plants take it amiss overnight.

Gartenhaus

This circumstance was my motivation to get alarmed if temperaure falls beyond a certain level, lets say 5 degree in the greenhouse. Because we have 2013 and not 90s, I want to get alarmed via push messages on my Android phone (not via email). The service Pushover provides the great possibiliy to send a push message to a phone for free and easily via an API. So I installed the app on my phone and wrote an actor module in FHEM for it.

Download source here.

Be aware that you have to create a Pushover account and add an app there before going ahead.

Now just copy the module in your FHEM modules directory, enter

reload 98_pushover

and define a Pushover actor, where <name> is the name you want to give the actor; both tokens can be found in your Pushover dashboard.

define <name> pushover <app token> <user token>

An example would be:

define Push pushover aRGcdeZvpBwYQwrezoWr5pdqzTQ3ke u23fgBH6hqj532pd3283rzUY54oq

Push Module
You can now enter the new module in FHEMs web frontend and send a message manually, either using the panel like seen in the screenshot or via command line:

set Push msg hallo

For my personal use case (greenhouse) I created a definition using the THRESHOLD module to get notfied when temperature is lower than 5 degree, where by temperature sensors name is Temp_Greenhouse:

define TempWatcherGreenhouse THRESHOLD Temp_Greenhouse Push | set @ msg "Temp too low!" | set @ msg "Temp OK"

Using a hysteresis, you can control a minimum and maximum temperature; desired – hysteresis is minimum (2) and desired + hysteresis is maximum (32):

set TempWatcherGreenhouse desired 17
set TempWatcherGreenhouse hysteresis 15

3 thoughts on “FHEM module “Pushover””

  1. Hi fantastic blog! Does running a blog similar to
    this take a lot of work? I’ve no knowledge of computer programming but I was hoping
    to start my own blog in the near future. Anyhow, should you have any
    suggestions or techniques for new blog owners please share.
    I know this is off topic nevertheless I just needed to ask.
    Cheers!

    Here is my web-site; search engine

  2. Hallo Andreas,
    ich nutze das Pushover-Modul schon eine Weile und bin sehr glücklich damit. Perfekt wäre es für mich, wenn ich der Nachricht auch noch eine URL mitgeben könnte. Somit könnte ich direkt den Link zum Raum/Device von FHEM mitgeben und auf gewisse Aktionen reagieren zu können. Habe mir den Code schonmal angesehen, aber meine Perl-Kenntnisse sind doch sehr spärlich. Ließe sich die URL-Unterstützung unkompliziert ergänzen?

    Vielen Dank im Voraus und schöne Grüße aus Cottbus

    1. Hi,

      das freut mich :-) Da es schon ein Pushover Modul in FHEM direkt gab, führe ich die Entwicklung an meinem nicht mehr weiter; du kannst ja mal schauen, ob dort eine solche Unterstützung drin ist.

Leave a Reply

Your email address will not be published. Required fields are marked *