Page 2 of 2

Re: Pizigate / Zigate not working

Posted: Tuesday 09 April 2019 15:15
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.

Re: Pizigate / Zigate not working

Posted: Tuesday 09 April 2019 15:18
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

Re: Pizigate / Zigate not working

Posted: Tuesday 09 April 2019 15:19
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

Re: Pizigate / Zigate not working

Posted: Wednesday 10 April 2019 20:14
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

Re: Pizigate / Zigate not working

Posted: Wednesday 10 April 2019 20:38
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

Re: Pizigate / Zigate not working

Posted: Wednesday 10 April 2019 21:49
by domogijs
Ok thanks!

Re: Pizigate / Zigate not working

Posted: Wednesday 10 April 2019 22:10
by domogijs
Ok thanks.

I also successfully added ikea lamps now.

Re: Pizigate / Zigate not working

Posted: Wednesday 10 April 2019 23:42
by pgielen
domogijs wrote: Wednesday 10 April 2019 22:10 I also successfully added ikea lamps now.
So did I, today!

Re: Pizigate / Zigate not working

Posted: Friday 12 April 2019 10:19
by pipiche
PS/ On the beta branche you have even now the Over-The-Air upgrade of Ikea/Tradfri firmware ;-)

Re: Pizigate / Zigate not working

Posted: Saturday 13 April 2019 10:38
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

Re: Pizigate / Zigate not working

Posted: Saturday 13 April 2019 11:21
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

Re: Pizigate / Zigate not working

Posted: Saturday 13 April 2019 11:23
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

Re: Pizigate / Zigate not working

Posted: Saturday 13 April 2019 11:27
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.

Re: Pizigate / Zigate not working

Posted: Saturday 13 April 2019 11:45
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)

Re: Pizigate / Zigate not working

Posted: Wednesday 17 April 2019 20:05
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



Re: Pizigate / Zigate not working

Posted: Wednesday 17 April 2019 21:10
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

Re: Pizigate / Zigate not working

Posted: Sunday 07 July 2019 12:22
by domogijs
used the tool and works!

Thanks.

Greets Gijs

Re: Pizigate / Zigate not working

Posted: Sunday 07 July 2019 12:26
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!

Re: Pizigate / Zigate not working

Posted: Thursday 10 October 2019 19:50
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. :)

Re: Pizigate / Zigate not working

Posted: Saturday 12 October 2019 22:53
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