I’ve gone back to the original code in SmartThings GITHUB and fixed the Fibaro door sensor to show the tamper detection working properly and the Temperature to work.
If you want to use the temperature YOU MUST RESET THE SENSOR after installing the DS18B20.
It will not work unless you do this. Instructions are in the operating manual…
I found I needed to reset several times for it to work.
Once you reset, ensure you have removed the device from you settings as you need to add the sensor again. This is a pain if you have applications using the sensor already.
It is important when you detect the device you change it to the new device file
You know if it is working because when you go to the ST app on the mobile device and select the sensor from your THINGS, you will have a white temperature tile and no temperature yet.
If you have a blue (or any other colour) and no temp showing, then the reset hasn’t worked or the probe isn’t installed correctly (or is faulty!)
If you have the white temp tile, then click the tamper button to wake up the sensor (for some reason it needs to be the tamper and not the open/close, and leave for 5 mins and then the temperature should appear.
OH if you are going to use an external switch, ie to connect to an existing smoke alarm, you can use either close to alert or open to alert… Ive put the setting in line 344 and 345 and you comment one line out and uncomment the other. I’ll put a posting and modify the driver further when I have this working as it will be a weekend project in the future to convert an existing smoke alarm to ST device.
UK building regulations means smoke alarm needs to be mains connected and so new builds or renovations have existing mains powered smoke alarms and heat alarm. Connecting in the interface wire of the existing system with a relay and this sensor will detect the trigger. I will then change the sensor to change from basic sensor to smoke alarm which should make it work differently in ST.