home assistant test
This commit is contained in:
@@ -117,7 +117,17 @@ in
|
||||
auth-header
|
||||
];
|
||||
# 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 = {
|
||||
# Includes dependencies for a basic setup
|
||||
@@ -150,15 +160,14 @@ in
|
||||
auth_header = {
|
||||
debug = false;
|
||||
};
|
||||
|
||||
# Add MQTT integration
|
||||
mqtt = {
|
||||
discovery = true;
|
||||
discovery_prefix = "homeassistant";
|
||||
broker = "localhost"; # Using local Mosquitto broker
|
||||
port = mosquittoPort;
|
||||
# If you set up MQTT with authentication, add username and password here
|
||||
};
|
||||
|
||||
# MQTT with the new configuration format
|
||||
mqtt = {}; # Enable the integration
|
||||
|
||||
"mqtt:broker" = "localhost";
|
||||
"mqtt:port" = 1883;
|
||||
"mqtt:discovery" = true;
|
||||
"mqtt:discovery_prefix" = "homeassistant";
|
||||
|
||||
# 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";
|
||||
@@ -199,7 +208,7 @@ in
|
||||
};
|
||||
|
||||
# Enable and configure Mosquitto MQTT broker
|
||||
services.mosquitto = {
|
||||
mosquitto = {
|
||||
enable = true;
|
||||
listeners = [
|
||||
{
|
||||
@@ -229,7 +238,7 @@ in
|
||||
# MQTT configuration
|
||||
mqtt = {
|
||||
base_topic = "zigbee2mqtt";
|
||||
server = "mqtt://localhost:${mosquittoPort}";
|
||||
server = "mqtt://localhost:1883";
|
||||
# If using authentication:
|
||||
# user = "mqttuser";
|
||||
# password = "your-password";
|
||||
|
||||
Reference in New Issue
Block a user