quazzie / tellstick-plugin-mqtt-hass

Plugin for tellstick, connect to homeassistant via mqtt with autodiscovery.
39 stars 7 forks source link

Cannot save config #29

Open henripalmroth opened 3 years ago

henripalmroth commented 3 years ago

Tried today to migrate to latest (rewritten) version of this plugin. Uninstalled old version. Rebooted. Installed latest. I guess the main problem is that I cannot save my configuration. After reboot it is always reverting to hatest topic with ztest device name. Also new "support" checkboxes are not saved.

I noticed that save button is only sending backend values that has been changed. So tried also "touching" all fields so I can verify from Chrome dev tools that all values are passed to save-endpoint. But no luck.

Edit: now it actually works if I don't restart the hub after saving the values. I will try the restart later and see if values have been saved.

quazzie commented 3 years ago

You need to restart tellstick at least 1 time after plugin install to get config to work. Sometimes i need to restart the tellstick multiple times before it accepts the save button and saves my settings. Its really annoying. Check that you got the latest 0.90.4 as i fixed some things.

henripalmroth commented 3 years ago

Only way I can currently get it working is after reboot touch all fields and save. Then it was running for 5-6 hours. I probably rebooted HA host so then it never came back. Didn't help when I tried rebooting znet. Reboot & save is only pattern for me currently.

By the way. Do you suggest running beta firmware for ZNet Lite V2?

henripalmroth commented 3 years ago

Looks like everything goes offline if I reboot the MQTT service. Then I have to again touch all fields on setup and click save. Restarting ZNet is not enough.

crashmatt commented 2 years ago

Been testing this a bit. I have it running while using MQTT Explorer to show real time values. Saving changes to the plugin settings results in an immediate change to the values at MQTT Explorer. Closing the settings dialog and re-opening results in the original values. Have not yet tested which values are persistent over reboots.

crashmatt commented 2 years ago

After reboot it appears to remember the new settings. It also appears to come back after reboot. Limited testing done so not confident on the result.

crashmatt commented 2 years ago

Another discovery. After making a change and saving it, press "refresh list". Then the changes are properly shown in the dialog. I have a vague memory of some of the other config dialogs behaving a similar way.

henripalmroth commented 2 years ago

You can check dev tools on Chrome. Browser passes to backend only values which have been modified.

image

grEvenX commented 2 years ago

Looks like everything goes offline if I reboot the MQTT service. Then I have to again touch all fields on setup and click save. Restarting ZNet is not enough.

Looks like this is related to this issue #30

siggmur commented 2 years ago

So I guess it's a one shot wonder. I messed up something (Not sure why) and I'm not auto discovering. I've tried rebooting, touching all fields and not doing anything for me....