Search found 460 matches

by zak45
Sunday 20 May 2018 22:59
Forum: Python
Topic: Python plugin.py module error
Replies: 3
Views: 94

Re: Python plugin.py module error

Hello, I have this problem: when I import sqlite3 module into python plugin, Domoticz invoke the plugin and apparently there are no errors. The problem is that Domoticz call never onStart() and all other functions on Class. With others import module (Ex. sys, os, pprint....) the plugin work well. A...
by zak45
Friday 18 May 2018 11:11
Forum: Python
Topic: Extra API special for Python programmers
Replies: 2
Views: 177

Re: Extra API special for Python programmers

Thanks, great idea to not re-invent the Wheel ;-)
will take a look.
by zak45
Wednesday 16 May 2018 18:16
Forum: Python
Topic: Python Plugin : Broadlink RM2 V4
Replies: 227
Views: 15941

Re: Python Plugin : Broadlink RM2 V4

henk99 wrote:
Tuesday 15 May 2018 9:38
Oh boy :shock:
If you find someone To help you for your python i will help you after for the plugin
by zak45
Wednesday 16 May 2018 12:49
Forum: Suggestions
Topic: JSON API: access by name instead of IDX
Replies: 5
Views: 173

Re: JSON API: access by name instead of IDX

Whilst I like the approach, you would still need to know the idx of the device. Agree that you could just build a simple function that retrieves the idx from a json query on startup and use that going forward but that indeed is a workaround generating (useless) extra queries. In addition, I 'repurp...
by zak45
Monday 14 May 2018 23:15
Forum: Python
Topic: Python Plugin : Broadlink RM2 V4
Replies: 227
Views: 15941

Re: Python Plugin : Broadlink RM2 V4

Thank you for the response. Does this mean I have to type in all these commands listed in the wiki? I have not dared to type these commands, because I'm afraid I will ' break' my working RP domoticz setup. I assume if I type 'download plugin.py' that RP knows where it is? Like I said, isn't there a...
by zak45
Monday 14 May 2018 19:16
Forum: Python
Topic: Python Plugin : Broadlink RM2 V4
Replies: 227
Views: 15941

Re: Python Plugin : Broadlink RM2 V4

I hope this is not a silly question, but I'm uncertain about the Python role in all of this. I have ordered two SP3S units and would like to use them in Domoticz, so I ended up here. I have Domoticz running on a RP. However, the domoticz dashboard is only accessed through windows machines or my pho...
by zak45
Monday 14 May 2018 12:31
Forum: Python
Topic: How to know if hardware is removed (not stopped)
Replies: 2
Views: 122

Re: How to know if hardware is removed (not stopped)

@zak45, Not sure how we could do what you are asking for. None of the hardware in Domoticz is notified when it is deleted and I'm not sure it could be. What if the hardware isn't enabled? Should Domoticz restart it to notify it that it is being deleted? Thanks Dnpwwo. I devlop a plugin that create ...
by zak45
Sunday 13 May 2018 13:10
Forum: Suggestions
Topic: Create new menu items
Replies: 4
Views: 211

Re: Create new menu items

Hi all, It would be great if we could add menu items ourselves and add devices, switches etc. Right now I have like a hundred items under 'Switches' which really makes it a bit hard to find the one I'm looking for. Does this make sense? As far as I could see there hasn't been a request for this unt...
by zak45
Sunday 13 May 2018 12:53
Forum: Python
Topic: How to know if hardware is removed (not stopped)
Replies: 2
Views: 122

How to know if hardware is removed (not stopped)

Hi,

I need to know if hardware is removed by Domoticz. This will help me to do some clean up.
Have take a look on : onStop Called when the hardware is stopped or deleted from Domoticz.
and also on : onDeviceRemoved.

But I do not have been able to catch hardware removing ??

thanks
by zak45
Saturday 12 May 2018 10:59
Forum: Python
Topic: Python Plugin: Samsung TV
Replies: 129
Views: 17944

Re: Python Plugin: Samsung TV

My challenge: Domoticz Bèta Python 3.5 samsungctl (tested with 0.7.x and 0.6.x) websocket-client wheel six ... well...all that is already mentoined. When I activate the hardware in domoticz it freezes. System still running...Domoticz offline. When I rename websocket map in /usr/bin/python3.5 and re...
by zak45
Sunday 06 May 2018 1:11
Forum: Python
Topic: Python Plugin : Broadlink RM2 V4
Replies: 227
Views: 15941

Re: Python Plugin : Broadlink RM2 V4

I have one question I'd like to make a toggle button (on / off), but what should be the syntax on Linux? script:///home/robert/domoticz/plugins/BroadlinkRM2/plugin_send.py /home/robert/domoticz/plugins/BroadlinkRM2/RM_mini_3/BroadlinkRM2-14-4.ini script:///home/robert/domoticz/plugins/BroadlinkRM2/...
by zak45
Saturday 05 May 2018 15:58
Forum: Python
Topic: Python Plugin : Broadlink RM2 V4
Replies: 227
Views: 15941

Re: Python Plugin : Broadlink RM2 V4

Jufo wrote:
Saturday 05 May 2018 15:57
@zak45

It works!
Are these packages needed (pycrypto & pycryptodome)?
On the last version, no more, you just need pyaes.
Great that this work now. :D
enjoy!
by zak45
Saturday 05 May 2018 13:29
Forum: Python
Topic: Python Plugin : Broadlink RM2 V4
Replies: 227
Views: 15941

Re: Python Plugin : Broadlink RM2 V4

broadlink (0.9) cryptography (1.7.1) idna (2.2) keyring (10.1) keyrings.alt (1.3) pip (9.0.1) pyaes (1.6.1) pyasn1 (0.1.9) PyCRC (1.21) pycrypto (2.6.1) pycryptodome (3.4.11) pygobject (3.22.0) pyserial (3.2.1) pyxdg (0.25) SecretStorage (2.3.1) setuptools (33.1.1) six (1.10.0) wheel (0.29.0) If yo...
by zak45
Saturday 05 May 2018 12:32
Forum: Python
Topic: Python Plugin : Broadlink RM2 V4
Replies: 227
Views: 15941

Re: Python Plugin : Broadlink RM2 V4

Jufo wrote:
Saturday 05 May 2018 10:09
@zak45

I made a new Domoticz compilation + new database did not help :(
That's bad :-(

give output of this command:
sudo pip3 list
by zak45
Friday 04 May 2018 13:13
Forum: Python
Topic: Python Plugin : Broadlink RM2 V4
Replies: 227
Views: 15941

Re: Python Plugin : Broadlink RM2 V4

Jufo wrote:
Friday 04 May 2018 9:13
Compile Brodlink module or Domoticz ? I use clean Debian 9 Stretch x86_64.
Domoticz
by zak45
Thursday 03 May 2018 23:17
Forum: Python
Topic: Python Plugin : Broadlink RM2 V4
Replies: 227
Views: 15941

Re: Python Plugin : Broadlink RM2 V4

Problem is with broadlink module, others are working. So.. very bad situation: if trouble with module broadlink, this mean no way for you to use the plugin if we do not found why on some OS this work and not on your... Another way to investigate: try to compile from source and not use the pre-build...
by zak45
Thursday 03 May 2018 18:24
Forum: Python
Topic: Python Plugin : Broadlink RM2 V4
Replies: 227
Views: 15941

Re: Python Plugin : Broadlink RM2 V4

Jufo wrote:
Thursday 03 May 2018 18:10
It's better, I modified the code.
OK, now just remove this HW, modify the plugin.py by removing # in front of #import one by one.. we need to found which module made trouble in your system ( i would begin by the end, this mean #import broadlink) and create a new HW
by zak45
Thursday 03 May 2018 17:29
Forum: Python
Topic: Python Plugin : Broadlink RM2 V4
Replies: 227
Views: 15941

Re: Python Plugin : Broadlink RM2 V4

I did a simple test. It looks like the discover works: Perfect, so we can focus now on Domoticz. THis should be problem with python framework and maybe some imported modules can you modify plugin.py in this way : # # Main Import import Domoticz #import configparser #import datetime #import time #im...
by zak45
Thursday 03 May 2018 12:42
Forum: Python
Topic: Python Plugin : Broadlink RM2 V4
Replies: 227
Views: 15941

Re: Python Plugin : Broadlink RM2 V4

What you need to do: Do not use the plugin until you do not have been able to connect to your RM Mini 3 manually. You will found all information on Github. Once you have been able to connect manually, lets reconfigure the plugin, this should work.. this work for others. Can you give a link to githu...