GithubHelp home page GithubHelp logo

Comments (11)

jziolkowski avatar jziolkowski commented on August 30, 2024

Hi.

Please use the development version. It's been largely rewritten and soon will be released as 0.2

from tdm.

mijnmodelbaan avatar mijnmodelbaan commented on August 30, 2024

Hi,

Tried the dev version. Could start it once, nothing was detected, the only thing I could do was disconnect the mqtt server but couldn't start it again (I think as there is no manual).

So I closed the program and tried to start it again, but after a second it closed itself with the error:

Traceback (most recent call last):
File "tdm.py", line 243, in mqtt_connected
self.mqtt_subscribe()
File "tdm.py", line 265, in mqtt_subscribe
self.mqtt.subscribe([(topic, 0) for topic in self.topics])
File "D:\PlatformIO\Projects\HOMEAUT_folder\tdm\Util\mqtt.py", line 134, in subscribe
self.m_client.subscribe(path)
File "C:\Users\wille\AppData\Local\Programs\Python\Python37\lib\site-packages\paho\mqtt\client.py", line 1311, in subscribe
raise ValueError('Invalid subscription filter.')
ValueError: Invalid subscription filter.

So, how to solve this?

from tdm.

jziolkowski avatar jziolkowski commented on August 30, 2024

please paste your tdm.cfg and devices.cfg files

from tdm.

mijnmodelbaan avatar mijnmodelbaan commented on August 30, 2024

Hi,

don't have devices.cfg, only tdm.cfg:

[General]
hostname=192.168.45.50
port=1883
username=xxx
password=xxx
connect_on_startup=true
client_id=PVCJC1
version=0.2.0
window_geometry="@bytearray(\x1\xd9\xd0\xcb\0\x3\0\0\xff\xff\xff\xff\xff\xff\xff\xf8\0\0\x6@\0\0\x3\\0\0\x1,\0\0\0y\0\0\x5U\0\0\x2\xe2\0\0\0\0\x2\0\0\0\x6@\0\0\0\0\0\0\0\x17\0\0\x6?\0\0\x3[)"

[Devices]

[Patterns]
0=TASMOTA/#/%prefix%/%topic%/
1=TASMOTA/#/%topic%/%prefix%/

That's all in tdm.cfg (changed username and password}.

Should I change or remove anything?

from tdm.

jziolkowski avatar jziolkowski commented on August 30, 2024

These patterns are bad. You should write there fulltopics EXACTLY as you have configured them in Tasmota. Do you have "TASMOTA/#/%prefix%/%topic%/" as fulltopic for your devices?

Remove these two lines and start over.

from tdm.

jziolkowski avatar jziolkowski commented on August 30, 2024

My guess is you just need a "TASMOTA/%prefix%/%topic%/" as the pattern.

from tdm.

mijnmodelbaan avatar mijnmodelbaan commented on August 30, 2024

My topic is 'TASMOTA/%06X/' so TASMOTA followed by the device name.
My full topic is '%topic%/%prefix%/' so this will result in 'TASMOTA/[devname]/%prefix%/'.

Annotation 2019-09-03 125207

I removed the lines you mentioned and started over. The program is running, I added the line '%topic%/%prefix%/' in the pattern field but nothing is discovered at all.

image

Do I have to put some other settings in, somewhere? Or is it just not working this way w/o modification?

from tdm.

jziolkowski avatar jziolkowski commented on August 30, 2024

Ahh, ok. Your tastmota settings are wrong. You don't add things like / to topic.

If you want to have tasmota devices not in the "root" of your mqtt, then add TASMOTA to the beginning of FullTopic.

So, in Tasmota devices:
Topic = %06X
FullTopic = TASMOTA/%topic%/%prefix%/

In TDM, add this fulltopic pattern. It should work then.

from tdm.

mijnmodelbaan avatar mijnmodelbaan commented on August 30, 2024

Changed it like you said and after restarting tdm 2 devices were discovered. After another restart a 3rd device was discovered. So it's working but not flawlessly, some more work for you to do ;)

image

Found another small problem: the close button of the timer settings is not working. I open the settings, make no changes, push close w/o avail. Have to use the X.

But altogether it looks good. When will it be available in 'master'?

from tdm.

jziolkowski avatar jziolkowski commented on August 30, 2024

Yes, there are still some bugs to hunt, I'm sure. Glad it works now.

Thanks for the tip about the button, must've overlooked action binding.

When? Great question. Soon (tm) :) Stay tuned.

from tdm.

mijnmodelbaan avatar mijnmodelbaan commented on August 30, 2024

I'll keep an eye on it. Thanks for the help!

from tdm.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.