MQTT and Husdata H66 in Home Assistant

If you have a smart home with a geothermal well feeding a heatpump from IVT or some of the other suppliers, the chance is good that Husdata www.husdata.se has a IoT device for it so you can monitor your heating system in your smart home system.

To set up MQTT for Home assistant, you need to go to Addons, backups and supervisor. Find Mosquitto and install it. Then go to the info tab and select start on boot so it starts again on a boot. Go to configuration and take a note of the network ports for later.

Reboot HA

Then goto Devices and services, check that you see mosquitto

Then you need to set up a new user in HA for mqtt: go to people and zones / select the users TAB. Make a new user with usernamexyz and a safe and long pw. of your choice.

Now go into your husdata H66 web gui on the ip it resides on. Goto the Config tab. Find the MQTT settings. You need to point to the IP of your HA server. Also now give the username and password you did set up in HA earlier.

My MQTT settings look something like this:

Now check the log of the husdata H66. If it says something like “08:03:00 MQTT subscribing to: MAC ADDRESS OF THE H66/HP/CMD/#” then you are good. It will try to connect several times, however after some tries it will go over to try once per hour. Then its best with a reboot of the H66 to speed it up unless you are very patient in your fault finding process.

Now go to the HA user interface: Go to devices and services. Find the mosquitto broker “tile”. If you now see that there are xx entities available in that tile like below, you are good.

Click on all the entities link in the tile and select all the entities you want to get data for. When you are done, click ENABLE SELECTED.

Now do a reboot of both HA and the H66 (it doesn’t hurt).

Now you should be ready to make dashboards and use the sensors.
Also, check this tutorial out: https://learn.adafruit.com/set-up-home-assistant-with-a-raspberry-pi/mqtt-setup

(Disclaimer: you do everything on your own responsibility. The information given may be incorrect. By interfacing to your heat-pump you may change settings that may lead to overheating and/or damage of your heatpump, loss of heat or other problems. If you do not know what you are doing, don’t do it).

Wifi setup for Home Assistant via COMMAND LINE

Power on HA

Have a screen and a keyboard connected

When you see the ha> prompt enter login

Then do this:

nmcli radio

radio

Now scan and list available wifi access:

nmcli device wifi rescan

nmcli device wifi

wifi list

Connect to wifi:

Use quotes around your ssid and password:

nmcli device wifi connect "YOUR_SSID" password "YOUR_WIFI_PASSWORD"

This will try to connect to your SSID and will generate a network profile for you if successfull.
The output will be similar to
"Device 'wlan0' successfully activated with...."

Then check your connections again:

nmcli con show

con show

You should be seeing at least two profiles and both green.

If you are seeing some profiles you’d like to get rid of you can remove them using:

nmcli connection delete CONNECTION_NAME

delete con

These may have two separate ip addresses on your network: one for ethernet, one for wifi.
You can check the ip addresses using:

ip addr show

Now connect to http(s)://your_wifi_ip:8123 in your browser.

Credit goes to: https://community.home-assistant.io/t/guide-connecting-pi-with-home-assistant-os-to-wifi-or-other-networking-changes/98768

Tytera TYT-390 GPS setup

To set up GPS on the TYT-390, make an own contact with name GPS and call ID 5057

 

 

 

 

 

Then set up Destination ID: GPS under GPS settings. Set the interval to 60s or more. (Not too often as GPS packets take repeater capacity)

 

 

 

 

 

 

 

Now select “GPS system 1” under the channels you want GPS enabled on. I have made a set of channels with GPS on and a set of channels with GPS off.

 

 

 

 

 

 

In Brandmeister dashboard, go to Services/Self Care and select chinese radio. Check that your call and your name looks OK (you need an account at Brandmeister).

 

 

 

Then program your radio with the codeplug with the radio settings above.

Set your radio outside for several minutes to achieve GPS lock (can take quite some time).

You should see a globe symbol show up without the red ring (red ring means no GPS lock).

Then you can check aprs.fi for your callsign.