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

Xiaomi, Ikea TRÅDFRI, Philips Hue and more.

Moderator: leecollings

Post Reply
User avatar
waltervl
Posts: 5779
Joined: Monday 28 January 2019 18:48
Target OS: Linux
Domoticz version: 2024.7
Location: NL
Contact:

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

Post 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' 
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
User avatar
waltervl
Posts: 5779
Joined: Monday 28 January 2019 18:48
Target OS: Linux
Domoticz version: 2024.7
Location: NL
Contact:

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

Post by waltervl »

As an addition, I use stable Domoticz (4.9701)
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
pipiche
Posts: 2009
Joined: Monday 02 April 2018 20:33
Target OS: Raspberry Pi / ODroid
Domoticz version: beta
Location: France
Contact:

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

Post 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
Zigbee for Domoticz plugin / RPI3B+ / Electrolama ZZH-P / 45 devices

If the plugin provides you value, you can support me with a donation Paypal.

Wiki is available here.

Zigbee for Domoticz FAQ
User avatar
waltervl
Posts: 5779
Joined: Monday 28 January 2019 18:48
Target OS: Linux
Domoticz version: 2024.7
Location: NL
Contact:

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

Post 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.
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
pipiche
Posts: 2009
Joined: Monday 02 April 2018 20:33
Target OS: Raspberry Pi / ODroid
Domoticz version: beta
Location: France
Contact:

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

Post by pipiche »

when was it ? We had indeed such issue, but this has been fixed.
Try once more with the recent pre-4.1
Zigbee for Domoticz plugin / RPI3B+ / Electrolama ZZH-P / 45 devices

If the plugin provides you value, you can support me with a donation Paypal.

Wiki is available here.

Zigbee for Domoticz FAQ
User avatar
waltervl
Posts: 5779
Joined: Monday 28 January 2019 18:48
Target OS: Linux
Domoticz version: 2024.7
Location: NL
Contact:

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

Post 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?
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
pipiche
Posts: 2009
Joined: Monday 02 April 2018 20:33
Target OS: Raspberry Pi / ODroid
Domoticz version: beta
Location: France
Contact:

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

Post 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
Zigbee for Domoticz plugin / RPI3B+ / Electrolama ZZH-P / 45 devices

If the plugin provides you value, you can support me with a donation Paypal.

Wiki is available here.

Zigbee for Domoticz FAQ
User avatar
waltervl
Posts: 5779
Joined: Monday 28 January 2019 18:48
Target OS: Linux
Domoticz version: 2024.7
Location: NL
Contact:

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

Post by waltervl »

OK I switched to Domoticz Beta and now it is working.....
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
pipiche
Posts: 2009
Joined: Monday 02 April 2018 20:33
Target OS: Raspberry Pi / ODroid
Domoticz version: beta
Location: France
Contact:

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

Post by pipiche »

Beta and pré-4.1 are aligned


Envoyé de mon iPhone en utilisant Tapatalk
Zigbee for Domoticz plugin / RPI3B+ / Electrolama ZZH-P / 45 devices

If the plugin provides you value, you can support me with a donation Paypal.

Wiki is available here.

Zigbee for Domoticz FAQ
User avatar
waltervl
Posts: 5779
Joined: Monday 28 January 2019 18:48
Target OS: Linux
Domoticz version: 2024.7
Location: NL
Contact:

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

Post 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.
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
pipiche
Posts: 2009
Joined: Monday 02 April 2018 20:33
Target OS: Raspberry Pi / ODroid
Domoticz version: beta
Location: France
Contact:

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

Post by pipiche »

Strange, this was not the case anymore after the weekend !


Envoyé de mon iPhone en utilisant Tapatalk
Zigbee for Domoticz plugin / RPI3B+ / Electrolama ZZH-P / 45 devices

If the plugin provides you value, you can support me with a donation Paypal.

Wiki is available here.

Zigbee for Domoticz FAQ
pfloryann
Posts: 178
Joined: Wednesday 09 January 2019 10:14
Target OS: Raspberry Pi / ODroid
Domoticz version: 4.1
Contact:

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

Post 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 '
Domoticz on Raspberry Pi 4 with Zigbee2mqtt and zigbee devices (Xiaomi, Ikea,Tuya, Philips, Osram), Broadlink, Solar power Victron Energy
pipiche
Posts: 2009
Joined: Monday 02 April 2018 20:33
Target OS: Raspberry Pi / ODroid
Domoticz version: beta
Location: France
Contact:

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

Post 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.
Zigbee for Domoticz plugin / RPI3B+ / Electrolama ZZH-P / 45 devices

If the plugin provides you value, you can support me with a donation Paypal.

Wiki is available here.

Zigbee for Domoticz FAQ
pipiche
Posts: 2009
Joined: Monday 02 April 2018 20:33
Target OS: Raspberry Pi / ODroid
Domoticz version: beta
Location: France
Contact:

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

Post 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.
Zigbee for Domoticz plugin / RPI3B+ / Electrolama ZZH-P / 45 devices

If the plugin provides you value, you can support me with a donation Paypal.

Wiki is available here.

Zigbee for Domoticz FAQ
User avatar
waltervl
Posts: 5779
Joined: Monday 28 January 2019 18:48
Target OS: Linux
Domoticz version: 2024.7
Location: NL
Contact:

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

Post 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)
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
pipiche
Posts: 2009
Joined: Monday 02 April 2018 20:33
Target OS: Raspberry Pi / ODroid
Domoticz version: beta
Location: France
Contact:

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

Post by pipiche »

Please read the document 00-Upgrade-from-stable


Envoyé de mon iPhone en utilisant Tapatalk
Zigbee for Domoticz plugin / RPI3B+ / Electrolama ZZH-P / 45 devices

If the plugin provides you value, you can support me with a donation Paypal.

Wiki is available here.

Zigbee for Domoticz FAQ
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest