Bath integration with Home Assistant

The ultimate goal is to be able to monitor my power-wall in the Home Assistant (HA) dashboard. In my case, HA is running on a 10″ Android tablet in the kitchen. First, I have to thank a few people. The first being @Wolf. Absolute Legend helped me solve some issues with Node-red, and basically, without it, the 2-3 day development time would have turned into weeks. A full recognition list is basically a thing of the past! Have fun!

Oh and yes, I could have done all of this installation on Docker/Portainer and I'll most likely go that route, but for now, it's the broken line-by-line version.

Preconditions Ubuntu 20.04 LTS server installed on a virtual machine or PC. A Watchmon Batrium on the same network as your VM/PC. Node-Red Flow (JSON file) Download here. Grafana dashboard (JSON file) Download here. Step 1 - Update/Upgrade Step 2 - Install Grafana Step 3 – Install InfluxDB and Chronograf

Installing INFLUXDB

Installation of CHRONOGRAF (Not essential, but good for troubleshooting.)

CREATE AN INFLUX DATABASE (for use with Grafana)

Step 4 - Install Node-Red

BOOT NODE-RED AT STARTUP

Step 5 - Configure Node-Red

Once Node-Red is installed, we need a few additional packages to allow Node-Red to interpret UDP data coming from Batrium Watchmon. The 3 packages are:

Binary Analyzer (installation via Linux CLI) node-red-contrib-influxdb (installed in Node-Red GUI) node-red-dashboard (installed in Node-Red GUI)

The last two items can be installed via the "Manage Palette" function in the Node-Red settings. The Binary Parser feature must be installed through the CLI.

Now you need to import the stream into Node-Red. You can download the stream here. It should be noted here that this stream is configured to listen for UDP data from Batrium on port 18542. We opened this UDP port when installing Node-Red. This stream is also set up for a 14 longmon chain. If you have more like me, you'll need to modify some of the nodes to reflect that.

red node influx configWe now need to setup some nodes in Node-Red. The main configuration points the red node influx stream to the database we created after installing influxDB. In this tutorial, we have created a database called "batrium" and we know that the inflow port is 8086.

deploy and debugNow we need to deploy the Node stream- Red and check the bug tab for any errors. If you see "TypeErrors", it's usually because the binary parser was not installed correctly. Also, you can enable and disable the green msg.payload debug filters to see received data in the debug window.

Step 6 - Configure Gra...

Bath integration with Home Assistant

The ultimate goal is to be able to monitor my power-wall in the Home Assistant (HA) dashboard. In my case, HA is running on a 10″ Android tablet in the kitchen. First, I have to thank a few people. The first being @Wolf. Absolute Legend helped me solve some issues with Node-red, and basically, without it, the 2-3 day development time would have turned into weeks. A full recognition list is basically a thing of the past! Have fun!

Oh and yes, I could have done all of this installation on Docker/Portainer and I'll most likely go that route, but for now, it's the broken line-by-line version.

Preconditions Ubuntu 20.04 LTS server installed on a virtual machine or PC. A Watchmon Batrium on the same network as your VM/PC. Node-Red Flow (JSON file) Download here. Grafana dashboard (JSON file) Download here. Step 1 - Update/Upgrade Step 2 - Install Grafana Step 3 – Install InfluxDB and Chronograf

Installing INFLUXDB

Installation of CHRONOGRAF (Not essential, but good for troubleshooting.)

CREATE AN INFLUX DATABASE (for use with Grafana)

Step 4 - Install Node-Red

BOOT NODE-RED AT STARTUP

Step 5 - Configure Node-Red

Once Node-Red is installed, we need a few additional packages to allow Node-Red to interpret UDP data coming from Batrium Watchmon. The 3 packages are:

Binary Analyzer (installation via Linux CLI) node-red-contrib-influxdb (installed in Node-Red GUI) node-red-dashboard (installed in Node-Red GUI)

The last two items can be installed via the "Manage Palette" function in the Node-Red settings. The Binary Parser feature must be installed through the CLI.

Now you need to import the stream into Node-Red. You can download the stream here. It should be noted here that this stream is configured to listen for UDP data from Batrium on port 18542. We opened this UDP port when installing Node-Red. This stream is also set up for a 14 longmon chain. If you have more like me, you'll need to modify some of the nodes to reflect that.

red node influx configWe now need to setup some nodes in Node-Red. The main configuration points the red node influx stream to the database we created after installing influxDB. In this tutorial, we have created a database called "batrium" and we know that the inflow port is 8086.

deploy and debugNow we need to deploy the Node stream- Red and check the bug tab for any errors. If you see "TypeErrors", it's usually because the binary parser was not installed correctly. Also, you can enable and disable the green msg.payload debug filters to see received data in the debug window.

Step 6 - Configure Gra...

What's Your Reaction?

like

dislike

love

funny

angry

sad

wow