Closed igitlin closed 6 years ago
And then with Heimdall support please, like this: https://forum.athom.com/discussion/comment/74831/#Comment_74831
Replacing
with
if( isNaN(value) ) {
var boolValue = value.toLowerCase() == 'true' ? true : false;
this.log(device.getName() + ' -> Value: ' + boolValue);
device.setCapabilityValue(sensor, boolValue) // Fire and forget
.catch(this.error);
} else {
this.log(device.getName() + ' -> Value: ' + parseFloat(value, 10));
device.setCapabilityValue(sensor, parseFloat(value, 10)) // Fire and forget
.catch(this.error);
}
Will make setting alarm_motion to true or false work.
Numbers for other capabilities will work as it was, I did not check if there are other possible values then boolean or numeric for other capabilities, just looked at alarm_motion.
This is now released in the beta-channel with version 0.7.4
I installed the Beta and now it works.
I made an test button (trigger) and when pressed VirtPir is True and after 10 seconds switched back to False.
And now as stable
I try to use motion sensor but doesn't work flow if open contact sensor ( door) then virt motion sensor is true