Search found 617 matches

by Dnpwwo
Sunday 04 November 2018 0:16
Forum: Python
Topic: Python plugin: Kodi
Replies: 127
Views: 21207

Re: Python plugin: Kodi

@bkoch,

The last two versions are functionally the same so there is no disadvantage to being on 2.5.6.

I checked the dates and you do need to be on the beta version of Domoticz to use the latest because it was committed late August.

My bad.
by Dnpwwo
Saturday 03 November 2018 13:57
Forum: Python
Topic: Python Plugin - SupressTriggers = True doesn't update Database !
Replies: 23
Views: 841

Re: Python Plugin - SupressTriggers = True doesn't update Database !

@pipiche, Reread the documentation here: https://www.domoticz.com/wiki/Developing_a_Python_plugin#Devices and it appears to function in line with the doucmentation. False Boolean flag that allows device attributes to be updated without notifications, scene or MQTT, event triggers. nValue and sValue ...
by Dnpwwo
Saturday 03 November 2018 6:49
Forum: Python
Topic: Creating a general gateway
Replies: 4
Views: 228

Re: Creating a general gateway

@mtsinc, The native gateways are also "hermetically separate" (great phrase BTW) which is why the plugin framework was designed that way to match. If hardware drivers collborate or update devices they don't control then the hardware support will not be very generic is reuse will be minimal. The nati...
by Dnpwwo
Saturday 03 November 2018 0:31
Forum: Python
Topic: How I can do local request without Domoticz connection in a plugin
Replies: 2
Views: 96

Re: How I can do local request without Domoticz connection in a plugin

@Thorgal789, You can use a later version of Python (test with 3.7 on Windows) if you upgrade move to the Beta version of Domoticz but Python doesn't seem to be the issue. Best guess is a malformed HTTP response from the webserver. The plugin framework calls onMessage for *complete* messages for a gi...
by Dnpwwo
Saturday 03 November 2018 0:18
Forum: Python
Topic: Python plugin: Kodi
Replies: 127
Views: 21207

Re: Python plugin: Kodi

@bkoch,

I'm guessing from the error that you have put an old version of Domoticz onto your new build.

You can either:
  • Up grade to a later version of Domoticz (recommended)
  • Down grade the plugin until you find the version that works with your version of Domoticz (2.5.6 should do it)
by Dnpwwo
Tuesday 30 October 2018 22:27
Forum: Bugs and Problems
Topic: Tried everything to get Plugin System working
Replies: 10
Views: 303

Re: Tried everything to get Plugin System working

@mark.sellwood,

Do you have the event system disabled via the Settings\Other tab?

From memory I think that turns off plugins as well (not sure why because it isn't part of the event system) and the fact that there is no plugin framework message at all seems to indicate that it is not starting.
by Dnpwwo
Sunday 28 October 2018 4:58
Forum: Installation, Compiling, Permissions, Security and Starting
Topic: running domoticz->Fatal Python error: drop_gil: GIL is not locked
Replies: 5
Views: 596

Re: running domoticz->Fatal Python error: drop_gil: GIL is not locked

Are you building beta or stable?

Python 3.7 support was added in beta and tested in Windows a while ago
by Dnpwwo
Saturday 27 October 2018 2:07
Forum: Python
Topic: Python Plugin - SupressTriggers = True doesn't update Database !
Replies: 23
Views: 841

Re: Python Plugin - Options not updated in DB

The SuppressTriggers was added by someone else and I’ve not used it myself. I looked at the code the other day when I commented on the parameter type and it didn’t look right but I didn’t change anything because nobody on the forum had a problem with it as it is. If it really isn’t working it would ...
by Dnpwwo
Thursday 18 October 2018 13:40
Forum: Python
Topic: Python Plugin - SupressTriggers = True doesn't update Database !
Replies: 23
Views: 841

Re: Python Plugin - Options not updated in DB

I always assumed that if people really wanted to get to get to the database or wanted to create their own tables and the like they would do so using: import sqlite3 conn = sqlite3.connect('..\..\Domoticz.db') or something similar as documented on the Python website https://docs.python.org/3.7/librar...
by Dnpwwo
Tuesday 16 October 2018 3:06
Forum: Python
Topic: Python Plugin: Zigbee2Mqtt
Replies: 41
Views: 2630

Re: Python Plugin: Zigbee2Mqtt

@upwindanderl, Go to the 'About' page in the Web UI or look at the Domoticz log during startup. If Domoticz finds a version it can use it will report it in both of those places. If Domoticz reports a Python version then that is not the problem here. If the Python version is not reported then have a ...
by Dnpwwo
Monday 15 October 2018 1:32
Forum: Python
Topic: Python Plugin - SupressTriggers = True doesn't update Database !
Replies: 23
Views: 841

Re: Python Plugin - Options not updated in DB

@pipiche and @StasDemydiuk, I'm not against adding extra functionality to the framework, I'm just trying to better understand what you are trying to achieve to inform the design. One of the goals of the framework was to make plugins work 100% the same was as native hardware implementations. Currentl...
by Dnpwwo
Friday 12 October 2018 3:27
Forum: Python
Topic: How to send Float values to Domoticz instead of Integers ?
Replies: 3
Views: 585

Re: How to send Float values to Domoticz instead of Integers ?

@aerno, Have a look at https://github.com/dnpwwo/Domoticz-RAVEn-Plugin/blob/master/plugin.py which writes to a couple of power consumption devices. For historical reasons not all the Domoticz devices handle data the same way and the Python Framework has not attempted to fix it, it just exposes the D...
by Dnpwwo
Tuesday 09 October 2018 14:20
Forum: Python
Topic: Python Plugin - SupressTriggers = True doesn't update Database !
Replies: 23
Views: 841

Re: Python Plugin - Options not updated in DB

@pipiche, The Options column tends to be used in certain ways by native Domoticz code, such as selector switches. The behanviour you have described where additional Options get lost would apply to Selctor switches created by any hardware and is not a limitation of the plugin framework. The question ...
by Dnpwwo
Tuesday 09 October 2018 11:13
Forum: Suggestions
Topic: Suggestion: Domoticz Database Edit Mode
Replies: 5
Views: 385

Re: Suggestion: Domoticz Database Edit Mode

@kimhav, You can already maintain the logged data without restoring old databases or anything else. You should be able to click the data point you want to remove on the graph with the shift key held down and you will be asked if you want to delete it, something like: Are you sure to remove this valu...
by Dnpwwo
Monday 08 October 2018 4:44
Forum: Bugs and Problems
Topic: Cannot start with Python 3.7
Replies: 4
Views: 366

Re: Cannot start with Python 3.7

@haden, I did some testing with Python 3.7 a little while ago and made some code changes to make it work. Our friends maintaining Python made some changes during initialisation of interpreters that were not compatible with the way Domoticz was using them. I suggest you either switch to the beta chan...
by Dnpwwo
Sunday 30 September 2018 15:52
Forum: Python
Topic: Python Connections framework : behaviour of delay
Replies: 2
Views: 144

Re: Python Connections framework : behaviour of delay

@pipiche, The delay is from when the Send statement is executed. If you want messages sent with 1 second between them use something like: myConn.Send(Message=myMessage1, Delay=4) myConn.Send(Message=myMessage2, Delay=5) myConn.Send(Message=myMessage3, Delay=6) myConn.Send(Message=myMessage4, Delay=7...
by Dnpwwo
Sunday 30 September 2018 12:40
Forum: Third party and supplementary tools
Topic: Oops, Kodi plugin with quite some errors...
Replies: 5
Views: 326

Re: Oops, Kodi plugin with quite some errors...

@tred,

In github select the '33 Commits' tab, find the 'Commits on Jun 7, 2018' and click on one of the '<>' icons (a tooltip will ask if you want to 'Browse the repository at this point in the history').

The files shown will then be for the previous version.
by Dnpwwo
Sunday 30 September 2018 9:30
Forum: Python
Topic: Python plugin: Kodi
Replies: 127
Views: 21207

Re: Python plugin: Kodi

@jake,

Have you tried a more recent beta (along with the new version of the plugin from github)?

I'm not seeing any crashes with 2 Kodi's.
by Dnpwwo
Sunday 30 September 2018 9:23
Forum: Python
Topic: Generic Denon / Marantz python plugin
Replies: 80
Views: 13488

Re: Generic Denon / Marantz python plugin

@Droombox,

Python -v will always call Python 2.x

Try Python3 -v to see what Python version is installed.

More importantly look at the Domoticz log on start up to see if it has picked up a version it can use.
by Dnpwwo
Sunday 30 September 2018 9:16
Forum: Third party and supplementary tools
Topic: Oops, Kodi plugin with quite some errors...
Replies: 5
Views: 326

Re: Oops, Kodi plugin with quite some errors...

@tred,

Looks like the Domoticz version and plugin version aren't matched.

Try version 2.5.6 of the plugin or upgrade Domoticz to the latest version.