Comments (10)
A whitelist regular expression as hardware parameter should be possible. I‘ll think about it.
from tasmoticz.
Have you checked with the domoticz author/forum if there is way around this limit ? Maybe there is a better way than this workaround
from tasmoticz.
According to my research, the limit at 255 is a limit that will not be changed because of compatibility with all existing plugins.
The whitelist would be a very interesting solution (with several values and wildcard to have an perfect solution !)
Thanks in advance
from tasmoticz.
With this filtering, finally, your plugin bypass the 255 devices limit.
Only need an logic for names and/of topics and with several instances, the sky is your limit :)
from tasmoticz.
Hello,
I have found this link for one other plugin with the same issue but solved :
stas-demydiuk/domoticz-zigbee2mqtt-plugin#325
When I see the Wiki for plugin I see now two framework type : (https://www.domoticz.com/wiki/Developing_a_Python_plugin)
Plugin Framework types
There are current two variations of the Plugin Framework available, plugin authors can use either but not both at the same time:
Legacy Framework: This has been stable for several years, invoked by importing 'Domoticz' into the plugin
Extended Framework:
Built on Legacy Framework but has a new object model and event localisation
Invoked by importing 'DomoticzEx' into the plugin.
Creates a two layer mapping over the DeviceStatus table of Devices and Units
Plugins are not restricted to 256 Units (each Device can have 256 Units)
I don't understand this ... but the "Extended Framework" is one possibility for your plugin ?
Thank you
from tasmoticz.
Moving to a new framework is too much effort for me. Would take ages. But there is hope:
Just to be sure I understand correctly: you have tasmota devices that create more than 255 tasmoticz switches or sensors in domoticz, but you just want to use one of them?
Couldn't you just use my already available subscriptions filter hardware setting?
Just use the fixed topic of your device that you are interested in (or a pattern, if you need more flexibility) as subscriptions filter.
I haven't used this feature for a long time (and then just for some backward compatibility within tasmota). But it's worth a try.
Maybe the sky is no limit already... :)
from tasmoticz.
Hello,
I understand about the new framework and the effort about this !
About your view of my issue it is exactly this !
Many electrical plug and Sonoff Pow/Mini/... with always several sensors : 10 for somes devices and finally more than 255.
With Tasmota and Domoticz parameters I have all informations correctly (but manually) except pour one Shelly EM with 2 channels, it is not possible in Tasmota firmware. I have try the standart Domoticz MQTT explorer without good result.
Your plugin is perfect, directly the good result !
You spoke about a filtering already set in your plugin.
Sorry I don't see. It is an parameter ? (like "sonoff" default filter ? In file or GUI?)
I'am able to focus the MQTT topic for this device only and go to the sky with this filtering :)
Thanks
from tasmoticz.
You find it in domoticz hardware menu, where you initially added the Tasmoticz plugin.
Select the plugin on the hardware page and you see the options below. One are the mqtt topic subscriptions this plugin instance will care about. Make that pattern more specific…
Interesting usecase - I’d like to know if it works as intended :)
from tasmoticz.
Hello,
Many thanks, you proposal is effectively an filter for take only (in my case) one device.
I have try with several devices with separator '|' and it is also OK.
PS : I have found the topic name with MQTT explorer and I have the prefix 'tele/' before the MQTT name put in Tasmota, I don't understand why but with this it's OK.
This issue is solved.
Have you need some others tests or informations before closing ?
from tasmoticz.
no need from my side.
Glad to hear I did something not only useful for me :)
from tasmoticz.
Related Issues (20)
- Domoticz beta (build 13251) randomly crashes on switches tab HOT 7
- errors on new version of tasmota HOT 10
- Device naming in German? HOT 8
- Cant switch on/off a offline device HOT 2
- Athom device incorrectly handled HOT 1
- Better handling of humidity sensors HOT 7
- Domoticz Switch State not updated after switching HOT 8
- Error: Tazmoticz: AttributeError: type object 'Collection' has no attribute 'Mapping' with Python 3.10.4 HOT 5
- Deletion of some devices when used with a damaged Domoticz installation HOT 8
- Support for Tasmota 12.1 and Tasmota Discovery / hatasmota HOT 5
- Error message every 12hrs but everything works HOT 7
- Pb Maj Domoticz 2022.2/2023.1 HOT 14
- Create device for LWT messages. HOT 4
- Incorrect electricity data being sent to Domoticz. HOT 2
- I am asking for two separate blocks in domoticz HOT 23
- Another malfunction related to the energy indicator. HOT 3
- Tasmota 13.0.0 and PZEM 004 HOT 2
- Athom Tasmota RGB(WW) LED Strip Controller HOT 2
- Can I make a DevkitV1 esp32 working with tasmoticz HOT 4
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 tasmoticz.