I've been working on integrating a DC power meter for monitoring my battery into a Domoticz install for our RV which runs on an Rpi 3. Attached is the LUA script I've developed. Here's some information on how to use it:
You can purchase a BT-DCPM from https://www.thornwave.com/products-btdcpm.
After you install it with an appropriate shunt on your battery-based power system, configure the monitor using Thornwave's app for your particular battery type and size. Then follow the instructions at the top of the script to get Bluetooth running and add your sensors to Domoticz.
I've updated my script as the original did not give me notifications. Turns out the UpdateDevice method I was using updated the Domoticz database itself and did not allow it to process the value and decide to send the notification. I changed the method to "OpenURL" and used JSON to update the values and I now get notifications!
Here is the updated script, note the additional variable of the IP address:
Here's a screenshot of the Utility sensors:
DC Power Meter for Battery Monitoring using BT-DCPM and Rpi 3
Moderator: leecollings
-
- Posts: 4
- Joined: Sunday 20 May 2018 8:09
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 3.8.8153
- Contact:
DC Power Meter for Battery Monitoring using BT-DCPM and Rpi 3
- Attachments
-
- RVBattery.JPG (131.72 KiB) Viewed 2153 times
-
- RVBattery.JPG (131.72 KiB) Viewed 2154 times
Last edited by MobileDomUser on Friday 22 June 2018 4:43, edited 2 times in total.
- EdddieN
- Posts: 510
- Joined: Wednesday 16 November 2016 11:31
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 4.9700
- Location: Scotland
- Contact:
Re: DC Power Meter for Battery Monitoring using BT-DCPM and Rpi 3
Nice!
The connection is via Bluetooth to the RPI?
The connection is via Bluetooth to the RPI?
11101101 - www.machinon.com
-
- Posts: 4
- Joined: Sunday 20 May 2018 8:09
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 3.8.8153
- Contact:
Re: DC Power Meter for Battery Monitoring using BT-DCPM and Rpi 3
Sorry for the late reply, evidently I don't have my notifications correct. Yes, it is Bluetooth.
-
- Posts: 4
- Joined: Sunday 20 May 2018 8:09
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 3.8.8153
- Contact:
Re: DC Power Meter for Battery Monitoring using BT-DCPM and Rpi 3
I've updated my script as the original did not give me notifications. Turns out the UpdateDevice method I was using updated the Domoticz database itself and did not allow it to process the value and decide to send the notification. I changed the method to "OpenURL" and used JSON to update the values and I now get notifications!
Updated script is available in the first post.
Updated script is available in the first post.
Re: DC Power Meter for Battery Monitoring using BT-DCPM and Rpi 3
That is very sweet! I built a voltage monitor to run off wifi but I am still working out the bugs, this looks like a well built solution.
Who is online
Users browsing this forum: No registered users and 1 guest