Code Monkey home page Code Monkey logo

Comments (10)

joba-1 avatar joba-1 commented on June 9, 2024

A whitelist regular expression as hardware parameter should be possible. I‘ll think about it.

from tasmoticz.

joba-1 avatar joba-1 commented on June 9, 2024

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.

jcbraem avatar jcbraem commented on June 9, 2024

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.

jcbraem avatar jcbraem commented on June 9, 2024

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.

jcbraem avatar jcbraem commented on June 9, 2024

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.

joba-1 avatar joba-1 commented on June 9, 2024

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.

jcbraem avatar jcbraem commented on June 9, 2024

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.

joba-1 avatar joba-1 commented on June 9, 2024

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.

jcbraem avatar jcbraem commented on June 9, 2024

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.

joba-1 avatar joba-1 commented on June 9, 2024

no need from my side.
Glad to hear I did something not only useful for me :)

from tasmoticz.

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.