WaterDetector HMS100WD sends an e-mail if water is detected

Begonnen von honiko, 01 März 2013, 15:50:55

Vorheriges Thema - Nächstes Thema

honiko

HMS100WD: send an e-mail if a defined event (defined by <pattern>) happens (1.0)
(for translation use google translator)

environment

AVM-Fritzbox 7390 (FB)
CUL 3.3
fhem 5.3
fhem-image for AVM-Fritzbox 7390

HMS100WD (868 MHz module for Water Detecting, HMS-System)

assumption

proper connection between HMS100WD and CUL (or other fhem central-device in connection with FB)
(Should be created automatically if fhem autocreate is working;
recommendation: put in the batteries close to fhem central-device, so you have the best environment for tests)

steps

1. activate "push e-mail service" in AVM-Fritzbox

2. check the HMS100WD  messages in the logfile:
xxx
...
(HMS100WD is sending 4 different statusmessages every 30 min.)

3. define rule with notify
e.g.:  define Water_check notify HMS100WD_0a10:W.*.on { FB_mail('youremailadress@@examplefritzbox.com' (@@examplefritzbox.com'),'Meldung von FHEM','Wasserdetector Keller meldet: Wasserstand zu hoch') }
(because of perl use 2 @@ in the e-mail-address, otherwise the interpretation would be wrong, the e-mail  command 'FB_mail' works since fhem-image for FB 7390 Oct. 2012)

4. eventually create another rule with the same syntax for checking the battery status

5. check the behaviour with the trigger command (e.g. trigger HMS100WD_0a10:Water detect: on), now you should receive an e-mail-massage with your predefined message

honiko

und nicht vergessen;

3.a   set             use FritzBoxUtils                 e.g.    in     99_Utils.pm