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.
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.
[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
(Home Assistant Community Store
:
seems outdated, and has dead links.
, I think you need a smart home controller for that, which I don't have.
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.
, stating that the latest (05.04.00) thermostat firmware wasn't supported, but I installed the custom github repo
(mentioned in that issue).
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.
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
.
, and again you get a ton (27) entities.
is a golang binary that reads the usb port (where the p1 meter is connected) and exposes a prometheus exporter.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