Hey all,
I have currently have this working in HassOS, I am mostly through migrating to Docker container in bridge mode and trying to get this back to working again.
I have MQTT broker and HA talking to each other successfully. I currently have MQTT configured by the UI. I am stuck in getting HA/MQTT to talk to the TV.
Using MQTT explorer I can successfully connect to each HA and the TV on their own.
I am fairly certain its to do with where I am putting the hisense.conf and hisense.crt as I can’t actually work out where they are supposed to go. Currently, I have them in folders the same level as my HA /config folder replicating the way it is in HassOS being /share/mosquitto and /ssl. I am assuming either there are specific paths already where these should go or I need to define them somewhere, but I am not exactly sure where.
After arranging my thoughts while writing this I think the question to my problem is, where do I put the hisense.conf file or define the path to it? (As it will then point to the hisense.crt file)
Anyone got this to successfully work with HA in a Docker container, and MQTT in its own contianer?
This is my HA docker config:
homeassistant:
container_name: homeassistant
image: "ghcr.io/home-assistant/home-assistant:stable"
volumes:
- ./data/config:/config
- /etc/localtime:/etc/localtime:ro
restart: unless-stopped
privileged: true
networks:
- proxy
ports:
- 8123:8123
- 1400:1400
- 51827:51827
- 5353:5353
- 21063:21063
devices:
- /dev/ttyUSB0:/dev/ttyUSB0
- /dev/ttyUSB1:/dev/ttyUSB1
- /dev/ttyACM0:/dev/ttyACM0
expose:
- 8123
- 1400
environment:
- TZ=Australia/Sydney
This is my mosquitto docker config:
mqtt:
container_name: mosquitto
image: eclipse-mosquitto:latest
ports:
- 1883:1883
- 9001:9001
network_mode: host
# - proxy
restart: unless-stopped
environment:
- PUID=1000
volumes:
- ./data/mosquitto/config:/mosquitto/config
- ./data/mosquitto/log:/mosquitto/log
- ./data/mosquitto/data:/mosquitto/data
This is my mosquitto.conf:
persistence true
persistence_location /mosquitto/data/
user mosquitto
# Listen on all interfaces
listener 1883 192.168.10.60
#Allow connection without authentication
allow_anonymous true
socket_domain ipv4
log_dest file /mosquitto/log/mosquitto.log
log_dest stdout
password_file /mosquitto/config/pwfile
This is my hisense.conf:
connection hisensemqtt
address 192.168.10.48:36669
username hisenseservice
password multimqttservice
clientid HomeAssistant
bridge_cafile /data/ssl/hisense.crt
bridge_insecure true
bridge_tls_version tlsv1.2
try_private false
start_type automatic
topic +/remoteapp/# both