Homegear / Homegear-Intertechno

Intertechno module for Homegear
1 stars 2 forks source link

added PIR-1000 motion detector support #4

Closed logi85 closed 5 years ago

logi85 commented 5 years ago

Hi,

I want to use PIR-1000 with homegear (and openhab2). Since it uses channel 10 instead of channel 1, I created a new device configuration file for it.

It is a copy of the 1 channel remote. I assigned the type 0x40 for this new device, changed the description and changed the channel. Perhaps it is also possible to change the device id.

With this device, I was able to create a new device ( for example pc [cul] 0x40 0xXXXXXXXX). 0xXXXXXXXX I recieved by homegear.log .

Perhaps you could review over the file, merge this request and add this information to the docs. Also there is a log-message: " Please use one of the following addresses for device creation (possible device types: 0x10 to 0x1F): 0xXXXXXXXX or 0xXXXXXXXX", not sure if it is possible to detect the PIR or if it is better to simply change this log-message.

However with this change I was able to create a think in openhab which reacts to state-changes.

Regards Thorben