home assistant test

This commit is contained in:
mjallen18
2025-02-26 20:02:03 -06:00
parent 627ecd94b6
commit 91bb8e087d

View File

@@ -117,7 +117,17 @@ in
auth-header auth-header
]; ];
# use postgresql instead of sqlite # use postgresql instead of sqlite
extraPackages = ps: with ps; [ psycopg2 numpy hassil pyturbojpeg ]; extraPackages = ps: with ps; [
psycopg2
numpy
hassil
pyturbojpeg
paho-mqtt
pychromecast
pyatv
python-otbr-api
brother
];
config = { config = {
# Includes dependencies for a basic setup # Includes dependencies for a basic setup
@@ -151,14 +161,13 @@ in
debug = false; debug = false;
}; };
# Add MQTT integration # MQTT with the new configuration format
mqtt = { mqtt = {}; # Enable the integration
discovery = true;
discovery_prefix = "homeassistant"; "mqtt:broker" = "localhost";
broker = "localhost"; # Using local Mosquitto broker "mqtt:port" = 1883;
port = mosquittoPort; "mqtt:discovery" = true;
# If you set up MQTT with authentication, add username and password here "mqtt:discovery_prefix" = "homeassistant";
};
# https://www.home-assistant.io/integrations/ota_updater/ # https://www.home-assistant.io/integrations/ota_updater/
zha.zigpy_config.ota.z2m_remote_index = "https://raw.githubusercontent.com/Koenkk/zigbee-OTA/master/index.json"; zha.zigpy_config.ota.z2m_remote_index = "https://raw.githubusercontent.com/Koenkk/zigbee-OTA/master/index.json";
@@ -199,7 +208,7 @@ in
}; };
# Enable and configure Mosquitto MQTT broker # Enable and configure Mosquitto MQTT broker
services.mosquitto = { mosquitto = {
enable = true; enable = true;
listeners = [ listeners = [
{ {
@@ -229,7 +238,7 @@ in
# MQTT configuration # MQTT configuration
mqtt = { mqtt = {
base_topic = "zigbee2mqtt"; base_topic = "zigbee2mqtt";
server = "mqtt://localhost:${mosquittoPort}"; server = "mqtt://localhost:1883";
# If using authentication: # If using authentication:
# user = "mqttuser"; # user = "mqttuser";
# password = "your-password"; # password = "your-password";