Home Assistant : Q&A, Tips & Tricks, Your Configs

And onto the NAS - going to have to figure something out here, checking smartctl - the drives have over 80000h+ uptime. Not 100% sure what though. 20TB of data.

Rather embarrassing - but - I just found around 19Tb of "wipeable" content. Setup Radarr in a container - but didn't really like it, so forgot about it, and its been doing its thing for years to a folder deep in a fileshare....
 
Rather embarrassing - but - I just found around 19Tb of "wipeable" content. Setup Radarr in a container - but didn't really like it, so forgot about it, and its been doing its thing for years to a folder deep in a fileshare....
How much storage do you have man ?!
 
Also need to do some cleanup on media I see. Vol2 is only media, Vol1 is the proxmox stuff like backups. At least this is separate from the proxmox server. Some things like home assistant configs are at least also on github. Just not the secrets.

Screenshot 2025-03-20 at 8.20.47 PM.png
 
I'm stuck with this until you guys can convince my Mrs to get a dedicated something to run PBS.
Not trying to convince you or anything but you can get a pretty decent cheap Lenovo Tiny/Dell Micro/HP Mini online which should do just fine.

A strong-ish CPU is needed for deduplication so something like a SBC would likely be too weak.

I myself am contemplating whether I should keep the EliteDesk 705 G5 that I recently bought or sell it again. I have a M720q that I can use for PBS (once my Optiplex 3000 Thin Client comes in I will migrate my Proxmox stuff onto it). Then I still have 3x Pi's floating around here...I have a PC hardware addiction :(
 
Not trying to convince you or anything but you can get a pretty decent cheap Lenovo Tiny/Dell Micro/HP Mini online which should do just fine.

A strong-ish CPU is needed for deduplication so something like a SBC would likely be too weak.

I myself am contemplating whether I should keep the EliteDesk 705 G5 that I recently bought or sell it again. I have a M720q that I can use for PBS (once my Optiplex 3000 Thin Client comes in I will migrate my Proxmox stuff onto it). Then I still have 3x Pi's floating around here...I have a PC hardware addiction :(
3xPis = Adguard or PiHole cluster :) - you know you want to :cool:

The EliteDesks are decent - if you do decide to sell it please ping me.
 
3xPis = Adguard or PiHole cluster :) - you know you want to :cool:

The EliteDesks are decent - if you do decide to sell it please ping me.
I have one Pi running one of my Home Assistant screens in 'kiosk' mode (kinda a permanent dashboard of my PV system) and I also have a backup AdGuard Home on it for if when I fiddle with Proxmox and kill DNS in my network. The other Pi is unfortunately a Pi 1 Model B+ so it's a bit too lightweight for anything I want to do with it, but I will see if I can find a use for it.

I'll maybe see in the next few days if I decide to keep it - will drop you a PM :)
 
In one of the recent updates, home assistant added a self sufficiency card on the energy dashboard. The card has value in it but only updates at the top of the hour.

I wrote the below as a template, it does return the correct self sufficiency value and updates in real-time. Just wondering is there a better way of writing it?

{% set var1 = states('sensor.esphome_xxxx_total_daily_solar_kwh','Total') | float %}
{% set var2 = states('sensor.esphome_xxxx_battery_charge_day','Total') | float %}
{% set var3 = states('sensor.esphome_xxxx_battery_discharge_day','Total') | float %}
{% set var4 = states('sensor.esphome_xxxx_grid_import_day_buy','Total') | float %}

{{ (((var1 + (var2 - var3)) / (var1 + (var2 - var3) + var4)) * 100) | int(0) }}
 
In one of the recent updates, home assistant added a self sufficiency card on the energy dashboard. The card has value in it but only updates at the top of the hour.

I wrote the below as a template, it does return the correct self sufficiency value and updates in real-time. Just wondering is there a better way of writing it?

{% set var1 = states('sensor.esphome_xxxx_total_daily_solar_kwh','Total') | float %}
{% set var2 = states('sensor.esphome_xxxx_battery_charge_day','Total') | float %}
{% set var3 = states('sensor.esphome_xxxx_battery_discharge_day','Total') | float %}
{% set var4 = states('sensor.esphome_xxxx_grid_import_day_buy','Total') | float %}

{{ (((var1 + (var2 - var3)) / (var1 + (var2 - var3) + var4)) * 100) | int(0) }}
I used it and substituted my sensors and seems to work fine.

I did modify it slightly (note: I am not a dev, but ChatGPT made some recommendations), here is what I came up with:


Changed float conversions to float(0) to prevent errors when sensors return None.
Added a safeguard (if denominator > 0 else 0) to prevent division by zero.
Assigned calculations to numerator and denominator for clarity.

YAML:
template:
  - sensor:
      - name: "Solar Self-Sufficiency Percentage"
        unit_of_measurement: "%"
        state: >
          {% set var1 = states('sensor.esphome_xxxx_total_daily_solar_kwh') | float(0) %}
          {% set var2 = states('sensor.esphome_xxxx_battery_charge_day') | float(0) %}
          {% set var3 = states('sensor.esphome_xxxx_battery_discharge_day') | float(0) %}
          {% set var4 = states('sensor.esphome_xxxx_grid_import_day_buy') | float(0) %}

          {% set numerator = var1 + (var2 - var3) %}
          {% set denominator = numerator + var4 %}

          {{ (numerator / denominator * 100) | int(0) if denominator > 0 else 0 }}
 
Anyone saving their Frigate recordings to an NVME SSD? Any issues with writes such as write cache being exhausted? My current 6x cameras results in around 200GB per day and 2TB SSDs with 1200TBW should last many years before running out of writes.

I'm thinking of moving my docker containers (incl Frigate) to a NUC with better compute power than my current server. My current server will remain but just be used for HDD storage (I cannot upgrade it without replacing the motherboard and I am limited to mini ITX). Since the NUCs do not support HDDs and I want to rather write Frigate recordings locally I would need to use an NVME SSD.
 
has anyone successfully integrated one of these (https://www.geewiz.co.za/home-electronics/271050-geewiz-tuya-energy-monitor-with-2x-80a-sensors.html) into homeassistant?
On smartlife app I am able to see both sensors but homeassistant only sees the one CT. interestingly on TuyaIOT I can only see DPIDS for one CT too, so not sure how smartlife app can see both CTs.

TuyaIOT sees:
"status": [
{
"code": "switch_1",
"value": false
},
{
"code": "switch_2",
"value": false
},
{
"code": "add_ele",
"value": 100
},
{
"code": "cur_current",
"value": 0
},
{
"code": "cur_power",
"value": 0
},
{
"code": "cur_voltage",
"value": 2443
}
attached images from homeassistant device page and smartlife appCT1.jpgCT2.jpgHACT.jpg
 
Last edited:
Can someone make this and tell me if it was worth it? :ROFL:
That looks good, but I went somewhat simpler. I already had an underutilised One For All urc7980 remote. I programmed the "Blu-ray" program to a Samsung Blu-ray's IR codes.

I built an IR receiver using an ESP32, then programmed it to recognise the Blu-ray signals. Next I created a bunch of automations. Eg:
If the Denon amp is on PC, the applicable automation triggers button actions on the home theatre PC, via HASS.
If the amp is on Media Player, it controls the android TV box
Etc...

There are also buttons for the lounge lights, fan, etc.

This works a treat. You actually only need the one "device" programmed on the remote, with a few of the buttons reserved for switching between the various media devices. The "Play/Pause" button, for example, controls whatever device the amp's input is set to.
 
Just for my sanity. The following can be used directly with a garage door, without modification:

i,.e. set to itching in app - 12v in results in a 12v trigger out for itching period.
 
Just for my sanity. The following can be used directly with a garage door, without modification:

i,.e. set to itching in app - 12v in results in a 12v trigger out for itching period.
You won't get open closed state? I see no gpio pins on it
 
Just for my sanity. The following can be used directly with a garage door, without modification:

i,.e. set to itching in app - 12v in results in a 12v trigger out for itching period.

Rather go with Shelly Plus 1 and a wired sensor
 
Top
Sign up to the MyBroadband newsletter