patrick123
Expert Member
- Joined
- Apr 10, 2005
- Messages
- 2,894
- Reaction score
- 803
Eventually we tend to move from the Raspi setup or simply jump in the deep end with an old computer.
Here, I hope to assist you guys starting a setup without having to search all over to get up and going.
BTW I went the Home Assistant route and not the Hassio docker.
These are the most important to get going.
My OS: Centos 7.7
Mosquitto:
Linking Mosquitto to the Hisense TV MQTT server:
mosquitto.conf:
MySQL/Mariadb:
PHPMyAdmin :
Home Assistant:
NodeRed:
Here, I hope to assist you guys starting a setup without having to search all over to get up and going.
BTW I went the Home Assistant route and not the Hassio docker.
These are the most important to get going.
My OS: Centos 7.7
Mosquitto:
Bash:
mkdir -p /home/shared/docker/mqtt/config
mkdir -p /home/shared/docker/mqtt/log
mkdir -p /home/shared/docker/mqtt/data
docker run --name mqtt --restart=always -p 1883:1883 -p 9001:9001 -tid \
-e TZ=Africa/Johannesburg \
-v /home/shared/docker/mqtt/config:/mosquitto/config:ro \
-v /home/shared/docker/mqtt/log:/mosquitto/log \
-v /home/shared/docker/mqtt/data/:/mosquitto/data/ eclipse-mosquitto
Linking Mosquitto to the Hisense TV MQTT server:
mosquitto.conf:
Code:
port 1883
persistence false
persistence_location /mosquitto/data/
log_dest file /mosquitto/log/mosquitto.log
#################################################
#
# BRIDGE SETUP
#
#################################################
connection hisense
address 192.168.x.x:36669
topic # both
remote_username hisenseservice
remote_password multimqttservice
clientid HomeAssistant
try_private false
start_type automatic
cleansession true
MySQL/Mariadb:
Bash:
mkdir -p /home/shared/docker/mysql/database
docker run -d \
--name="mysql" \
--net=mysql-network \
-e TZ=Africa/Johannesburg \
-e MYSQL_ROOT_PASSWORD=MyPassword \
-v /home/shared/docker/mysql/database:/var/lib/mysql \
-p 3306:3306 mariadb
PHPMyAdmin :
Bash:
docker run --name phpmyadmin \
--net=mysql-network \
-e MYSQL_ROOT_PASSWORD=MyPassword \
-e PMA_HOST="mysql" \
-e PMA_PORT=3306 \
-p 8080:80 \
-d phpmyadmin/phpmyadmin
Home Assistant:
Bash:
mkdir -p /home/shared/docker/homeassistant/config
docker run --init -d --name="home-assistant" \
-e TZ=Africa/Johannesburg \
-v /home/shared/docker/homeassistant/config:/config \
--restart always \
--net=host homeassistant/home-assistant:stable
NodeRed:
Bash:
mkdir -p /home/shared/docker/node-red-data
docker run -d \
-p 1880:1880 \
--restart on-failure \
-e TZ=Africa/Johannesburg \
-v /etc/localtime:/etc/localtime:ro \
-v /home/shared/docker/node-red-data:/data \
--name mynodered \
nodered/node-red
Last edited:

