tellstick-plugin-mqtt-hass icon indicating copy to clipboard operation
tellstick-plugin-mqtt-hass copied to clipboard

Debug info

Open vlumikero opened this issue 2 years ago • 9 comments

Hi,

I’ve had this plugin installed for about a year, but haven’t used it in a while. The plugin seems to have changed its behavior to posting messages with the topic telldus/znet/debug instead of …/binary_sensor. The content is e.g. “deviceState 119, state: 2, value: “.

Is this a setting? Am I missing something?

Thanks, Ville

vlumikero avatar Jul 04 '22 18:07 vlumikero

I updated to the latest release. When I listen to telldus/# it just gets telldus/znet/available: offline.

What am I doing wrong?

vlumikero avatar Jul 04 '22 20:07 vlumikero

Nothing wrong, all state changes are published as homeassistant autodiscovery under homeassistant/(sensor type)/(znet name)/(znet device id)/state

quazzie avatar Jul 04 '22 21:07 quazzie

How should I configure the plugin?

Right now it seems that the autodiscovery works, or at least I think so. The devices show up in HA but they are unavailable.

The autodiscovery message is

{"device": {"model": "Selflearning-Switch:Tellduseverflourish-Outdoor", "identifiers": "xxx", "via_device": "xxx", "name": "Brytare utkastare", "manufacturer": "Comen"}, "name": "Brytare utkastare", "state_topic": "homeassistant/switch/znet/111/state", "command_topic": "homeassistant/switch/znet/111/set", "availability_topic": "telldus/znet/available", "unique_id": "xxx_111"}

vlumikero avatar Jul 07 '22 13:07 vlumikero

The availability topic telldus/znet/available shows unavailable. I’m guessing that’s why my mqtt sensors don’t work. Any ideas what the problem could be?

C6BD9D17-B2B8-4F53-9752-2E542E34C853

vlumikero avatar Jul 07 '22 16:07 vlumikero

@quazzie Any ideas why telldus is shown as unavailable (see above)?

vlumikero avatar Jul 10 '22 05:07 vlumikero

There is some issue with the tellstick not reconnecting to mqtt when connection lost. Maybe the tellstick failed to reconnect? Try rebooting your tellstick.

quazzie avatar Jul 10 '22 10:07 quazzie

It’s shown as offline even immediately after reboot. The states are sent under the homeassistant topic but HA shows the devices as unavailable. I’m guessing the erroneous availability topic throws it off.

vlumikero avatar Jul 10 '22 10:07 vlumikero

That is the old availability topic, new availability topic should be a binary_sensor named "hub" (homeassistant/binary_sensor/(devicename from config)/hub/state). Usually take a couple of minutes from reboot of tellstick until connect to mqtt. If it's connected you should se debug messages coming in on (basetopic)/(devicename)/debug Maybe you are looking at old config that has not been cleared for some reason.

quazzie avatar Jul 10 '22 11:07 quazzie

Here’s my config. It seems like the autodiscovery topic is not used, or perhaps it points to another problem?

CAB7EC88-BA82-489B-A9E4-382B2C4B39EE

This is what’s posted under the base topic. No debug info.

DAAE58A7-86B1-4CA3-86D4-B77737F65B0C

But the devices seem to post info about themselves under the homeassistant topic:

402FA738-4681-4FA7-B84F-30147A5C0CF2

vlumikero avatar Jul 10 '22 11:07 vlumikero