Page 1 of 1

ZiGate plugin beta (or pre-4.1) not working for me

Posted: Tuesday 19 February 2019 21:28
by waltervl
I used the stable plugin. Later updated to the beta, still working. I updated the ZiGate to firmware 3.0f and updated to the pre-4.1 plugin branch. This was not working, no reaction from ZiGate (no flashing blue led) and only 2 lines in the logging. Every change to the plugin configuration in Domoticz Hardware caused Domoticz to stall. It was not crashing only no reaction from website, the logging on /tmp/domoticz.txt still continued. I had to stop and start the service again to get Domoticz react.

As flashing firmware also means reconnecting all devices I decided to start fresh: Delete the plugin folder and reinstall plugin (beta/pre-4.1)
After rebooting PC still the same behavior. No rection from ZiGate Device (no flashing blue led)
Installed the stable branch of the plugin again with git checkout.
What triggered me then was that after installing the plugin (without deleting the hardware configuration in Domoticz) and going back to stable complained about parameter Join that was empty, I entererd 254 and it started working again.

So 2 things.
1. Install pre-4.1/beta is not working with fresh install. Stable install is OK.
2. updating from stable to pre-4.1/beta is not working.

The only 2 logging line from beta/pre-4.1

Code: Select all

2019-02-19 21:04:02.615 Status: (ZiGate) Entering work loop.
2019-02-19 21:04:02.615 Status: (ZiGate) Initialized version pre-4.1, author 'zaraki673 pipiche38' 

Re: ZiGate plugin beta (or pre-4.1) not working for me

Posted: Tuesday 19 February 2019 22:01
by waltervl
As an addition, I use stable Domoticz (4.9701)

Re: ZiGate plugin beta (or pre-4.1) not working for me

Posted: Wednesday 20 February 2019 14:55
by pipiche
As you have flash the Zigate with the most recent firmware, you have to start the Plugin one with the Erase PDM and Reset options set to True.
Can you try that ?

If it doesn't work, I suggest that you unplug/plug the Zigate from the USB slot

Re: ZiGate plugin beta (or pre-4.1) not working for me

Posted: Wednesday 20 February 2019 19:31
by waltervl
I have tried that. No show. It looks like plugin.py of pre-4.1 is not being executed. From stable it just works fine. Also when I change something in ZiGate Hardware configuration Domoticz stops. So it looks like more plugin related than ZiGate device related. The stable plugin can handle the updated ZiGate perfectly.
I am on python 3.6.7
On stable it is reporting that ZiGate is on 30f, Major version is 0003.

I tried setting debug level in the plugin to other values but that does not bringup anything else.

Re: ZiGate plugin beta (or pre-4.1) not working for me

Posted: Wednesday 20 February 2019 20:08
by pipiche
when was it ? We had indeed such issue, but this has been fixed.
Try once more with the recent pre-4.1

Re: ZiGate plugin beta (or pre-4.1) not working for me

Posted: Wednesday 20 February 2019 20:42
by waltervl
I tried it the first time just before posting the answer, around 19.15 hrs. Retried it just now with updated pre-4.1
Still no change in reaction.
I also have to say I am running on a small PC board with a fresh Ubuntu 18.04 LTS so no Raspberry Pi.
Perhaps it is only me having this issue. Is there a way I can debug? There is no logging python console to be shown for example?

Re: ZiGate plugin beta (or pre-4.1) not working for me

Posted: Wednesday 20 February 2019 20:45
by pipiche
Can you try removing the __pycache__ folders.


To trouble shoot, you might also do the following

From the Domoticz-Zigate folder

% touch Domoticz.py
% python3 plugin.py

And see what happens

After remove Domoticz.py ( which was created with touch)


Envoyé de mon iPhone en utilisant Tapatalk

Re: ZiGate plugin beta (or pre-4.1) not working for me

Posted: Thursday 21 February 2019 0:20
by waltervl
OK I switched to Domoticz Beta and now it is working.....

Re: ZiGate plugin beta (or pre-4.1) not working for me

Posted: Thursday 21 February 2019 8:04
by pipiche
Beta and pré-4.1 are aligned


Envoyé de mon iPhone en utilisant Tapatalk

Re: ZiGate plugin beta (or pre-4.1) not working for me

Posted: Thursday 21 February 2019 8:29
by waltervl
No, I do not mean the plug-in but it looks like the Domoticz application has to be on Beta (v4.1xxxxxx) in order to have the beta/pre-4.1 plugin running correctly.

Re: ZiGate plugin beta (or pre-4.1) not working for me

Posted: Thursday 21 February 2019 8:31
by pipiche
Strange, this was not the case anymore after the weekend !


Envoyé de mon iPhone en utilisant Tapatalk

Re: ZiGate plugin beta (or pre-4.1) not working for me

Posted: Thursday 21 February 2019 17:35
by pfloryann
Zigate and domoticz not working after pre-4.1 plugin update ...i can't control anything ...all devices is stuck with last status

2019-02-21 18:33:24.681 Status: (Python Plugin Manager) Entering work loop.
2019-02-21 18:33:24.682 Status: (Python Plugin Manager) Initialized version 1.5.17, author 'ycahome'
2019-02-21 18:33:24.229 Error: (Zigate) failed to load 'plugin.py', Python Path used was '/home/pi/domoticz/plugins/Domoticz-Zigate/:/usr/lib/python35.zip:/usr/lib/python3.5:/usr/lib/python3.5/plat-arm-linux-gnueabihf:/usr/lib/python3.5/lib-dynload:/usr/local/lib/python3.5/dist-packages:/usr/lib/python3/dist-packages:/usr/lib/python3.5/dist-packages'.
2019-02-21 18:33:24.229 Error: (Zigate) Module Import failed, exception: 'SyntaxError'
2019-02-21 18:33:24.229 Error: (Zigate) Import detail: File: /home/pi/domoticz/plugins/Domoticz-Zigate/Modules/domoticz.py, Line: 901, offset: 30
2019-02-21 18:33:24.230 Error: (Zigate) Error Line ' else value == '00': # Off left
2019-02-21 18:33:24.230 '

Re: ZiGate plugin beta (or pre-4.1) not working for me

Posted: Sunday 24 February 2019 10:14
by pipiche
pfloryann wrote: Thursday 21 February 2019 17:35 Zigate and domoticz not working after pre-4.1 plugin update ...i can't control anything ...all devices is stuck with last status

2019-02-21 18:33:24.681 Status: (Python Plugin Manager) Entering work loop.
2019-02-21 18:33:24.682 Status: (Python Plugin Manager) Initialized version 1.5.17, author 'ycahome'
2019-02-21 18:33:24.229 Error: (Zigate) failed to load 'plugin.py', Python Path used was '/home/pi/domoticz/plugins/Domoticz-Zigate/:/usr/lib/python35.zip:/usr/lib/python3.5:/usr/lib/python3.5/plat-arm-linux-gnueabihf:/usr/lib/python3.5/lib-dynload:/usr/local/lib/python3.5/dist-packages:/usr/lib/python3/dist-packages:/usr/lib/python3.5/dist-packages'.
2019-02-21 18:33:24.229 Error: (Zigate) Module Import failed, exception: 'SyntaxError'
2019-02-21 18:33:24.229 Error: (Zigate) Import detail: File: /home/pi/domoticz/plugins/Domoticz-Zigate/Modules/domoticz.py, Line: 901, offset: 30
2019-02-21 18:33:24.230 Error: (Zigate) Error Line ' else value == '00': # Off left
2019-02-21 18:33:24.230 '
This is not relevant to pre-4.1, but to 'livolo' branch, for which we are doing some development.

Re: ZiGate plugin beta (or pre-4.1) not working for me

Posted: Sunday 24 February 2019 10:15
by pipiche
waltervl wrote: Tuesday 19 February 2019 21:28 I used the stable plugin. Later updated to the beta, still working. I updated the ZiGate to firmware 3.0f and updated to the pre-4.1 plugin branch. This was not working, no reaction from ZiGate (no flashing blue led) and only 2 lines in the logging. Every change to the plugin configuration in Domoticz Hardware caused Domoticz to stall. It was not crashing only no reaction from website, the logging on /tmp/domoticz.txt still continued. I had to stop and start the service again to get Domoticz react.

As flashing firmware also means reconnecting all devices I decided to start fresh: Delete the plugin folder and reinstall plugin (beta/pre-4.1)
After rebooting PC still the same behavior. No rection from ZiGate Device (no flashing blue led)
Installed the stable branch of the plugin again with git checkout.
What triggered me then was that after installing the plugin (without deleting the hardware configuration in Domoticz) and going back to stable complained about parameter Join that was empty, I entererd 254 and it started working again.

So 2 things.
1. Install pre-4.1/beta is not working with fresh install. Stable install is OK.
2. updating from stable to pre-4.1/beta is not working.

The only 2 logging line from beta/pre-4.1

Code: Select all

2019-02-19 21:04:02.615 Status: (ZiGate) Entering work loop.
2019-02-19 21:04:02.615 Status: (ZiGate) Initialized version pre-4.1, author 'zaraki673 pipiche38' 
We have fixed (or work-around) this issue with the latest pre-4.1 version. In fact that is a limitation of Domoticz stable 4.9700.

Re: ZiGate plugin beta (or pre-4.1) not working for me

Posted: Monday 25 February 2019 22:14
by waltervl
Thanks! Just updated to the latest plugin beta. For the time being I will stay on Domoticz beta as it looks to be more stable than Domoticz stable (but it could also be that I reinstalled Domoticz)

Re: ZiGate plugin beta (or pre-4.1) not working for me

Posted: Monday 25 February 2019 22:18
by pipiche
Please read the document 00-Upgrade-from-stable


Envoyé de mon iPhone en utilisant Tapatalk