Battery status e-mail
Moderator: RDNZL
Battery status e-mail
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.
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
should also have an option to email if the battery status is older than 24hrs then.
Else you might still miss some stuff
Else you might still miss some stuff
- RDNZL
- Forum Moderator
- Posts: 1008
- Joined: Sun Sep 24, 2006 1:45 pm
- Location: Dordrecht, The Netherlands
- Contact:
Re: Battery status e-mail
It's hardcoded and hidden in the EventLoop.module
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..
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
Will see what I can do shortly..
Regards, Ron.
- RDNZL
- Forum Moderator
- Posts: 1008
- Joined: Sun Sep 24, 2006 1:45 pm
- Location: Dordrecht, The Netherlands
- Contact:
Re: Battery status e-mail
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...
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...
Regards, Ron.
Re: Battery status e-mail
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
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
- RDNZL
- Forum Moderator
- Posts: 1008
- Joined: Sun Sep 24, 2006 1:45 pm
- Location: Dordrecht, The Netherlands
- Contact:
Re: Battery status e-mail
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.
(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.
Regards, Ron.
Re: Battery status e-mail
Hi,
Works perfectly now, many thanks to you.
Regards
Works perfectly now, many thanks to you.
Regards
Re: Battery status e-mail
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 ?
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
Any idea that could help ?
- RDNZL
- Forum Moderator
- Posts: 1008
- Joined: Sun Sep 24, 2006 1:45 pm
- Location: Dordrecht, The Netherlands
- Contact:
Re: Battery status e-mail
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.
Can you post the mail you got, so I can check which pattern it matches.
Regards, Ron.
Re: Battery status e-mail
Sorry for the delay in the answer, haven't been notified for your reply.
Here's the mail I get :
Regards
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
- RDNZL
- Forum Moderator
- Posts: 1008
- Joined: Sun Sep 24, 2006 1:45 pm
- Location: Dordrecht, The Netherlands
- Contact:
Re: Battery status e-mail
This is fixed in revision 633 http://domotiga.nl/changeset/633.
Regards, Ron.
Re: Battery status e-mail
Hello,
Seems to work fine now, many thanks to you.
Regards.
Seems to work fine now, many thanks to you.
Regards.