mirror of
https://github.com/Dielee/volvo2mqtt.git
synced 2026-08-12 10:49:52 +02:00
Add MQTT autodiscovery for HA MQTT Addon
This commit is contained in:
+6
-1
@@ -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
|
||||
Reference in New Issue
Block a user