From 606035432b2d17ad25e0cb1c653d7db05840b498 Mon Sep 17 00:00:00 2001 From: Richie Cahill Date: Wed, 21 Jan 2026 23:13:28 -0500 Subject: [PATCH] home assistant updates --- systems/brain/services/home_assistant.nix | 11 +- .../home_assistant/dashboard_overview.yaml | 122 ++++++++++++++++++ .../home_assistant/victron_modbuss.yaml | 14 +- systems/jeeves/services/home_assistant.nix | 5 - 4 files changed, 132 insertions(+), 20 deletions(-) create mode 100644 systems/brain/services/home_assistant/dashboard_overview.yaml diff --git a/systems/brain/services/home_assistant.nix b/systems/brain/services/home_assistant.nix index 14155da..0ea209e 100644 --- a/systems/brain/services/home_assistant.nix +++ b/systems/brain/services/home_assistant.nix @@ -12,14 +12,7 @@ enable = true; openFirewall = true; config = { - http = { - server_port = 8123; - server_host = [ - "192.168.90.35" - "192.168.95.35" - "127.0.0.1" - ]; - }; + http.server_port = 8123; homeassistant = { time_zone = "America/New_York"; unit_system = "us_customary"; @@ -27,6 +20,7 @@ packages = { victron_modbuss = "!include ${./home_assistant/victron_modbuss.yaml}"; battery_sensors = "!include ${./home_assistant/battery_sensors.yaml}"; + gps_location = "!include ${./home_assistant/gps_location.yaml}"; }; }; recorder = { @@ -72,6 +66,7 @@ py-improv-ble-client # for esphome pymodbus # for modbus pyopenweathermap # for weather + pymetno # for met.no weather uiprotect # for ubiquiti integration unifi-discovery # for ubiquiti integration ]; diff --git a/systems/brain/services/home_assistant/dashboard_overview.yaml b/systems/brain/services/home_assistant/dashboard_overview.yaml new file mode 100644 index 0000000..4057950 --- /dev/null +++ b/systems/brain/services/home_assistant/dashboard_overview.yaml @@ -0,0 +1,122 @@ +title: Van Overview +views: + - title: Overview + path: overview + type: sections + sections: + # Battery Status Section + - type: grid + title: Battery Status + cards: + - type: gauge + entity: sensor.jk0_soc + name: Battery 0 + min: 0 + max: 100 + severity: + green: 50 + yellow: 20 + red: 0 + needle: true + + - type: gauge + entity: sensor.jk1_soc + name: Battery 1 + min: 0 + max: 100 + severity: + green: 50 + yellow: 20 + red: 0 + needle: true + + - type: entity + entity: sensor.jk0_total_voltage + name: Batt 0 Voltage + + - type: entity + entity: sensor.jk1_total_voltage + name: Batt 1 Voltage + + # Solar Production Section + - type: grid + title: Solar Production + cards: + - type: gauge + entity: sensor.solar_wattage + name: Solar Now + min: 0 + max: 400 + severity: + green: 100 + yellow: 50 + red: 0 + needle: true + + - type: entity + entity: sensor.solar_yield_today + name: Today's Yield + + - type: entity + entity: sensor.estimated_energy_production_today + name: Forecast Today + + - type: entity + entity: sensor.estimated_energy_production_tomorrow + name: Forecast Tomorrow + + # Environment Section + - type: grid + title: Van Environment + cards: + - type: entity + entity: sensor.environment_temperature + name: Inside Temp + + - type: entity + entity: sensor.environment_humidity + name: Inside Humidity + + - type: entity + entity: sensor.current_weather_temperature + name: Outside Temp + + - type: entity + entity: sensor.current_weather_humidity + name: Outside Humidity + + - type: entity + entity: sensor.current_weather_condition + name: Weather + + # Charger Status Section + - type: grid + title: Charger + cards: + - type: entity + entity: sensor.charger_dc_wattage + name: Charging Power + + - type: entity + entity: sensor.charger_charge_state + name: Charge State + + - type: entity + entity: sensor.charger_dc_wattage_daily + name: Charged Today + + # Location Section + - type: grid + title: Location + cards: + - type: entity + entity: sensor.gps_location + name: Current Location + + - type: entity + entity: sensor.gps_speed + name: Speed + + - type: entity + entity: binary_sensor.gps_fix_available + name: GPS Fix diff --git a/systems/brain/services/home_assistant/victron_modbuss.yaml b/systems/brain/services/home_assistant/victron_modbuss.yaml index 068095a..968c692 100644 --- a/systems/brain/services/home_assistant/victron_modbuss.yaml +++ b/systems/brain/services/home_assistant/victron_modbuss.yaml @@ -77,7 +77,7 @@ modbus: # GPS - name: GPS Latitude - slave: 1 + slave: 100 address: 2800 input_type: holding data_type: int32 @@ -87,7 +87,7 @@ modbus: unique_id: gps_latitude - name: GPS Longitude - slave: 1 + slave: 100 address: 2802 input_type: holding data_type: int32 @@ -97,7 +97,7 @@ modbus: unique_id: gps_longitude - name: GPS Course - slave: 1 + slave: 100 address: 2804 input_type: holding data_type: uint16 @@ -108,7 +108,7 @@ modbus: unique_id: gps_course - name: GPS Speed - slave: 1 + slave: 100 address: 2805 input_type: holding data_type: uint16 @@ -119,7 +119,7 @@ modbus: unique_id: gps_speed - name: GPS Fix - slave: 1 + slave: 100 address: 2806 input_type: holding data_type: uint16 @@ -128,7 +128,7 @@ modbus: unique_id: gps_fix - name: GPS Satellites - slave: 1 + slave: 100 address: 2807 input_type: holding data_type: uint16 @@ -137,7 +137,7 @@ modbus: unique_id: gps_satellites - name: GPS Altitude - slave: 1 + slave: 100 address: 2808 input_type: holding data_type: int32 diff --git a/systems/jeeves/services/home_assistant.nix b/systems/jeeves/services/home_assistant.nix index 9938ae9..cf5e76a 100644 --- a/systems/jeeves/services/home_assistant.nix +++ b/systems/jeeves/services/home_assistant.nix @@ -18,11 +18,6 @@ in config = { http = { server_port = 8123; - server_host = [ - "192.168.99.14" - "192.168.90.40" - "127.0.0.1" - ]; use_x_forwarded_for = true; trusted_proxies = "127.0.0.1"; };