Pizigate / Zigate not working Topic is solved

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

Moderator: leecollings

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

Re: Pizigate / Zigate not working

Post by pipiche »

pgielen wrote: Tuesday 09 April 2019 12:24 By the way, I entered the gpio sequence to set production mode in /etc/rc.local so that if the pi reboots, Pizigate will still work.
I think this is a pretty good approach.
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: 2016
Joined: Monday 02 April 2018 20:33
Target OS: Raspberry Pi / ODroid
Domoticz version: beta
Location: France
Contact:

Re: Pizigate / Zigate not working

Post by pipiche »

pgielen wrote: Monday 08 April 2019 20:08
pipiche wrote: Monday 08 April 2019 10:13 Did you do an Erase PDM ?
BTW the blue Pizigate LED keeps blinking all of the time. Is it supposed to do that? A result of setting the permit join to 255?
Correct. 255 make the Led blinking for ever. Which means you can pair new devices all of the time.
If you want to set to 0 (in order to disable Pairing new HW), do it first with 1 restart the plugin and then 0 restart the plugin.
As 0 as not impact at all
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: 2016
Joined: Monday 02 April 2018 20:33
Target OS: Raspberry Pi / ODroid
Domoticz version: beta
Location: France
Contact:

Re: Pizigate / Zigate not working

Post by pipiche »

domogijs wrote: Monday 08 April 2019 21:37 I have the same problems as Pgielen.

If i configure the plugin an choose PI for model this is not saved/updated. It is saved as usb.

Anybody ideas?

Greets Gijs
Just do a git pull to get 4.1.4 , this is fixed now
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
domogijs
Posts: 99
Joined: Monday 17 August 2015 23:18
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Pizigate / Zigate not working

Post by domogijs »

When I start the plugin I get these errors: 2019-04-10 20:09:00.774 Error: (Zigate volg) onMessage : Frame size is bad, computed = 12 received = 21
2019-04-10 20:09:00.774 Error: (Zigate volg) onMessage : Frame CRC is bad, computed = 105 received = 151

Anybody ideas

Greets gijs
Raspberry Pi3, RFlink, PiZigate, Yeelight, klikaanklikuit, Kodi, harmony hub, Zwave, ThermoSmart, XiaomiGateway (Aqara), Google home hub, roomba,
pipiche
Posts: 2016
Joined: Monday 02 April 2018 20:33
Target OS: Raspberry Pi / ODroid
Domoticz version: beta
Location: France
Contact:

Re: Pizigate / Zigate not working

Post by pipiche »

This issue is related to the Software Reset done just after the Erase PDM.
Make sure that you have Erase PDM set to False , otherwise every time you'll restart you will remove all information from Zigate

Here is the reference to the bug :
https://github.com/fairecasoimeme/ZiGate/issues/164
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
domogijs
Posts: 99
Joined: Monday 17 August 2015 23:18
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Pizigate / Zigate not working

Post by domogijs »

Ok thanks!
Raspberry Pi3, RFlink, PiZigate, Yeelight, klikaanklikuit, Kodi, harmony hub, Zwave, ThermoSmart, XiaomiGateway (Aqara), Google home hub, roomba,
domogijs
Posts: 99
Joined: Monday 17 August 2015 23:18
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Pizigate / Zigate not working

Post by domogijs »

Ok thanks.

I also successfully added ikea lamps now.
Raspberry Pi3, RFlink, PiZigate, Yeelight, klikaanklikuit, Kodi, harmony hub, Zwave, ThermoSmart, XiaomiGateway (Aqara), Google home hub, roomba,
User avatar
pgielen
Posts: 91
Joined: Monday 18 February 2019 14:44
Target OS: Raspberry Pi / ODroid
Domoticz version: 2020.2
Location: Boxmeer
Contact:

Re: Pizigate / Zigate not working

Post by pgielen »

domogijs wrote: Wednesday 10 April 2019 22:10 I also successfully added ikea lamps now.
So did I, today!
https://robothuis.nl, RPi4B, RFXCOM XL, Aeotec Z-Stick, ESP Easy, Weatherstation, several switches and sensors, Ikea Trädfri, Philips Hue, Foscam, Reolink, Lyric T6, Ring
pipiche
Posts: 2016
Joined: Monday 02 April 2018 20:33
Target OS: Raspberry Pi / ODroid
Domoticz version: beta
Location: France
Contact:

Re: Pizigate / Zigate not working

Post by pipiche »

PS/ On the beta branche you have even now the Over-The-Air upgrade of Ikea/Tradfri firmware ;-)
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
domogijs
Posts: 99
Joined: Monday 17 August 2015 23:18
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Pizigate / Zigate not working

Post by domogijs »

Good there is active deleopment going on. Thanks for the gpio tip (i found out the hard way :))

I sam trying to update but i dont know wich path.

./JennicModuleProgrammer -V 6 -P 115200 -f "<path to bin>" -s / dev / ttyUSB0

What to fill out over there?

Sorry i am noob

Greets Gijs
Raspberry Pi3, RFlink, PiZigate, Yeelight, klikaanklikuit, Kodi, harmony hub, Zwave, ThermoSmart, XiaomiGateway (Aqara), Google home hub, roomba,
pipiche
Posts: 2016
Joined: Monday 02 April 2018 20:33
Target OS: Raspberry Pi / ODroid
Domoticz version: beta
Location: France
Contact:

Re: Pizigate / Zigate not working

Post by pipiche »

domogijs wrote: Saturday 13 April 2019 10:38 Good there is active deleopment going on. Thanks for the gpio tip (i found out the hard way :))

I sam trying to update but i dont know wich path.

./JennicModuleProgrammer -V 6 -P 115200 -f "<path to bin>" -s / dev / ttyUSB0

What to fill out over there?

Sorry i am noob

Greets Gijs
This is quiet Zigate HW related. I suggest that you use : https://zigate.fr/forum/ there is an English channel, where you can report the issue.

But here is where you can find the latest firmware version: https://github.com/fairecasoimeme/ZiGat ... ag/Release
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
domogijs
Posts: 99
Joined: Monday 17 August 2015 23:18
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Pizigate / Zigate not working

Post by domogijs »

hmm reboot still also gives the firmware issue

this is how the file looks like. What am i doing wrong?

#!/bin/sh -e
#
# rc.local
#
# This script is executed at the end of each multiuser runlevel.
# Make sure that the script will "exit 0" on success or any other
# value on error.
#
# In order to enable or disable this script just change the execution
# bits.
#
# By default this script does nothing.

gpio mode 0 out
gpio mode 2 out
gpio write 2 1
gpio write 0 0
gpio write 0 1
exit 0
Raspberry Pi3, RFlink, PiZigate, Yeelight, klikaanklikuit, Kodi, harmony hub, Zwave, ThermoSmart, XiaomiGateway (Aqara), Google home hub, roomba,
domogijs
Posts: 99
Joined: Monday 17 August 2015 23:18
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Pizigate / Zigate not working

Post by domogijs »

pipiche wrote: Saturday 13 April 2019 11:21
domogijs wrote: Saturday 13 April 2019 10:38 Good there is active deleopment going on. Thanks for the gpio tip (i found out the hard way :))

I sam trying to update but i dont know wich path.

./JennicModuleProgrammer -V 6 -P 115200 -f "<path to bin>" -s / dev / ttyUSB0

What to fill out over there?

Sorry i am noob

Greets Gijs
This is quiet Zigate HW related. I suggest that you use : https://zigate.fr/forum/ there is an English channel, where you can report the issue.

But here is where you can find the latest firmware version: https://github.com/fairecasoimeme/ZiGat ... ag/Release
seems like i am on tyhe right version allready: Zigate plugin 4.1.2 started

But still the PI flips to USB in setting up theb hardware.
Raspberry Pi3, RFlink, PiZigate, Yeelight, klikaanklikuit, Kodi, harmony hub, Zwave, ThermoSmart, XiaomiGateway (Aqara), Google home hub, roomba,
pipiche
Posts: 2016
Joined: Monday 02 April 2018 20:33
Target OS: Raspberry Pi / ODroid
Domoticz version: beta
Location: France
Contact:

Re: Pizigate / Zigate not working

Post by pipiche »

domogijs wrote: Saturday 13 April 2019 11:27
pipiche wrote: Saturday 13 April 2019 11:21
domogijs wrote: Saturday 13 April 2019 10:38 Good there is active deleopment going on. Thanks for the gpio tip (i found out the hard way :))

I sam trying to update but i dont know wich path.

./JennicModuleProgrammer -V 6 -P 115200 -f "<path to bin>" -s / dev / ttyUSB0

What to fill out over there?

Sorry i am noob

Greets Gijs
This is quiet Zigate HW related. I suggest that you use : https://zigate.fr/forum/ there is an English channel, where you can report the issue.

But here is where you can find the latest firmware version: https://github.com/fairecasoimeme/ZiGat ... ag/Release
seems like i am on tyhe right version allready: Zigate plugin 4.1.2 started

But still the PI flips to USB in setting up theb hardware.
Make sure you are on the latest version of the plugin, which seems not the case

Code: Select all

git pull
should make it and will fix the USB issue (which is not an issue)
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
domogijs
Posts: 99
Joined: Monday 17 August 2015 23:18
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Pizigate / Zigate not working

Post by domogijs »

pipiche wrote: Tuesday 09 April 2019 15:15
pgielen wrote: Tuesday 09 April 2019 12:24 By the way, I entered the gpio sequence to set production mode in /etc/rc.local so that if the pi reboots, Pizigate will still work.
I think this is a pretty good approach.
I try to achieve this but the pins go back to deafult after reboot. What am i doing wrong?

Code: Select all

#!/bin/sh -e
#
# rc.local
#
# This script is executed at the end of each multiuser runlevel.
# Make sure that the script will "exit 0" on success or any other
# value on error.
#
# In order to enable or disable this script just change the execution
# bits.
#
# By default this script does nothing.

gpio mode 0 out
gpio mode 2 out
gpio write 2 1
gpio write 0 0
gpio write 0 1

exit 0


Raspberry Pi3, RFlink, PiZigate, Yeelight, klikaanklikuit, Kodi, harmony hub, Zwave, ThermoSmart, XiaomiGateway (Aqara), Google home hub, roomba,
pipiche
Posts: 2016
Joined: Monday 02 April 2018 20:33
Target OS: Raspberry Pi / ODroid
Domoticz version: beta
Location: France
Contact:

Re: Pizigate / Zigate not working

Post by pipiche »

Is the script executable ? Did you check that is correctly executed ?

Instead of the gpio command, I would instead refer to the

Code: Select all

Tools/pi-zigate.sh run
. So if in the future there is some changes required, it will be automatically done without any changes to the rc.local
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
domogijs
Posts: 99
Joined: Monday 17 August 2015 23:18
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Pizigate / Zigate not working

Post by domogijs »

used the tool and works!

Thanks.

Greets Gijs
Raspberry Pi3, RFlink, PiZigate, Yeelight, klikaanklikuit, Kodi, harmony hub, Zwave, ThermoSmart, XiaomiGateway (Aqara), Google home hub, roomba,
pipiche
Posts: 2016
Joined: Monday 02 April 2018 20:33
Target OS: Raspberry Pi / ODroid
Domoticz version: beta
Location: France
Contact:

Re: Pizigate / Zigate not working

Post by pipiche »

pgielen wrote: Tuesday 09 April 2019 12:24 By the way, I entered the gpio sequence to set production mode in /etc/rc.local so that if the pi reboots, Pizigate will still work.
That is safe!
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
Sjuul70
Posts: 1
Joined: Thursday 10 October 2019 19:25
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Pizigate / Zigate not working

Post by Sjuul70 »

Code: Select all

sudo apt install python3-dev
sudo apt-get update
sudo apt-get upgrade
Raspberry pi 3B+
Raspbian Buster Lite

Happy pizigate-user now. :)
pipiche
Posts: 2016
Joined: Monday 02 April 2018 20:33
Target OS: Raspberry Pi / ODroid
Domoticz version: beta
Location: France
Contact:

Re: Pizigate / Zigate not working

Post by pipiche »

Sjuul70 wrote: Thursday 10 October 2019 19:50

Code: Select all

sudo apt install python3-dev
sudo apt-get update
sudo apt-get upgrade
Raspberry pi 3B+
Raspbian Buster Lite

Happy pizigate-user now. :)
Yep that is correct, Domoticz Python Framework requires python-dev
https://www.domoticz.com/wiki/Using_Python_plugins
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