Closed fredrike closed 4 years ago
Pushing a online
state makes it work again.
mosquitto_pub -t telldus/telldus/available -r -m "online"
Edit:
Sensors & states status works but not changing switches. I would guess that onConnect
isn't fired correctly: https://github.com/quazzie/tellstick-plugin-mqtt-hass/blob/8b3d33af29b7b3a8a0d242048f04d6ad758d9c19/hass_client/Client.py#L633
Uhm, this is so strange. Works as intended here, onConnect gets called on reconnect and available set to online. Killed the connection several times and available get set to offline, then everytime it reconnects it calls onConnect and sets available to online again. I'll try to debug some more and see what i can find.
It actually might be some incompatibilities between my mqtt-server ..
I'm running https://hub.docker.com/_/eclipse-mosquitto with this configuration, perhaps it is something that causes issues..
password_file /mosquitto/config/passwd_file
allow_anonymous false
persistence true
persistence_file mosquitto.db
persistence_location /mosquitto/data/
autosave_on_changes true
It is definitely my mosquitto server that is acting weird. How have you configured your mqtt server and which are you running?
For what it's worth: I'm running the (Eclipse) Mosquitto broker offered as an official add-on to hass.io (running all of it in Docker on an Intel NUC). I have not noticed any problems with the mqtt server.
My configuration of the Mosquitto broker add-on is:
logins:
- username: <username>
password: <password>
anonymous: false
customize:
active: false
folder: mosquitto
certfile: fullchain.pem
keyfile: privkey.pem
require_certificate: false
I run mosquitto in my host system. apt get mosquitto, default config.
Cool!
I installed the https://github.com/home-assistant/hassio-addons/tree/master/mosquitto addon and it seems to be running much more stable now.
So, there is an issue with the configuration I had and the official libraries..
I still have the same behavior.
Restarted my mqtt broker and the devices came alive again..
I still have not found anything. You got any new info ?
It is on my mqtt side so will close this..
For some reason the telldus publish
telldus/telldus/available offline
and don't seem to update toonline
.My telldus is apparently
available
(as it publish data on MQTT)..Originally posted by @fredrike in https://github.com/quazzie/tellstick-plugin-mqtt-hass/issues/9#issuecomment-598650462