New custom component : ZiGate (obsolete)

Thanks !!! :slight_smile:
Now I need to wait to next deals on Xiaomi door switch :slight_smile:

sure, will do.

Any of you ever used Osram controlled socket ?
I thought it would be supported as a switch in HA, but it doesn’t’ work. I haven’t yet investigated, and I know I could also use raw cmds to workaround the lack of support. (not sure about getting the state back tho)

To, start, you have detailed infos here (no HA related) : OSRAM Lightify - Prise pilotée - ZiGate
There is a zigate.raw_command service you can use while I implement it properly, parameters are for example (but 1st have to get how the example is structured) :

{
"cmd":"0092",
"data":"XXXXXX"
} 

According to the documentation
Zigate → Obj 0x0092 On/Off with no effects
DATA :

address mode: uint8_t
target short address: uint16_t
source endpoint: uint8_t
destination endpoint: uint8_t
command ID: uint8_t
Command Id
0 – Off
1 – On
2 – Toggle

yep i saw the zigate doc. I’m yet to find out about address mode and source endpoint. :slight_smile:

edit, found out by digging sources from an other zigate plugin, used 02 as address mode and 01 as source endpoint

edit 2, any idea if the osram plug is supposed to report its status when it’s manually triggered from its button ?

I just got some Philips Hue GU10 spotlights, is there support for those yet? If not how can I help?

Also, after a couple of days my Xiaomi Aqara window sensor seems to lose connection/pairing to the zigate, and I have to repair to get it to work again. Does anyone else experience this?

Is there a way to get RSSIs in HA, or does it still need support for it ?

Same here …

By then way @eLRIC , I’m having again the message " Breakings news : new device found : " :frowning:

My first one arrived a week ago, paired since then without a problem. The second one arrived today. Will keep an eye on them in the next few days.

ISO-B has added light support sooner this week. I’ll make a release including it this WE
(meantime, you can grab the files directly from github : grab the whole “light” folder

I did not want to upgrade firmware on my “production” ZiGate --> I’ll get a new one next week to test new firmware (which includes RSSI if I’m correct, so I can implement it in HA)

I’ll add a check to forbid “Breaking news” message if the device is already in conf
Can you please open an issue on the github so that I won’t forget :wink: ?

(hopefully, I’ll correct your 2 annoyances this WE)

1 Like

New version released :

  • manage lights [ thanks @ISO-B ]
  • handles plugs [thanks @alexbarcelo ]
  • handles negative temperatures

To update, just use the new release to replace old files (same procedure)
NB : I do not have zigbee plugs, neither zigbee lights, so please raise a hand if you encounter problems (it may happen)

(edit : typo)

1 Like

Thanks for the new version.
Negative value are now successfully returned by Hass :slight_smile:

Just received my human body sensor (PIR).
Does lumens sensors is implemented in these version ?

Thanks a lot
Max

Thanks for your work on this component!

I’ve got a ZiGate on the way with the intention to connect it to a Raspberry Pi running HASS.

I’ve got some experience with Unix / Web Servers etc and have been reading up on the ZigBee protocol, but it would be really helpful if anyone here who has theirs setup and working with Xaomi Switches, or a Hue bulb, using a RPi running HASS could outline some of the steps they took to get it up and running with this custom component - from configuring it to work with the RPi up to successfully pairing a ZigBee device and configuring it to perform the required actions.

I see the developer has some sort of example API here: http://zigate.fr/wiki/exemple-api-en-php/ which I assume is needed for the above setup.

Thanks

So a nooby question here, I have three zigbee door/temperature sensors (2 smart things mutil4 and 1 visionic mct340) that I can pair using zha and my zwave/zigbee combo usb stick, but soon after I added them they stopped reporting values. Haven’t chased too hard on it but wondering if anyone had a similar experience and got them working with the zigate. Don’t want to shell out more for another bit of hardware if I can avoid it.

We used the API example to start pyzigate (lib under HA component)
Installation instructions here : New custom component : ZiGate (obsolete)

I just adde (not published yet) an “init” service to prevent the need to use a windows machine for initialization
Instructions will be rewritten soon but will basically be a summary of what is available in the thread :wink:

how to retreive lumens value from body sensor ?
thnaks :slight_smile:

what body sensor are you referring to ? (do you have a spec we can use to understand the zigbee message carrying the lumens value ?)

https://fr.gearbest.com/alarm-systems/pp_659226.html?wid=55&currency=EUR&vip=4386417&gclid=Cj0KCQiA5aTUBRC2ARIsAPoPJk9tIVJHSsa20Xp8w4K8uwEt4zsoighv7ncEYFV6ev7m2XkLknm2oD0aAjBbEALw_wcB

When motion is detected the state is “presence detected” but when no motion is detected the status do not return to default state.
There is a way to force the sensor to return to a default value ?

I did some test, and some strange log appaear :

=> push the sensor button
2018-02-18 14:52:12 DEBUG (MainThread) [zigate] RESPONSE 8701: Route Discovery Confirmation
2018-02-18 14:52:12 DEBUG (MainThread) [zigate]   - Sequence       : b'00'
2018-02-18 14:52:12 DEBUG (MainThread) [zigate]   - Status         : b'00'
2018-02-18 14:52:12 DEBUG (MainThread) [zigate]   - Network status : b'45'
2018-02-18 14:52:12 DEBUG (MainThread) [zigate]   - Message data   : b'000045'
2018-02-18 14:52:12 DEBUG (MainThread) [zigate]   # encoded : b'0187021102100213c0021002104503'
2018-02-18 14:52:12 DEBUG (MainThread) [zigate]   # decoded : 0187 01 00 03 C0 00 00 4503
2018-02-18 14:52:12 DEBUG (MainThread) [zigate]   (@timestamp : 14:52:12)
2018-02-18 14:52:19 DEBUG (MainThread) [zigate] --------------------------------------
2018-02-18 14:52:19 DEBUG (MainThread) [zigate] RESPONSE 8702 : APS Data Confirm Fail
2018-02-18 14:52:19 DEBUG (MainThread) [zigate]   - Status         : b'f0'
2018-02-18 14:52:19 DEBUG (MainThread) [zigate]   - Src endpoint   : b'01'
2018-02-18 14:52:19 DEBUG (MainThread) [zigate]   - Dst endpoint   : b'01'
2018-02-18 14:52:19 DEBUG (MainThread) [zigate]   - Dst mode       : b'02'
2018-02-18 14:52:19 DEBUG (MainThread) [zigate]   - Dst address    : b'450a01040000a701'
2018-02-18 14:52:19 DEBUG (MainThread) [zigate]   - Sequence       : b'23'
2018-02-18 14:52:19 DEBUG (MainThread) [zigate]   # encoded : b'018702120210021ef3f002110211021245021a0211021402100210a70211234503'
2018-02-18 14:52:19 DEBUG (MainThread) [zigate]   # decoded : 0187 02 00 0E F3 F0 01 01 02 45 0A 01 04 00 00 A7 01 23 4503
2018-02-18 14:52:19 DEBUG (MainThread) [zigate]   (@timestamp : 14:52:19)
2018-02-18 14:52:43 DEBUG (MainThread) [zigate] --------------------------------------
2018-02-18 14:52:43 DEBUG (MainThread) [zigate] RESPONSE 8102 : Attribute Report / Response
2018-02-18 14:52:43 DEBUG (MainThread) [custom_components.zigate.zigate2hass] ZIGATE SIGNAL :
2018-02-18 14:52:43 DEBUG (MainThread) [custom_components.zigate.zigate2hass] - Signal   : zgt_signal_update_450a01
2018-02-18 14:52:43 DEBUG (MainThread) [custom_components.zigate.zigate2hass] - Property : last seen
2018-02-18 14:52:43 DEBUG (MainThread) [custom_components.zigate.zigate2hass] - Data     : 2018-02-18 14:52:43
2018-02-18 14:52:43 DEBUG (MainThread) [zigate]   - Something announce (Start after pairing 2)
2018-02-18 14:52:43 DEBUG (MainThread) [custom_components.zigate.zigate2hass] ZIGATE SIGNAL :
2018-02-18 14:52:43 DEBUG (MainThread) [custom_components.zigate.zigate2hass] - Signal   : zgt_signal_update_450a01
2018-02-18 14:52:43 DEBUG (MainThread) [custom_components.zigate.zigate2hass] - Property : type
2018-02-18 14:52:43 DEBUG (MainThread) [custom_components.zigate.zigate2hass] - Data     : lumi.sensor_motion.aq2
2018-02-18 14:52:43 INFO (MainThread) [zigate]  * type : b'lumi.sensor_motion.aq2'
2018-02-18 14:52:43 INFO (MainThread) [zigate]   FROM ADDRESS      : b'450a'
2018-02-18 14:52:43 DEBUG (MainThread) [zigate]   - Source EndPoint : b'01'
2018-02-18 14:52:43 DEBUG (MainThread) [zigate]   - Cluster ID      : b'0000'
2018-02-18 14:52:43 DEBUG (MainThread) [zigate]   - Attribute ID    : b'0005'
2018-02-18 14:52:43 DEBUG (MainThread) [zigate]   - Attribute type  : b'42'
2018-02-18 14:52:43 DEBUG (MainThread) [zigate]   - Attribute size  : 22
2018-02-18 14:52:43 DEBUG (MainThread) [zigate]   - Attribute data  : b'6c756d692e73656e736f725f6d6f74696f6e2e617132'
2018-02-18 14:52:43 DEBUG (MainThread) [zigate]   # encoded : b'018102120210239d021145021a021102100210021002150210420210166c756d692e73656e736f725f6d6f74696f6e2e6171324b03'
2018-02-18 14:52:43 DEBUG (MainThread) [zigate]   # decoded : 0181 02 00 23 9D 01 45 0A 01 00 00 00 05 00 42 00 16 6C 75 6D 69 2E 73 65 6E 73 6F 72 5F 6D 6F 74 69 6F 6E 2E 61 71 32 4B03
2018-02-18 14:52:43 DEBUG (MainThread) [zigate]   (@timestamp : 14:52:43)
2018-02-18 14:52:50 DEBUG (MainThread) [zigate] --------------------------------------
2018-02-18 14:52:12 DEBUG (MainThread) [zigate] RESPONSE 8701: Route Discovery Confirmation
2018-02-18 14:52:12 DEBUG (MainThread) [zigate]   - Sequence       : b'00'
2018-02-18 14:52:12 DEBUG (MainThread) [zigate]   - Status         : b'00'
2018-02-18 14:52:12 DEBUG (MainThread) [zigate]   - Network status : b'45'
2018-02-18 14:52:12 DEBUG (MainThread) [zigate]   - Message data   : b'000045'
2018-02-18 14:52:12 DEBUG (MainThread) [zigate]   # encoded : b'0187021102100213c0021002104503'
2018-02-18 14:52:12 DEBUG (MainThread) [zigate]   # decoded : 0187 01 00 03 C0 00 00 4503
2018-02-18 14:52:12 DEBUG (MainThread) [zigate]   (@timestamp : 14:52:12)
2018-02-18 14:52:19 DEBUG (MainThread) [zigate] --------------------------------------

=> push the sensor button
2018-02-18 14:52:19 DEBUG (MainThread) [zigate] RESPONSE 8702 : APS Data Confirm Fail
2018-02-18 14:52:19 DEBUG (MainThread) [zigate] - Status : b’f0’
2018-02-18 14:52:19 DEBUG (MainThread) [zigate] - Src endpoint : b’01’
2018-02-18 14:52:19 DEBUG (MainThread) [zigate] - Dst endpoint : b’01’
2018-02-18 14:52:19 DEBUG (MainThread) [zigate] - Dst mode : b’02’
2018-02-18 14:52:19 DEBUG (MainThread) [zigate] - Dst address : b’450a01040000a701’
2018-02-18 14:52:19 DEBUG (MainThread) [zigate] - Sequence : b’23’
2018-02-18 14:52:19 DEBUG (MainThread) [zigate] # encoded : b’018702120210021ef3f002110211021245021a0211021402100210a70211234503’
2018-02-18 14:52:19 DEBUG (MainThread) [zigate] # decoded : 0187 02 00 0E F3 F0 01 01 02 45 0A 01 04 00 00 A7 01 23 4503
2018-02-18 14:52:19 DEBUG (MainThread) [zigate] (@timestamp : 14:52:19)
2018-02-18 14:52:43 DEBUG (MainThread) [zigate] --------------------------------------
2018-02-18 14:52:43 DEBUG (MainThread) [zigate] RESPONSE 8102 : Attribute Report / Response
2018-02-18 14:52:43 DEBUG (MainThread) [custom_components.zigate.zigate2hass] ZIGATE SIGNAL :
2018-02-18 14:52:43 DEBUG (MainThread) [custom_components.zigate.zigate2hass] - Signal : zgt_signal_update_450a01
2018-02-18 14:52:43 DEBUG (MainThread) [custom_components.zigate.zigate2hass] - Property : last seen
2018-02-18 14:52:43 DEBUG (MainThread) [custom_components.zigate.zigate2hass] - Data : 2018-02-18 14:52:43
2018-02-18 14:52:43 DEBUG (MainThread) [zigate] - Something announce (Start after pairing 2)
2018-02-18 14:52:43 DEBUG (MainThread) [custom_components.zigate.zigate2hass] ZIGATE SIGNAL :
2018-02-18 14:52:43 DEBUG (MainThread) [custom_components.zigate.zigate2hass] - Signal : zgt_signal_update_450a01
2018-02-18 14:52:43 DEBUG (MainThread) [custom_components.zigate.zigate2hass] - Property : type
2018-02-18 14:52:43 DEBUG (MainThread) [custom_components.zigate.zigate2hass] - Data : lumi.sensor_motion.aq2
2018-02-18 14:52:43 INFO (MainThread) [zigate] * type : b’lumi.sensor_motion.aq2’
2018-02-18 14:52:43 INFO (MainThread) [zigate] FROM ADDRESS : b’450a’
2018-02-18 14:52:43 DEBUG (MainThread) [zigate] - Source EndPoint : b’01’
2018-02-18 14:52:43 DEBUG (MainThread) [zigate] - Cluster ID : b’0000’
2018-02-18 14:52:43 DEBUG (MainThread) [zigate] - Attribute ID : b’0005’
2018-02-18 14:52:43 DEBUG (MainThread) [zigate] - Attribute type : b’42’
2018-02-18 14:52:43 DEBUG (MainThread) [zigate] - Attribute size : 22
2018-02-18 14:52:43 DEBUG (MainThread) [zigate] - Attribute data : b’6c756d692e73656e736f725f6d6f74696f6e2e617132’
2018-02-18 14:52:43 DEBUG (MainThread) [zigate] # encoded : b’018102120210239d021145021a021102100210021002150210420210166c756d692e73656e736f725f6d6f74696f6e2e6171324b03’
2018-02-18 14:52:43 DEBUG (MainThread) [zigate] # decoded : 0181 02 00 23 9D 01 45 0A 01 00 00 00 05 00 42 00 16 6C 75 6D 69 2E 73 65 6E 73 6F 72 5F 6D 6F 74 69 6F 6E 2E 61 71 32 4B03
2018-02-18 14:52:43 DEBUG (MainThread) [zigate] (@timestamp : 14:52:43)
2018-02-18 14:52:50 DEBUG (MainThread) [zigate] --------------------------------------

Do you know why motion détection si not send ?
The sensor is in my mailbox, according some french user, it’s works but not for me :frowning: ( the zigate and the sensor is 2 meter away and the signal goes through 1 wall ( and the mailbox ^^ )

thnaks.