This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm whether you accept or reject these cookies being set.

A cookie will be stored in your browser regardless of choice to prevent you being asked this question again. You will be able to change your cookie settings at any time using the link in the footer.

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Integrate OP2 with Home Assistant for old ship
#1
I am in the middle of slowly refurbishing a 90 year old trawler, upgrading DC and AC systems, new nav (OP2 now and OpenCPN), installing solar, wind and power management, water management and so on. Summer external works, winter, more internal out of the cold stuff like electrical.

I have installed a home made, approximately 400L/H water maker for approximately €1,200, built water tank level monitoring from nodemcu with ultrasonics and installing new 3 phase inverters, replacing DC and AC systems. As well as that installing sensors and automating heating control and automation.

I chose to use Home Assistant for most of the automation and systems control because the interface is a little friendlier to use for visitors and so on and have a dedicated tablet in the galley and use mobile devices for access onboard and remotely. 

The system currently covers, digital switching of lighting, climate control of an old "dumb" kabola boiler, external CCTV, pulling some basic SignalK information into the the display (also a security measure for remote access as well).

I was using MQTT mainly, but decided to use Node Red (OP <-> HA) integration. It requires slowly building connections / integrations as needed, but it is a clean way of achieving a solution.

The Home Assistant currently has around 500 sensor/entities that can be reported on one way or another, from voltage monitoring at outlets to rules to disable the water pumps automatically if the tank levels get low.

Everything is built on Raspberry Pi's, plus OpenCPN running on laptop as well as OP for redundancy.

The ship had no NMEA onboard when I got it, so will be slowly adding NMEA devices for VHF, AIS and so on, the power system is mastervolt, so will be connecting their Masterbus into NMEA to collect power information from the DC systems.


                   

One thing I found was that using Node Red on the OP device was easier to collect SignalK data that running Node Red on another device. I couldn't find a way to set the server address of the SignalK server to collect the paths from. It was easier to collect them from the localhost and push them into Home Assist and the Node Red HA palette can then create the sensors in HA automatically via the Node Red plugin. Using MQTT required extra steps to manually add the sensors in HA via YAML, which was prone to errors in the templating. Using Node Red, the system is push / pull without needing to manage MQTT.


Anyway, just thought it might be a nice discussion to look at using open source systems integration to run a 90 year old ship
Reply
#2
Craig,

Realy interesting to read this story. Strange that no-one commented on this. My current house is totally operated by Home Assistant and now looking to replace my old instruments on my boat by using Openplotter. I choose Home Assistant because of the Wife Acceptance Factor and the fact that supports so many sensors and devices. You could see home Assistant as a great addon for OpenPlotter.

I would have though that more Geeks on Open plotter would have Home Assistant (or domoticz) in their houses.

One thing that you did not Highlight, but I will definitely use is. giving SIRI or Google voice commands. And Home assistant allows remote access over internet. So with remote acces you can have:
  • Water leak alarm
  • Intruder alarm
  • Camera (CCTV) on the boat.
  • Preheat the boat when you get there.
  • Auto start motor to charge batteries
  • And if you really go that far, remote control your boat Big Grin
Reply
#3
(2020-11-19, 01:32 PM)PieterO Wrote: Craig,

Realy interesting to read this story. Strange that no-one commented on this. My current house is totally operated by Home Assistant and now looking to replace my old instruments on my boat by using Openplotter. I choose Home Assistant because of the Wife Acceptance Factor and the fact that supports so many sensors and devices. You could see home Assistant as a great addon for OpenPlotter.

I would have though that more Geeks on Open plotter would have Home Assistant (or domoticz) in their houses.

One thing that you did not Highlight, but I will definitely use is. giving SIRI or Google voice commands. And Home assistant allows remote access over internet. So with remote acces you can have:
  • Water leak alarm
  • Intruder alarm
  • Camera (CCTV) on the boat.
  • Preheat the boat when you get there.
  • Auto start motor to charge batteries
  • And if you really go that far, remote control your boat Big Grin

Hi, 

It is and has been a steep learning curve to get so many different systems and protocols working together reliably.

I am setting up bilge monitoring and leak alarm with zwave sensor and I'm also currently working on a ESP32 bilge activation and duty cycle sensor. I'm using ESPHome to program the ESP with an optocoupler 24v to 3.3v to check when the float switch opens and for how long. Also a current sensor to validate if the bilge pump is actually running and not failed when the float switch is open. I'm working on adding a leak sensor to this ESP, so it will activate if the bilge pump fails and alarm everything to phone, siren and so on. Basically redundancy for the z-wave leak sensor.

I have cctv into HA via aarlo community adding, but the arlo cameras are unreliable to be honest and they do of the base station frequently. I'm considering wired poe cameras instead, but that's for another day.

Have a bunch of motion and door sensors that alarm when armed or outside of a geofence with our mobiles using the HA app. Works petty well and good notifications that automatically turn on lights and activate recording. 

With the boat preheat, it's manual, found automation was av but unreliable did to figuring it the logic that you were heading home instead of leaving the office and going somewhere else. Have a Kabola diesel heater connected to a z-wave thermostat that can be remotely set to any desired temperature and reports current temp as well. Works a treat, set the temp and nice and warm when you get back.

I use Google Assistant for voice and expose the HA via Nabu Casa for voice integration, but find i hardly use it. The"good might" routine is useful though to turn everything off, set the cameras and alarm and thermostat to night mode all in one go though. 

My thoughts at it would be really nice if there was an official HA integration for OpenPlotter, would make life easier. I moved the boat a couple of weeks ago and OpenCPN on the laptop with all the data from around the boat such as engine room temp and so on was useful for sure.

My thoughts are integration between so many products and protocols is still a couple of years away from being amazing in terms of reliability. Everything still needs a lot of nursing. For example, ran and apt-update on OpenPlotter a couple of months ago and it broke and needed to be restored from backup. Things like this shouldn't really happen these days IMHO. Software updates should be reliable and not break things. However, it's more of a hobby than anything, but trying to explain how things work is extremely complicated and it would be nice if I ever sell the boat that a novice can figure it out, but at the moment, that's not plausible.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)