zigate

Xiaomi, Ikea TRÅDFRI, Philips Hue and more.
Post Reply
jessy1984
Posts: 43
Joined: Tuesday 11 August 2015 14:58
Target OS: Raspberry Pi
Domoticz version: Beta
Contact:

zigate

Post by jessy1984 » Wednesday 30 May 2018 21:43

hi
i have installed zigate , well took me 5 hours to get it to work but finally its in the hardware list.
now what further ??

zigate plugin is installed

now i have to put it in permit join mode??

how must i do this ? there is no info i can find then just saying put it in permit join mode
were in domoticz can i do this

the wiki is also verry short with not much info
on zigate.fr i find the same

and my French is terrible so on that forum i 'm completely lost

User avatar
LouiS22
Posts: 482
Joined: Friday 27 February 2015 14:21
Target OS: Raspberry Pi
Domoticz version: beta
Location: Budapest, Hungary
Contact:

Re: zigate

Post by LouiS22 » Thursday 31 May 2018 9:43

Depends on your zigbee hardware, but in short you have to enable "accept new hardware" in domoticz. Then you have to follow your zigbee device's inclusion (join) process. That's all, if everything went well, then you'll find your device in the device section.

hoeby
Posts: 26
Joined: Saturday 02 June 2018 11:05
Target OS: -
Domoticz version:
Contact:

Re: zigate

Post by hoeby » Thursday 14 June 2018 19:57

Today i started whit my zigate, i choose for the version whit wifi.
The assembly is easy.

A small manual about How did i do the setup (maybe it is not the correct way, but it worked).
First check the versions Domoticz must be version 3.87xx or higher.
Python must be version 3.4 or higher.

Which version Python version is installed?:
- Open putty and make a SSH connection whit your raspberry pi
- Give the command: python3 -V
- It will respond whit your python version.

how to install Python (if necessary):
- Open putty and make a SSH connection whit your raspberry pi
- Give the command: sudo apt install python3
- Python will be installed

***Add Zigate plugin to domoticz***
- Open putty and make a SSH connection whit your raspberry pi
- Go to the plugin directory, by command: cd domoticz/plugins
- Give the command: git clone https://github.com/sasu-drooz/Domoticz-Zigate.git
- When the clone is done, give the command: sudo /etc/init.d/domoticz.sh restart
- Domoticz will restart

Do a check: Go to setup-->hardware.
In the pull-down menu "type", the zigate plugin is added

***Update the Zigate***
- Open putty and make a SSH connection whit your raspberry pi
- Go to the plugin directory, by command: cd domoticz/plugins/Domoticz-Zigate
- Give the command: git pull
- When done, give the command: sudo /etc/init.d/domoticz.sh restart
- Domoticz will restart

***Zigate wifi gateway setup***
- Connect the gateway to a powerconnection
- Search the SSID whit a wifi device. SSID name = "Zigate-XXXX". The XXXX are the last 4 digits of the mac address
- Login on the SSID. The password is "adminXXXX". The XXXX are the last 4 digits of the mac address
- Open a browser and connect to http://192.168.4.1
- The setup page will open, fill in the data. WATCH OUT, no DHCP possible. Needs to be a fixt IP address
- When ready, click on SAVE

Go to domoticz browser. To setup-->hardware
Add the zigate and fill in all the data. Port number needs to be 9999
Default the channel is on 11. But there are zigbee devices which don't work with that number. I changed it to 13 and no problems.
When added in domoticz. Go to the LOG page to check is the zigate is ready.

Now you are ready to connect devices.
At the first moment i had problems adding devices. I cound't find the paring mode.
Don't know if i did i right, i putt the zigate debug mode from NONE to CONNECTIONS ONLY.
After that i could connect the device.

Have fun whit it


The only thing i discovered and need a look over.
I also have the xiaomu gateway. All devices connected whit that gateway also gives a battery voltage.
Whit the zigate i only have the switch function, but not a battery voltage.
I hope to find how the zigate can give that information. Can be usefull when the battery is empty, to send automatically an e-mail

jessy1984
Posts: 43
Joined: Tuesday 11 August 2015 14:58
Target OS: Raspberry Pi
Domoticz version: Beta
Contact:

Re: zigate

Post by jessy1984 » Sunday 08 July 2018 12:35

hi thank you for the info

i am trieing to ad an Ikea tradfri bulb

i did set the channel to 13
and debug to connection only

this cous zigate wasnt recieving anything

now it dous recieve the bulb but just says

Code: Select all

2018-07-08 12:24:31.692 (zigate) Sending 14 bytes of data 
2018-07-08 12:24:31.792 (zigate) Received 77 bytes of data 
2018-07-08 12:24:31.792 (zigate) Received 2 bytes of data 
2018-07-08 12:24:31.793 (zigate) Received 2 bytes of data 
2018-07-08 12:24:31.793 (zigate) Received 1 bytes of data 
2018-07-08 12:24:31.793 (zigate) Received 1 bytes of data 
2018-07-08 12:24:31.793 (zigate) Received 1 bytes of data 
2018-07-08 12:24:31.793 (zigate) Received 2 bytes of data 
2018-07-08 12:24:31.793 (zigate) Received 1 bytes of data 
2018-07-08 12:24:31.793 (zigate) Received 1 bytes of data 
2018-07-08 12:24:31.793 (zigate) Received 2 bytes of data 
2018-07-08 12:24:31.793 (zigate) Received 2 bytes of data 
2018-07-08 12:24:31.793 (zigate) Received 1 bytes of data 
2018-07-08 12:24:31.793 (zigate) Received 1 bytes of data 
2018-07-08 12:24:31.793 (zigate) Received 1 bytes of data 
2018-07-08 12:24:31.793 (zigate) Received 1 bytes of data 
2018-07-08 12:24:31.794 (zigate) onMessage called 
in log

nothing is added to devices

but what i do see now after i restarted domotics is again an other error

Code: Select all

2018-07-08 12:24:41.822 (zigate) onMessage called 
2018-07-08 12:24:41.822 (zigate) onMessage called 
2018-07-08 12:24:41.820 Error: (zigate) 'onMessage' failed 'KeyError'. 
2018-07-08 12:24:41.820 Error: (zigate) ----> Line 307 in /home/pi/domoticz/plugins/domoticz-zigate/plugin.py, function onMessage 
2018-07-08 12:24:41.820 Error: (zigate) ----> Line 121 in /home/pi/domoticz/plugins/domoticz-zigate/plugin.py, function onMessage 
2018-07-08 12:24:41.820 Error: (zigate) ----> Line 374 in /home/pi/domoticz/plugins/domoticz-zigate/plugin.py, function ZigateDecode 
2018-07-08 12:24:41.820 Error: (zigate) ----> Line 531 in /home/pi/domoticz/plugins/domoticz-zigate/plugin.py, function ZigateRead 
2018-07-08 12:24:41.820 Error: (zigate) ----> Line 707 in /home/pi/domoticz/plugins/domoticz-zigate/plugin.py, function Decode8043 

jessy1984
Posts: 43
Joined: Tuesday 11 August 2015 14:58
Target OS: Raspberry Pi
Domoticz version: Beta
Contact:

Re: zigate

Post by jessy1984 » Sunday 08 July 2018 14:58

i dont get the error anymore

and debug is set to all
this is the log

Code: Select all

8 Status: (zigate) Initialized version 2.3.5, author 'zaraki673' 
2018-07-08 14:48:34.814 Status: RFXCOM: Using serial port: /dev/ttyUSB1 
2018-07-08 14:48:35.465 Error: RFXCOM: Invalid data received!.... 
2018-07-08 14:49:23.869 (zigate) Decode8000 - Reception status : Success, SQN : 45, Message : 
2018-07-08 14:49:23.869 (zigate) ZigateDecode - decodind data : 0180450210021754760210bdec02110211b103 
2018-07-08 14:49:23.869 (zigate) ZigateRead - decoded data : 0180450007547600bdec0101b103 
2018-07-08 14:49:23.869 (zigate) ZigateRead - Message Type : 8045, Data : 7600bdec0101, RSSI : b1, Length : 0007, Checksum : 54 
2018-07-08 14:49:23.869 (zigate) ZigateRead - MsgType 8045 - Reception Active endpoint response : 0180450007547600bdec0101b103 
2018-07-08 14:49:23.869 (zigate) Decode8045 - Reception Active endpoint response : SQN : 76, Status 00, short Addr bdec, EP count 01, Ep list 01 
2018-07-08 14:49:28.351 Status: New sensors allowed for 5 minutes... 
2018-07-08 14:49:33.748 (zigate) Pushing 'onHeartbeatCallback' on to queue 
2018-07-08 14:49:33.786 (zigate) Processing 'onHeartbeatCallback' message 
2018-07-08 14:49:33.786 (zigate) Calling message handler 'onHeartbeat'. 
2018-07-08 14:49:33.787 (zigate) ListOfDevices : {'bdec': {'Heartbeat': '0', 'Battery': {}, 'Ep': {'01': {}}, 'ZDeviceID': {}, 'IEEE': '90fd9ffffeec22c9', 'Status': '8045', 'ProfileID': {}, 'Model': {}, 'MacCapa': '8e', 'RIA': '0', 'Type': {}}} 
2018-07-08 14:49:33.787 (zigate) Envoie une demande Simple Descriptor request pour avoir les informations du EP :01, du device adresse : bdec 
2018-07-08 14:49:33.787 (zigate) sendZigateCmd - length is : 0003 
2018-07-08 14:49:33.787 (zigate) getChecksum - Checksum : 0x10 
2018-07-08 14:49:33.787 (zigate) ZigateEncode - Encodind data : 0043 
2018-07-08 14:49:33.787 (zigate) Transcode in : 0043 / out :021043 
2018-07-08 14:49:33.787 (zigate) ZigateEncode - Encodind data : 0003 
2018-07-08 14:49:33.787 (zigate) Transcode in : 0003 / out :02100213 
2018-07-08 14:49:33.787 (zigate) ZigateEncode - Encodind data : 10 
2018-07-08 14:49:33.788 (zigate) Transcode in : 10 / out :10 
2018-07-08 14:49:33.788 (zigate) ZigateEncode - Encodind data : bdec01 
2018-07-08 14:49:33.788 (zigate) Transcode in : bdec01 / out :bdec0211 
2018-07-08 14:49:33.788 (zigate) sendZigateCmd - Comand send : 010210430210021310bdec021103 
2018-07-08 14:49:33.788 (zigate) Pushing 'WriteDirective' on to queue 
2018-07-08 14:49:33.788 (zigate) HB count = 5 
2018-07-08 14:49:33.788 (zigate) Processing 'WriteDirective' message 
2018-07-08 14:49:33.788 (zigate) Sending 14 bytes of data 
2018-07-08 14:49:33.788 (zigate) 01 02 10 43 02 10 02 13 10 bd ec 02 11 03 .. .. .. .. .. .. ...C.....��... 
2018-07-08 14:49:33.864 (zigate) Pushing 'ReadEvent' on to queue 
2018-07-08 14:49:33.888 (zigate) Processing 'ReadEvent' message 
2018-07-08 14:49:33.888 (zigate) Received 95 bytes of data 
2018-07-08 14:49:33.889 (zigate) 01 80 02 10 02 10 02 15 b1 02 10 77 02 10 43 02 10 03 01 80 .�......�..w..C....� 
2018-07-08 14:49:33.889 (zigate) 43 02 10 28 f1 77 02 10 bd ec 22 02 11 c0 5e 02 12 02 10 02 C..(�w..��"..�^..... 
2018-07-08 14:49:33.889 (zigate) 12 02 19 02 10 02 10 02 10 02 13 02 10 02 14 02 10 02 15 02 .................... 
2018-07-08 14:49:33.889 (zigate) 10 02 16 02 10 02 18 02 13 02 10 02 1b 02 15 10 02 10 02 14 .................... 
2018-07-08 14:49:33.889 (zigate) 02 10 02 15 02 10 19 02 10 20 10 02 10 b1 03 .. .. .. .. .. .............�. 
2018-07-08 14:49:33.889 (zigate) Pushing 'onMessageCallback' on to queue 
2018-07-08 14:49:33.889 (zigate) Processing 'onMessageCallback' message 
2018-07-08 14:49:33.889 (zigate) Calling message handler 'onMessage'. 
2018-07-08 14:49:33.889 (zigate) onMessage called 
2018-07-08 14:49:33.889 (zigate) ZigateDecode - decodind data : 0180021002100215b1021077021043021003 
2018-07-08 14:49:33.889 (zigate) ZigateRead - decoded data : 0180000005b1007700430003 
2018-07-08 14:49:33.889 (zigate) ZigateRead - Message Type : 8000, Data : 00770043, RSSI : 00, Length : 0005, Checksum : b1 
2018-07-08 14:49:33.890 (zigate) ZigateRead - MsgType 8000 - reception status : 0180000005b1007700430003 
2018-07-08 14:49:33.890 (zigate) Decode8000 - Reception status : Success, SQN : 43, Message : 
2018-07-08 14:49:33.890 (zigate) ZigateDecode - decodind data : 018043021028f1770210bdec220211c05e021202100212021902100210021002130210021402100215021002160210021802130210021b0215100210021402100215021019021020100210b103 
2018-07-08 14:49:33.890 (zigate) ZigateRead - decoded data : 0180430028f17700bdec2201c05e0200020900000003000400050006000803000b051000040005001900201000b103 
2018-07-08 14:49:33.891 (zigate) ZigateRead - Message Type : 8043, Data : 7700bdec2201c05e0200020900000003000400050006000803000b051000040005001900201000, RSSI : b1, Length : 0028, Checksum : f1 
2018-07-08 14:49:33.891 (zigate) ZigateRead - MsgType 8043 - Reception Simple descriptor response 0180430028f17700bdec2201c05e0200020900000003000400050006000803000b051000040005001900201000b103 
2018-07-08 14:49:33.891 (zigate) Decode8043 - Reception Simple descriptor response : SQN : 77, Status : 00, short Addr : bdec, Lenght : 22 
2018-07-08 14:49:33.891 (zigate) Decode8043 - Reception Simple descriptor response : EP : 01, Profile : c05e, Device Id : 0200, Bit Field : 02 
2018-07-08 14:49:33.891 (zigate) Decode8043 - Reception Simple descriptor response : In Cluster Count : 09 
2018-07-08 14:49:33.891 (zigate) Decode8043 - Reception Simple descriptor response : Cluster in: 0000 
2018-07-08 14:49:33.891 (zigate) Decode8043 - Reception Simple descriptor response : Cluster in: 0003 
2018-07-08 14:49:33.891 (zigate) Decode8043 - Reception Simple descriptor response : Cluster in: 0004 
2018-07-08 14:49:33.891 (zigate) Decode8043 - Reception Simple descriptor response : Cluster in: 0005 
2018-07-08 14:49:33.891 (zigate) Decode8043 - Reception Simple descriptor response : Cluster in: 0006 
2018-07-08 14:49:33.891 (zigate) Decode8043 - Reception Simple descriptor response : Cluster in: 0008 
2018-07-08 14:49:33.891 (zigate) Decode8043 - Reception Simple descriptor response : Cluster in: 0300 
2018-07-08 14:49:33.891 (zigate) Decode8043 - Reception Simple descriptor response : Cluster in: 0b05 
2018-07-08 14:49:33.892 (zigate) Decode8043 - Reception Simple descriptor response : Cluster in: 1000 
2018-07-08 14:49:33.892 (zigate) Decode8043 - Reception Simple descriptor response : Out Cluster Count : 04 
2018-07-08 14:49:33.892 (zigate) Decode8043 - Reception Simple descriptor response : Cluster out: 0000 
2018-07-08 14:49:33.892 (zigate) Decode8043 - Reception Simple descriptor response : Cluster out: 0003 
2018-07-08 14:49:33.892 (zigate) Decode8043 - Reception Simple descriptor response : Cluster out: 0004 
2018-07-08 14:49:33.892 (zigate) Decode8043 - Reception Simple descriptor response : Cluster out: 0005 
2018-07-08 14:49:43.750 (zigate) Pushing 'onHeartbeatCallback' on to queue 
2018-07-08 14:49:43.759 (zigate) Processing 'onHeartbeatCallback' message 
2018-07-08 14:49:43.759 (zigate) Calling message handler 'onHeartbeat'. 
2018-07-08 14:49:43.760 (zigate) ListOfDevices : {'bdec': {'Heartbeat': '0', 'Battery': {}, 'Ep': {'01': {'0008': {}, '0006': {}, '0005': {}, '0b05': {}, '0300': {}, '0004': {}, '0003': {}, '1000': {}, '0000': {}}}, 'ZDeviceID': '0200', 'IEEE': '90fd9ffffeec22c9', 'Status': '8043', 'ProfileID': 'c05e', 'Model': {}, 'MacCapa': '8e', 'RIA': '0', 'Type': {}}} 
2018-07-08 14:49:43.760 (zigate) HB count = 6 
2018-07-08 14:49:53.752 (zigate) Pushing 'onHeartbeatCallback' on to queue 
2018-07-08 14:49:53.776 (zigate) Processing 'onHeartbeatCallback' message 
2018-07-08 14:49:53.776 (zigate) Calling message handler 'onHeartbeat'. 
2018-07-08 14:49:53.777 (zigate) ListOfDevices : {'bdec': {'Heartbeat': '1', 'Battery': {}, 'Ep': {'01': {'0008': {}, '0006': {}, '0005': {}, '0b05': {}, '0300': {}, '0004': {}, '0003': {}, '1000': {}, '0000': {}}}, 'ZDeviceID': '0200', 'IEEE': '90fd9ffffeec22c9', 'Status': '8043', 'ProfileID': 'c05e', 'Model': {}, 'MacCapa': '8e', 'RIA': '0', 'Type': {}}} 
2018-07-08 14:49:53.777 (zigate) HB count = 7 
2018-07-08 14:50:03.753 (zigate) Pushing 'onHeartbeatCallback' on to queue 
2018-07-08 14:50:03.794 (zigate) Processing 'onHeartbeatCallback' message 
2018-07-08 14:50:03.794 (zigate) Calling message handler 'onHeartbeat'. 
2018-07-08 14:50:03.794 (zigate) ListOfDevices : {'bdec': {'Heartbeat': '2', 'Battery': {}, 'Ep': {'01': {'0008': {}, '0006': {}, '0005': {}, '0b05': {}, '0300': {}, '0004': {}, '0003': {}, '1000': {}, '0000': {}}}, 'ZDeviceID': '0200', 'IEEE': '90fd9ffffeec22c9', 'Status': '8043', 'ProfileID': 'c05e', 'Model': {}, 'MacCapa': '8e', 'RIA': '0', 'Type': {}}} 

but still do not get anything in devices
also tried to update zigate firmware
but i do not get a com port to select for the usb on my computer
drivers i did install its windows 10

starting to think this zigate is just waste of time and money
on the website of zigate there is also nowere to contact someone for help

jessy1984
Posts: 43
Joined: Tuesday 11 August 2015 14:58
Target OS: Raspberry Pi
Domoticz version: Beta
Contact:

Re: zigate

Post by jessy1984 » Friday 13 July 2018 19:40

little update,

after doing a firmware update to the zigate and erase eeprom
the zigate dous work , or i tought

i was able to ad the tradfri bulb
3 new devices were added
when i now operate the swich in domoticz i see that zigate is sending a signal but no responce from the lamp

after that there was an update from domoticz
i did this update and again lots of errors
cleared the eeprom again from the zigate
added the bulb again but still same problem

i can not switch the lamp on of dim or also can not change color

salopette
Posts: 30
Joined: Tuesday 07 March 2017 22:03
Target OS: Raspberry Pi
Domoticz version: V3.6882
Location: Germany
Contact:

Re: zigate

Post by salopette » Thursday 19 July 2018 13:38

how can you install it on Windows? Did not find anything in the wiki!

Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests