Page 1 of 1
Battery status e-mail
Posted: Thu May 26, 2011 12:32 pm
by djo28
Hi,
I have searched the option but haven't found it.
I'd like to know if there is a way to stop Domotiga from sending the baterry status every night at midnight.
If it could only send the mail when battery is empty on one of the sensors. I don't need to know that the batteries are ok every morning when I wake up.
Maybe I just have s*** in the eyes and don't see the option
Thanks in advance.
Re: Battery status e-mail
Posted: Thu May 26, 2011 4:10 pm
by wwolkers
should also have an option to email if the battery status is older than 24hrs then.
Else you might still miss some stuff

Re: Battery status e-mail
Posted: Thu May 26, 2011 6:17 pm
by RDNZL
It's hardcoded and hidden in the EventLoop.module
Code: Select all
' mail list of devices with low battery
' and fetch random quote for this day
IF Main.bNew_Day THEN
Devices.MailBatteryStatus()
Main.GlobalVar["Tagline"] = Main.Random_Text("remarks_tags")
END IF
I have to create configurable event actions for things like this, same for doorbell, postal mail sensor, planttalk etc...
Will see what I can do shortly..
Re: Battery status e-mail
Posted: Thu May 26, 2011 6:52 pm
by RDNZL
Ok, removed the code.
You can now use an condition action for this, and select type of report.
Just create an event with a time trigger when to report and attach a condition like the example in the screenshot below.
More build-in condition actions like this will follow soon...

- MailBatteryStatus Condition.png (38.32 KiB) Viewed 10869 times
Re: Battery status e-mail
Posted: Fri May 27, 2011 11:11 am
by djo28
Hi,
Thanks, that's one quick answer !
I updated to version 0.1.197 but can't see the "Status" option under "Action" in the condition window.
Regards
Re: Battery status e-mail
Posted: Fri May 27, 2011 12:00 pm
by RDNZL
Not all code changes are reflected in the binarie files on svn.
(DomotiGa.gambas and DomotiGaServer.gambas)
You can recompile them yourself when you load the project in Gambas IDE.
I have updated the binaries now, so you can just download and run them.
Re: Battery status e-mail
Posted: Sat May 28, 2011 10:51 am
by djo28
Hi,
Works perfectly now, many thanks to you.
Regards
Re: Battery status e-mail
Posted: Tue Jun 14, 2011 12:08 pm
by djo28
I think I talked too quickly ...
When I tested I had one device with its battery empty so I did get an email but this week-end I changed the battery and now it still sends an email saying no devices matches condition battery empty.
Please DomotiGa, that's fine but in this case don't send an email
Did I do something wrong ?
Re: Battery status e-mail
Posted: Fri Jul 08, 2011 11:53 am
by djo28
Any idea that could help ?
Re: Battery status e-mail
Posted: Tue Jul 12, 2011 11:18 am
by RDNZL
If any device is found with a battery status of empty it's added to the msg body, so having an empty msg is strange.
Can you post the mail you got, so I can check which pattern it matches.
Re: Battery status e-mail
Posted: Thu Aug 04, 2011 10:11 am
by djo28
Sorry for the delay in the answer, haven't been notified for your reply.
Here's the mail I get :
Code: Select all
No Devices found with Battery status that matches selection 'empty'
--
Powered by DomotiGa V0.1.197
Regards
Re: Battery status e-mail
Posted: Thu Aug 11, 2011 1:34 pm
by RDNZL
Re: Battery status e-mail
Posted: Fri Aug 12, 2011 11:24 am
by djo28
Hello,
Seems to work fine now, many thanks to you.
Regards.