Page 1 of 1

Zigate add support for Bitronhome devices

Posted: Wednesday 14 August 2019 15:44
by ahattink
Hello all,

I am new to Zigbee and just bought and installed the Zigate USB to my Domoticz setup.
Very impressed, especially with the admin interface.
I have multiple devices of Bitronhome, aka BitronVideo, aka SmaBit.
I paired the Smartplug without powermetering (902010/28) and this works flawlessly. On/Off in Domoticz puts the switch On/Off an on the switch itself Domoticz is updated.
I also paired an Door/Windows contact (902010/121A). Pairing results in an Device in the Devices tab. But the device is not updated when the door is opened/closed.
In the logging i see:

Code: Select all

2019-08-14 15:28:15.434 (Zigbee) Decode8401 MsgZoneStatus: 14
2019-08-14 15:28:16.395 (Zigbee) Decode8401 MsgZoneStatus: 14
2019-08-14 15:37:48.300 (Zigbee) Decode8401 MsgZoneStatus: 15
2019-08-14 15:37:49.318 (Zigbee) Decode8401 MsgZoneStatus: 15 
14 when i close the door and 15 when it is opened.
With an second device the codes are:

Code: Select all

2019-08-14 15:42:44.065 (Zigbee) Decode8401 MsgZoneStatus: 10
2019-08-14 15:42:45.075 (Zigbee) Decode8401 MsgZoneStatus: 10
2019-08-14 15:43:05.542 (Zigbee) Decode8401 MsgZoneStatus: 11
2019-08-14 15:43:06.503 (Zigbee) Decode8401 MsgZoneStatus: 11 
I think this brand/device types are not yet integrated. is this true and how to proceed to get them integrated?
Regards,
Arthur

Re: Zigate add support for Bitronhome devices

Posted: Thursday 15 August 2019 11:21
by pipiche
Thanks for the nice words, and very glad that somehow the pairing works. We can indeed extend the integration.

(1) Would you mind to switch to the beta branch (where we will do the integration) ? ( I just pushed an update which might make your door contact working)
(2) can you please attach the file Data/DeviceList-xx.txt ?
(3) What type of Device is created in Domoticz ? Is that a Switch or a Door widget ?

And to summarize :

- The smartplug works, no need for integration ?
- The Door contact require integration in order to get the status brought back to Domoticz ?

Re: Zigate add support for Bitronhome devices

Posted: Thursday 15 August 2019 13:34
by ahattink
Hi pipiche,

Thanks for your reply.
Just switched to Beta Branch and will report back.

The devicelist is attached.
DeviceList-11.txt
(9.5 KiB) Downloaded 101 times
Short ID: 66c7 and b624 are Bitronvideo (902010/121A) door/windows contacts.
Short ID: 470b and 275e are Bitronvideo (902010/28) smartplugs.
Short ID: 8701 is an Centralite Micro Door/Windows contact with temperature metering.

The Plugs works fine. No further integration needed.
The Door contact, please do further integration.
New: Centralite Door/Windows contact. The temperature sensor pairs fine, but the door/windows contact has the same issue as the Bitron one. The open/close state is not updated.

See attached screenshots of the device list in Domoticz.
Plug.PNG
Plug.PNG (11.6 KiB) Viewed 2094 times
Door.PNG
Door.PNG (15.61 KiB) Viewed 2094 times
Thanks a lot!
Arthur

Re: Zigate add support for Bitronhome devices

Posted: Thursday 15 August 2019 14:11
by pipiche
Thanks for the details. Will track the integration here:

https://github.com/pipiche38/Domoticz-Zigate/issues/466

Re: Zigate add support for Bitronhome devices

Posted: Thursday 15 August 2019 14:29
by pipiche
Could you kindly update the beta with a git pull and try the 2 door sensors

Re: Zigate add support for Bitronhome devices

Posted: Thursday 15 August 2019 17:06
by ahattink
Hi pipiche,

I did the git pull and there were 4 newer files.
To be sure i rebooted the PI, but the issue persists. No update on the close/open status of the door windows contact.
Also not for the Centralite Micro door/windows contact.

Re: Zigate add support for Bitronhome devices

Posted: Thursday 15 August 2019 18:33
by pipiche
Ok, so I need a bit more log/debug.
If you go to the Web Admin interface, you can enable Advanced and the in the Debuging session, could you please enable
debug Input
debutWidget
and then validate, please try to get some frames from the 2 sensors, and then attached the logs . I should be able to find my way

Re: Zigate add support for Bitronhome devices

Posted: Sunday 18 August 2019 17:22
by ahattink
Sorry for my late reply.... had some weekend stuff to do..
I did update Domoticz and the Plugin before this.

The logging of the Bitron door/windows contact:

Code: Select all

2019-08-18 17:16:37.773 (Zigbee) Too early for a new update of LastSeen b624
2019-08-18 17:16:37.774 (Zigbee) Decode8401 - MsgSQN: e4 MsgSrcAddr: b624 MsgEp:01 MsgClusterId: 0500 MsgZoneStatus: 0014 MsgExtStatus: 00 MsgZoneID: 00 MsgDelay: 0000
2019-08-18 17:16:37.775 (Zigbee) IAS Zone for device:b624 - alarm1: 0, alaram2: 0, tamper: 1, battery: 0, Support Reporting: 1, restore Reporting: 0, trouble: 0, acmain: 0, test: 0, battdef: 0
2019-08-18 17:16:37.776 (Zigbee) Decode8401 MsgZoneStatus: 14
2019-08-18 17:16:37.776 (Zigbee) MajDomoDevice - Device ID : 00124b00062ac55f - Device EP : 01 - Type : 0500 - Value : 0 - Hue : - Attribute_ :
2019-08-18 17:16:37.777 (Zigbee) MajDomoDevice - Type = Door
2019-08-18 17:16:37.777 (Zigbee) MajDomoDevice - NWKID = b624 IEEE = 00124b00062ac55f Unit = 58
2019-08-18 17:16:37.778 (Zigbee) MajDomoDevice - {'ClusterType': {'58': 'Door'}, '0500': {}, '0003': {}, '0000': {}}
2019-08-18 17:16:37.779 (Zigbee) MajDomoDevice - We have 1 EPs with ClusterType
2019-08-18 17:16:37.779 (Zigbee) MajDomoDevice - NWKID: b624 SwitchType: 11, DeviceType: Door, ClusterType: Door, old_nVal: 0 , old_sVal:
2019-08-18 17:16:38.787 (Zigbee) Too early for a new update of LastSeen b624
2019-08-18 17:16:38.789 (Zigbee) Decode8401 - MsgSQN: e5 MsgSrcAddr: b624 MsgEp:01 MsgClusterId: 0500 MsgZoneStatus: 0014 MsgExtStatus: 00 MsgZoneID: 00 MsgDelay: 0000
2019-08-18 17:16:38.790 (Zigbee) IAS Zone for device:b624 - alarm1: 0, alaram2: 0, tamper: 1, battery: 0, Support Reporting: 1, restore Reporting: 0, trouble: 0, acmain: 0, test: 0, battdef: 0
2019-08-18 17:16:38.790 (Zigbee) Decode8401 MsgZoneStatus: 14
2019-08-18 17:16:38.791 (Zigbee) MajDomoDevice - Device ID : 00124b00062ac55f - Device EP : 01 - Type : 0500 - Value : 0 - Hue : - Attribute_ :
2019-08-18 17:16:38.791 (Zigbee) MajDomoDevice - Type = Door
2019-08-18 17:16:38.792 (Zigbee) MajDomoDevice - NWKID = b624 IEEE = 00124b00062ac55f Unit = 58
2019-08-18 17:16:38.792 (Zigbee) MajDomoDevice - {'ClusterType': {'58': 'Door'}, '0500': {}, '0003': {}, '0000': {}}
2019-08-18 17:16:38.793 (Zigbee) MajDomoDevice - We have 1 EPs with ClusterType
2019-08-18 17:16:38.794 (Zigbee) MajDomoDevice - NWKID: b624 SwitchType: 11, DeviceType: Door, ClusterType: Door, old_nVal: 0 , old_sVal:
2019-08-18 17:16:42.579 (Zigbee) Too early for a new update of LastSeen b624
2019-08-18 17:16:42.581 (Zigbee) Decode8401 - MsgSQN: e6 MsgSrcAddr: b624 MsgEp:01 MsgClusterId: 0500 MsgZoneStatus: 0015 MsgExtStatus: 00 MsgZoneID: 00 MsgDelay: 0000
2019-08-18 17:16:42.581 (Zigbee) IAS Zone for device:b624 - alarm1: 1, alaram2: 0, tamper: 1, battery: 0, Support Reporting: 1, restore Reporting: 0, trouble: 0, acmain: 0, test: 0, battdef: 0
2019-08-18 17:16:42.582 (Zigbee) Decode8401 MsgZoneStatus: 15
2019-08-18 17:16:42.582 (Zigbee) MajDomoDevice - Device ID : 00124b00062ac55f - Device EP : 01 - Type : 0500 - Value : 1 - Hue : - Attribute_ :
2019-08-18 17:16:42.583 (Zigbee) MajDomoDevice - Type = Door
2019-08-18 17:16:42.583 (Zigbee) MajDomoDevice - NWKID = b624 IEEE = 00124b00062ac55f Unit = 58
2019-08-18 17:16:42.584 (Zigbee) MajDomoDevice - {'ClusterType': {'58': 'Door'}, '0500': {}, '0003': {}, '0000': {}}
2019-08-18 17:16:42.585 (Zigbee) MajDomoDevice - We have 1 EPs with ClusterType
2019-08-18 17:16:42.586 (Zigbee) MajDomoDevice - NWKID: b624 SwitchType: 11, DeviceType: Door, ClusterType: Door, old_nVal: 0 , old_sVal:
2019-08-18 17:16:43.594 (Zigbee) Too early for a new update of LastSeen b624
2019-08-18 17:16:43.595 (Zigbee) Decode8401 - MsgSQN: e7 MsgSrcAddr: b624 MsgEp:01 MsgClusterId: 0500 MsgZoneStatus: 0015 MsgExtStatus: 00 MsgZoneID: 00 MsgDelay: 0000
2019-08-18 17:16:43.596 (Zigbee) IAS Zone for device:b624 - alarm1: 1, alaram2: 0, tamper: 1, battery: 0, Support Reporting: 1, restore Reporting: 0, trouble: 0, acmain: 0, test: 0, battdef: 0
2019-08-18 17:16:43.596 (Zigbee) Decode8401 MsgZoneStatus: 15
2019-08-18 17:16:43.597 (Zigbee) MajDomoDevice - Device ID : 00124b00062ac55f - Device EP : 01 - Type : 0500 - Value : 1 - Hue : - Attribute_ :
2019-08-18 17:16:43.598 (Zigbee) MajDomoDevice - Type = Door
2019-08-18 17:16:43.598 (Zigbee) MajDomoDevice - NWKID = b624 IEEE = 00124b00062ac55f Unit = 58
2019-08-18 17:16:43.600 (Zigbee) MajDomoDevice - {'ClusterType': {'58': 'Door'}, '0500': {}, '0003': {}, '0000': {}}
2019-08-18 17:16:43.600 (Zigbee) MajDomoDevice - We have 1 EPs with ClusterType
2019-08-18 17:16:43.601 (Zigbee) MajDomoDevice - NWKID: b624 SwitchType: 11, DeviceType: Door, ClusterType: Door, old_nVal: 0 , old_sVal:
2019-08-18 17:16:50.419 (Zigbee) Permit Join status: 00
2019-08-18 17:16:50.420 (Zigbee) ---> self.permitTojoin['Starttime']: 1566141154
2019-08-18 17:16:50.420 (Zigbee) ---> self.permitTojoin['Duration'] : 0
2019-08-18 17:16:50.420 (Zigbee) ---> Current time : 1566141410
2019-08-18 17:16:50.420 (Zigbee) ---> self.Ping['Permit'] (prev) : On
2019-08-18 17:16:50.421 (Zigbee) ---> self.Ping['Permit'] (new ) : Off 
The logging of the Centralite door/windows contact

Code: Select all

2019-08-18 17:19:55.657 (Zigbee) Decode8102 - Individual Attribute response : [8701:01] ClusterID: 0402 AttributeID: 0000 Status: 00 Type: 29 Size: 0002 ClusterData: >08c5<
2019-08-18 17:19:55.658 (Zigbee) Decode8102 : Attribute Report from 8701 SQN = 0f ClusterID = 0402 AttrID = 0000 Attribute Data = 08c5
2019-08-18 17:19:55.659 (Zigbee) Touch unit Zigbee - 3323-D_Voltage-000d6f000bbc4c83-01 nwkid: 8701
2019-08-18 17:19:55.663 (Zigbee) Touch unit Zigbee - 3323-D_Temp-000d6f000bbc4c83-01 nwkid: 8701
2019-08-18 17:19:55.667 (Zigbee) Touch unit Zigbee - 3323-D_Door-000d6f000bbc4c83-01 nwkid: 8701
2019-08-18 17:19:55.671 (Zigbee) Touch unit Zigbee - 3323-D_Voltage-000d6f000bbc4c83-02 nwkid: 8701
2019-08-18 17:19:55.677 (Zigbee) Too early for a new update of LastSeen 8701
2019-08-18 17:19:55.679 (Zigbee) MajDomoDevice - Device ID : 000d6f000bbc4c83 - Device EP : 01 - Type : 0402 - Value : 22.4 - Hue : - Attribute_ :
2019-08-18 17:19:55.680 (Zigbee) MajDomoDevice - Type = Temp
2019-08-18 17:19:55.680 (Zigbee) MajDomoDevice - NWKID = 8701 IEEE = 000d6f000bbc4c83 Unit = 59
2019-08-18 17:19:55.681 (Zigbee) MajDomoDevice - {'0019': {}, 'ClusterType': {'61': 'Door', '60': 'Temp', '59': 'Voltage'}, '0000': {}, '0500': {}, '0003': {}, '0402': 22.0, '0001': {}, '0b05': {}, '0020': {}}
2019-08-18 17:19:55.682 (Zigbee) MajDomoDevice - We have 2 EPs with ClusterType
2019-08-18 17:19:55.682 (Zigbee) MajDomoDevice - search ClusterType in : {'0019': {}, 'ClusterType': {'61': 'Door', '60': 'Temp', '59': 'Voltage'}, '0000': {}, '0500': {}, '0003': {}, '0402': 22.0, '0001': {}, '0b05': {}, '0020': {}} for : 59
2019-08-18 17:19:55.683 (Zigbee) MajDomoDevice - search ClusterType in : {'61': 'Door', '60': 'Temp', '59': 'Voltage'} for : 59
2019-08-18 17:19:55.684 (Zigbee) MajDomoDevice - NWKID: 8701 SwitchType: 0, DeviceType: Voltage, ClusterType: Temp, old_nVal: 0 , old_sVal:
2019-08-18 17:19:55.684 (Zigbee) MajDomoDevice Temp: 22.4, DeviceType: >Voltage<
2019-08-18 17:19:55.686 (Zigbee) Adj Value : 0.0 from: 22.4 to 22.4
2019-08-18 17:19:55.686 (Zigbee) MajDomoDevice - NWKID = 8701 IEEE = 000d6f000bbc4c83 Unit = 60
2019-08-18 17:19:55.687 (Zigbee) MajDomoDevice - {'0019': {}, 'ClusterType': {'61': 'Door', '60': 'Temp', '59': 'Voltage'}, '0000': {}, '0500': {}, '0003': {}, '0402': 22.0, '0001': {}, '0b05': {}, '0020': {}}
2019-08-18 17:19:55.688 (Zigbee) MajDomoDevice - We have 2 EPs with ClusterType
2019-08-18 17:19:55.688 (Zigbee) MajDomoDevice - search ClusterType in : {'0019': {}, 'ClusterType': {'61': 'Door', '60': 'Temp', '59': 'Voltage'}, '0000': {}, '0500': {}, '0003': {}, '0402': 22.0, '0001': {}, '0b05': {}, '0020': {}} for : 60
2019-08-18 17:19:55.689 (Zigbee) MajDomoDevice - search ClusterType in : {'61': 'Door', '60': 'Temp', '59': 'Voltage'} for : 60
2019-08-18 17:19:55.690 (Zigbee) MajDomoDevice - NWKID: 8701 SwitchType: 0, DeviceType: Temp, ClusterType: Temp, old_nVal: 22 , old_sVal: 22.0
2019-08-18 17:19:55.690 (Zigbee) MajDomoDevice Temp: 22.4, DeviceType: >Temp<
2019-08-18 17:19:55.691 (Zigbee) Adj Value : 0.0 from: 22.4 to 22.4
2019-08-18 17:19:55.693 (Zigbee) UpdateDevice - (Zigbee - 3323-D_Temp-000d6f000bbc4c83-01) 22.4:22.4
2019-08-18 17:19:55.717 (Zigbee) MajDomoDevice - NWKID = 8701 IEEE = 000d6f000bbc4c83 Unit = 61
2019-08-18 17:19:55.718 (Zigbee) MajDomoDevice - {'0019': {}, 'ClusterType': {'61': 'Door', '60': 'Temp', '59': 'Voltage'}, '0000': {}, '0500': {}, '0003': {}, '0402': 22.0, '0001': {}, '0b05': {}, '0020': {}}
2019-08-18 17:19:55.719 (Zigbee) MajDomoDevice - We have 2 EPs with ClusterType
2019-08-18 17:19:55.720 (Zigbee) MajDomoDevice - search ClusterType in : {'0019': {}, 'ClusterType': {'61': 'Door', '60': 'Temp', '59': 'Voltage'}, '0000': {}, '0500': {}, '0003': {}, '0402': 22.0, '0001': {}, '0b05': {}, '0020': {}} for : 61
2019-08-18 17:19:55.721 (Zigbee) MajDomoDevice - search ClusterType in : {'61': 'Door', '60': 'Temp', '59': 'Voltage'} for : 61
2019-08-18 17:19:55.722 (Zigbee) MajDomoDevice - NWKID: 8701 SwitchType: 11, DeviceType: Door, ClusterType: Temp, old_nVal: 0 , old_sVal:
2019-08-18 17:19:55.722 (Zigbee) MajDomoDevice Temp: 22.4, DeviceType: >Door<
2019-08-18 17:19:55.723 (Zigbee) Adj Value : 0.0 from: 22.4 to 22.4
2019-08-18 17:19:55.724 (Zigbee) MajDomoDevice - NWKID = 8701 IEEE = 000d6f000bbc4c83 Unit = 62
2019-08-18 17:19:55.725 (Zigbee) MajDomoDevice - {'0019': {}, 'ClusterType': {'61': 'Door', '60': 'Temp', '59': 'Voltage'}, '0000': {}, '0500': {}, '0003': {}, '0402': 22.0, '0001': {}, '0b05': {}, '0020': {}}
2019-08-18 17:19:55.725 (Zigbee) MajDomoDevice - We have 2 EPs with ClusterType
2019-08-18 17:19:55.726 (Zigbee) MajDomoDevice - search ClusterType in : {'0019': {}, 'ClusterType': {'61': 'Door', '60': 'Temp', '59': 'Voltage'}, '0000': {}, '0500': {}, '0003': {}, '0402': 22.0, '0001': {}, '0b05': {}, '0020': {}} for : 62
2019-08-18 17:19:55.727 (Zigbee) MajDomoDevice - search ClusterType in : {'61': 'Door', '60': 'Temp', '59': 'Voltage'} for : 62 
Is this what you need?

Re: Zigate add support for Bitronhome devices

Posted: Sunday 18 August 2019 19:24
by pipiche
@ahattink thanks for the log, please do a git pull (on beta) and test again the door contact

Re: Zigate add support for Bitronhome devices

Posted: Wednesday 21 August 2019 8:12
by ahattink
Hi pipiche,

Succes!!
The Bitron door sensor updates the status:

Code: Select all

2019-08-21 06:18:08.901 (Zigbee) UpdateDevice - ( Zigbee - 3) 1:Open
2019-08-21 06:18:18.263 (Zigbee) UpdateDevice - ( Zigbee - 2) 1:Open
2019-08-21 06:18:30.001 (Zigbee) UpdateDevice - ( Zigbee - 3) 0:Closed
2019-08-21 06:18:30.341 (Zigbee) UpdateDevice - ( Zigbee - 2) 0:Closed 
The Centralite device i did not test yet. Hopefully later today.

I have more devices of the Manufacturer Bitron. An smokedetector, an movement sensor and keyfob.
If i want these devices also to be integrated, do i need to add this to this thread or make an new one?
Thanks.

Arthur

Re: Zigate add support for Bitronhome devices

Posted: Wednesday 21 August 2019 8:22
by pipiche
We can continue on that one , no issue at all. And glad that the Door sensor works.
And please feel free to update the Compatibility List (by submiting a Pull Request directly on GitHub)
https://github.com/pipiche38/Domoticz-Z ... Devices.md

Re: Zigate add support for Bitronhome devices

Posted: Friday 23 August 2019 14:45
by ahattink
hi Pipiche,

I can confirm the Bitron motion sensor is working to!
Recognized as an door/window contact but who cares.

Thanks!

About Github.. I an not familiar with this. Can you tell me how an Pull Request works?

Re: Zigate add support for Bitronhome devices

Posted: Friday 23 August 2019 14:48
by pipiche
ahattink wrote: Friday 23 August 2019 14:45 hi Pipiche,

I can confirm the Bitron motion sensor is working to!
Recognized as an door/window contact but who cares.

Thanks!

About Github.. I an not familiar with this. Can you tell me how an Pull Request works?
If you can attached the DeviceList-xx or extract from Web Admin -> Tools -> zdevice-name (json) the information on this device, I could have a look if we can detect that is a Motion Sensor and not a Switch ;-)

Does the Motion reset itself to 0 after a while ?

Re: Zigate add support for Bitronhome devices

Posted: Friday 23 August 2019 15:20
by pipiche
I have updated the branch, so if you pair a new Bitron Smartplug, it should create a Plug widget instead of a Switch one ;-)

Re: Zigate add support for Bitronhome devices

Posted: Wednesday 25 September 2019 9:27
by ahattink
Hi Pipiche,

The widget for the Smartplug is working fine! Thanks.
Attached the Devicelist for the Motion Sensor Widget.
DeviceList-11.txt
(6.31 KiB) Downloaded 77 times
The sensor resets itself to 0 after a while.
The motion sensor is the:
IEEE: 00124b0006218233
Model: 902010/22

Re: Zigate add support for Bitronhome devices

Posted: Wednesday 25 September 2019 13:33
by pipiche
@ahattink thanks for the info and the DeviceList-11.txt

Could you kindly update the beta branch with a git pull and then you will have to remove the Motion from Domoticz§Plugin and then redo the pairing. It should be created as a Motion sensor in Domoticz

Re: Zigate add support for Bitronhome devices

Posted: Wednesday 25 September 2019 16:04
by ahattink
@pipiche,

Works like a charm! Thanks!

Re: Zigate add support for Bitronhome devices

Posted: Wednesday 25 September 2019 17:03
by pipiche
cool!