Add MQTT autodiscovery for HA MQTT Addon

This commit is contained in:
Linus Dietz
2023-07-03 09:02:21 +02:00
parent 9a6d128cdf
commit 91c50dba05
6 changed files with 44 additions and 10 deletions
+6 -1
View File
@@ -1,4 +1,9 @@
#!/bin/bash
#!/command/with-contenv bashio
export IS_HA_ADDON="true"
export MQTTHOST=$(bashio::services mqtt "host")
export MQTTPORT=$(bashio::services mqtt "port")
export MQTTUSER=$(bashio::services mqtt "username")
export MQTTPASS=$(bashio::services mqtt "password")
python -u main.py