Comments (11)
Hi.
Please use the development version. It's been largely rewritten and soon will be released as 0.2
from tdm.
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.
please paste your tdm.cfg and devices.cfg files
from tdm.
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.
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.
My guess is you just need a "TASMOTA/%prefix%/%topic%/" as the pattern.
from tdm.
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%/'.
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.
Do I have to put some other settings in, somewhere? Or is it just not working this way w/o modification?
from tdm.
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.
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 ;)
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.
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.
I'll keep an eye on it. Thanks for the help!
from tdm.
Related Issues (20)
- Segfault HOT 3
- TDM (windows) was okay but all of a sudden is now crashing and so slow that it is unusable HOT 3
- Timer button crashed
- Export device list HOT 3
- %hostname% as topic not working HOT 3
- Some crashes on mac HOT 6
- Crashes on Xubuntu Linux 5.15.0-70-generic #77-Ubuntu HOT 2
- Device column is empty in 0.2.11 HOT 6
- viewmode customization
- Segmentation fault (core dumped) with tdmgr_0.2.13.appImage on Archlinux python 3.11.3 HOT 9
- How do I install this? HOT 1
- Problematic requirement of tdmgr.py installation HOT 7
- TDMGR not recognizing difference between + and - minutes correction when reading timer configuration HOT 1
- 0.2.13 not available on pip
- Use wildcards in Autodiscovery patterns? HOT 70
- Support native Tasmota discovery
- Use of topics with backlash HOT 10
- Debian Package HOT 32
- Utilize XDG Base Directory Specification HOT 1
- Column "IP address" shows "0.0.0.0" in case of ETH connection HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from tdm.