HomeAssistant
Back to current versionRestore this version

HomeAssistant#

Resources#

Install procedure#

Boot the HP thin client from an Ubuntu Desktop 24.04 usb, and then follow this procedure to install the HA-OS to the built-in SSD.
Then simply remove the USB and reboot.
You get a HomeAssistant prompt on console 1, and a root prompt on console 6 (just press enter)
The web console is available at http://192.168.2.8:8123, first create a user.

Customization#

DSMR#

Add DSMR integration and plug a P1 usb meter in the HP thin client. Also you can enable some initially disabled entities, like voltages and current. You can entities from this integration to the energy dashboard.

Imperial DabMan#

Add the Frontier Silicon integration, that should allow operating the Imperial DABMan internet radio.

Mobile App#

Install the Mobile App integration (or was it already present after vanilla install?), anyway, you should be able to add your phone, but using the HomeAssistant app on your phone.

SolarEdge#

Install the SolarEdge integration. Also add this in the energy dashboard. You do need an API key, I got that straight away as a reply on a mail to mail solar installer SolarHVT. Zie ook deze instructies

Miscellaneous#

Create an empty dashboard ("Rommel"), here you can add stuff (you cannot add stuff to the default set of dashboards)

Internet access to HA#

[options]
	UseSyslog

[openALL]
	sequence    = 4381, 3090, 9672
	seq_timeout = 5
	command     = /sbin/iptables -I INPUT -s %IP% -p tcp -j ACCEPT;/sbin/iptables -t nat -A PREROUTING -p tcp --dport 8123 --source %IP% -j DNAT --to-destination 192.168.2.8:8123
	tcpflags    = syn

[closeALL]
	sequence    = 9672, 3090, 4381
	seq_timeout = 5
	command     = /sbin/iptables -D INPUT -s %IP% -p tcp -j ACCEPT;/sbin/iptables -t nat -D PREROUTING -p tcp --dport 8123 --source %IP% -j DNAT --to-destination 192.168.2.8:8123
	tcpflags    = syn

HACS#

Install HACS (Home Assistant Community Store

SSH access to HA host#

Enable ssh root access to the ha host:

BOSH EasyControl Thermostat#

This github seems outdated, and has dead links.
BOSCH SHC, I think you need a smart home controller for that, which I don't have.
But this home-assistant-bosch-custom-component works. Follow the installation steps, which require you to enter the serial number, access-code/token, and the password, the first 2 can be found on the back of the thermostat, the last is what you configure when installing the thermostat.
I did run into issue 484, stating that the latest (05.04.00) thermostat firmware wasn't supported, but I installed the custom github repo (mentioned in that issue).

Telegram#

See instructions.
Got to Telegram BotFather, create a new bot and note/save the bot token and name. Configure those in the below yaml.

Add this one to configuration.yaml (using the File Editor):

# Telegram Bot
telegram_bot:
  - platform: polling
    api_key: "<redacted>"
    allowed_chat_ids:
      - <redacted>
      - <redacted>

# Notifier
notify:
  - platform: telegram
    name: "harry"
    chat_id: <redacted>     
  - platform: telegram
    name: "group"
    chat_id: <redacted>          

Restart HA, and go to HA Developer Tools actions, and send the following action:

action: notify.group
data:
  message: Yay! A message from Home Assistant.
That should give you a message in Telegram.

Backup#

HA provides it's own backup system, you can configure it with the UI (settings, system, backup). I set it to twice a week with 5 versions, only local backup.
Then I arranged a poor man's remote backup by scheduling scp from my raspberry pi using crontab. I first arranged an ssh keypair and added the public key to ha's root authorized_keys file. crontab:

15 1	* * 1,3	ubuntu  scp -i /home/ubuntu/.ssh/ha_rsa -P 22222 root@192.168.2.8:/mnt/data/supervisor/backup/* /home/ubuntu/ha-backups 2>/tmp/ha-backup.err 1>/tmp/ha-backup.out
15 2	* * 1,3	ubuntu  find /home/ubuntu/ha-backups -type f -mtime +7 -exec rm {} \; 2>/tmp/ha-backup-clean.err 1>/tmp/ha-backup-clean.out

klikaan klikuit (ics2000)#

The lights in my house are operated with klik-aan klik-uit, using an ics2000 controller.
There is this ics2000-hass custom integration.
Copy the suggested yaml configuration with MAC, mail and password.
Then you can add a "light" card to your dashboard.

zaptec charger#

I have a zaptec go charger. There is a nice integration available via HACS, you can just add it, provide your login/password, and you get a ton of entities.

Tibber#

There is also a good Tibber integration, simply add it, fill in your token from https://developer.tibber.com/settings/access-token, and again you get a ton (27) entities.

GotSmart #

gotsmart is a golang binary that reads the usb port (where the p1 meter is connected) and exposes a prometheus exporter.
Since I could stick this P1 usb cable only in one port, I moved it from my raspberry pi to the home assistant box, so it could be read by the DSMR integration.
To continue to have that data also in prometheus on my pi, I am now running gotsmart manually on the home assistant host.
If the machine gets rebooted, you have manually start it:
ssh -p 22222 root@192.168.2.8   # brings you to a root shell on home assistant
nohup /run/gotsmart -listen-address :8082 -device /dev/ttyUSB0 2>&1 >/run/gotsmart.log &  # starts gotsmart

TODO#