Search found 816 matches
- Sunday 16 February 2025 3:44
- Forum: Bugs and Problems
- Topic: Trunkated data on python plugin
- Replies: 5
- Views: 682
Re: Trunkated data on python plugin
@Thorgal789, You would need to publish your actual code for me to comment but from the looks of it you are writing a webserver and handling client connections. When a client connects the plugin's onConnect is called followed by the onMessage, if the plugin does not add a reference to the client ...
- Monday 30 October 2023 9:06
- Forum: Python
- Topic: Python Plugin Framework limitation to 256 Units
- Replies: 51
- Views: 5819
Re: Python Plugin Framework limitation to 256 Units
@Thorgal789, The extended framework is not a workaround but but a better implementation for certain types of plugins, specifically those where multiple 'device's (physical or virtual) that have more than one attribute that can be exposed to Domoticz. It is much easier to code the plugin for these ...
- Saturday 08 July 2023 0:12
- Forum: Python
- Topic: PyO3 modules may only be initialized once per interpreter process
- Replies: 11
- Views: 3149
Re: PyO3 modules may only be initialized once per interpreter process
I suspect this is not solvable because it is an issue with the library and not Python (or the framework). There is no 'un-import' function in Python to force a complete cleanup, I believe Python holds libraries in an internal cache even if nothing is referencing them anymore. Importing them a second ...
- Friday 13 January 2023 23:22
- Forum: Python
- Topic: is Python3.10 now supported
- Replies: 2
- Views: 711
Re: is Python3.10 now supported
I'm not aware of any issues with 3.10.
I've done some initial testing with 3.11 on Windows and it looks like that will be okay as well.
I've done some initial testing with 3.11 on Windows and it looks like that will be okay as well.
- Thursday 04 August 2022 1:41
- Forum: Python
- Topic: Upgrading to Extended framework while keeping/converting units
- Replies: 2
- Views: 523
Re: Upgrading to Extended framework while keeping/converting units
@JanJaap, Both frameworks work off the same Domoticz database tables so I assume by migrate to the extended framework you are talking about changing the DeviceID and Unit numbers of existing devices? You could do it in the plugin by connecting to the database yourself using the Python SQLite3 module ...
- Monday 27 June 2022 9:54
- Forum: Raspberry Pi GPIO ( WiringPi )
- Topic: GPIO switch not working on Domoticz (but workin manualy in pi)
- Replies: 2
- Views: 2491
Re: GPIO switch not working on Domoticz (but workin manualy in pi)
I use a plugin to control output GPIO pins and don't have an issue, you could try that if the built in functionality isn't working for you.
Its here: https://github.com/dnpwwo/Domoticz-GPIO-Plugin
Its here: https://github.com/dnpwwo/Domoticz-GPIO-Plugin
- Thursday 26 May 2022 11:40
- Forum: Installation, Compiling, Permissions, Security and Starting
- Topic: Latest update crashes domoticz
- Replies: 29
- Views: 3892
Re: Latest update crashes domoticz
Hi,
This seems to have been a Linux only issue, I've pushed a fix that should fix at least some of the issues (maybe all).
Thanks @heggink, given I already had a copy of your test plugin I was able to reproduce the crash.
This seems to have been a Linux only issue, I've pushed a fix that should fix at least some of the issues (maybe all).
Thanks @heggink, given I already had a copy of your test plugin I was able to reproduce the crash.
- Wednesday 25 May 2022 4:30
- Forum: Installation, Compiling, Permissions, Security and Starting
- Topic: Latest update crashes domoticz
- Replies: 29
- Views: 3892
Re: Latest update crashes domoticz
I've had a look at the deConz plugin and it does use WebSockets so it could be impacted. If anyone has a test machine that can use this plugin it would be helpful to see the output from running with the plugin debug level set to include 'Messages'. There is also a WebSocket Client example plugin ...
- Wednesday 25 May 2022 0:37
- Forum: Installation, Compiling, Permissions, Security and Starting
- Topic: Latest update crashes domoticz
- Replies: 29
- Views: 3892
Re: Latest update crashes domoticz
Unlikely that the WebSocket fix impacted this because it was contained to that protocol but there was a more general change in the last week around returning data to plgins that may have an issue.
If you are impacted please post the domoticz_crash.log file (from you Domoticz folder) and I can look.
If you are impacted please post the domoticz_crash.log file (from you Domoticz folder) and I can look.
- Friday 29 April 2022 10:18
- Forum: Python
- Topic: Unit deletion failed, UnitEx object is not associated with a plugin
- Replies: 4
- Views: 495
Re: Unit deletion failed, UnitEx object is not associated with a plugin
@JanJaap,
I have responded in the other thread, but for clarity: The dictionary containing a device's units is 'Units' not 'Unit'.
That is why Domoticz is correctly reporting:
I have responded in the other thread, but for clarity: The dictionary containing a device's units is 'Units' not 'Unit'.
That is why Domoticz is correctly reporting:
Code: Select all
2022-04-24 16:26:25.867 Error: testplug: AttributeError: 'DomoticzEx.Device' object has no attribute 'Unit'
- Friday 29 April 2022 10:16
- Forum: Python
- Topic: Deleting units in DomoticzEx framework
- Replies: 2
- Views: 358
Re: Deleting units in DomoticzEx framework
@JanJaap,
You need to refer to 'Units', not 'Unit'.
You need to refer to 'Units', not 'Unit'.
Code: Select all
Devices["test_device"].Units[1].Delete()
- Friday 29 April 2022 8:28
- Forum: Python
- Topic: Unit deletion failed, UnitEx object is not associated with a plugin
- Replies: 4
- Views: 495
Re: Unit deletion failed, UnitEx object is not associated with a plugin
@heggink,
Nothing, I reproduced your code and it didn't work for me either.
I've pushed a fix.
Nothing, I reproduced your code and it didn't work for me either.
I've pushed a fix.
- Sunday 20 March 2022 9:10
- Forum: Python
- Topic: Python Plugin Crash
- Replies: 7
- Views: 619
Re: Python Plugin Crash
I've pushed a change to check (and log) for running threads during stop and wait for around 10 seconds to give them time to stop before continuing.
Sadly the 'threading' library doesn't have a 'kill' or 'stop' API so I can't do much about that.
Sadly the 'threading' library doesn't have a 'kill' or 'stop' API so I can't do much about that.
- Sunday 20 March 2022 0:58
- Forum: Python
- Topic: Python Plugin Crash
- Replies: 7
- Views: 619
Re: Python Plugin Crash
The 2 stack dumps show that the 'zigpy-deconz' have 3 or 4 threads running during the plugin shutdown.
Python threads need to all be stopped before leaving onStop otherwise there will be a crash. The Python C API doesn't have a way of detecting or handling this (can I've seen).
Python threads need to all be stopped before leaving onStop otherwise there will be a crash. The Python C API doesn't have a way of detecting or handling this (can I've seen).
- Tuesday 15 March 2022 12:04
- Forum: Python
- Topic: Systematiq crash of Python Plugin
- Replies: 5
- Views: 589
Re: Systematiq crash of Python Plugin
@pipiche, Couple of things: I see you are using Python 3.10. I didn't know (for sure) that this worked so thanks for testing it :lol: Your Python threads look fine btw although its good to see that they are being dumped The actual crash of course, is caused by an incoming HTTP message: Error: > #8 ...
- Tuesday 07 December 2021 22:03
- Forum: Python
- Topic: Changing Unit's option in python plugin
- Replies: 1
- Views: 596
Re: Changing Unit's option in python plugin
@ajarzyn,
You can change the Options just not the dictionary itself.
If you add, update or remove the Options dictionary entires then invoke Update() the Options for the Unit will be updated.
You can change the Options just not the dictionary itself.
If you add, update or remove the Options dictionary entires then invoke Update() the Options for the Unit will be updated.
- Sunday 07 November 2021 20:42
- Forum: Python
- Topic: How to add explanation between plugin parameters ?
- Replies: 9
- Views: 1221
Re: How to add explanation between plugin parameters ?
Yes, it should be in the next beta build.
- Sunday 07 November 2021 8:01
- Forum: Python
- Topic: How to add explanation between plugin parameters ?
- Replies: 9
- Views: 1221
Re: How to add explanation between plugin parameters ?
Hi keros, You can't in the current Domoticz stable but I liked this idea so I just pushed an update into the beta channel that allows it: <plugin key="Timeout" name="Timeout Tester" author="Dnpwwo" version="2.2.7" externallink="https://www.google.com"> <description> <h2>Timeout Tester</h2><br ...
- Saturday 06 November 2021 1:29
- Forum: Python
- Topic: Python Plugin: Homekit Insecure Client
- Replies: 19
- Views: 6168
Re: Python Plugin: Homekit Insecure Client
This: 2021-11-02 23:03:07.811 Error: (Homebridge Tuya Plug) Device creation failed, Domoticz settings prevent accepting new devices. is probably the issue. You have new device creation disabled in the 'Settings' tab so the plugin can't create new devices (and doesn't handle it very elegantly). If ...
- Sunday 17 October 2021 23:13
- Forum: dzVents
- Topic: Retrieve HTTP GET data [Solved]
- Replies: 5
- Views: 1674
Re: Retrieve HTTP GET data [Solved]
You could try using the example HTTP Listener plugin that comes with Domoticz. Look under domoticz/plugins/examples for HTTP Listener.py. Create a new folder under plugins (name not important) copy HTTP Listener.py into it and rename it plugin.py. Restart Domoticz and add it as a piece of hardware ...