With iOS 13, LockMechanism accessories do not trigger notifications anymore during polling.
Look like polling should only update LockCurrentState, not LockTargetState.
Works better after patching index.js to get:
cmdAccessoryPlatform.prototype.statePolling = function (name) {
var accessory = this.accessories[name];
var thisSwitch = accessory.context;
var prop = this.getStatePropertyName(accessory.context.type);
var arrProp = prop.split(",");
var self = this;
// Clear polling
clearTimeout(this.polling[name]);
this.getState(thisSwitch, function (error, state) {
// Update state if there's no error
if (!error && state !== thisSwitch.state) {
thisSwitch.state = state;
// Update only the LockCurrentState
for (var i = 0; i < 1 /*arrProp.length*/; i++) {
With iOS 13, LockMechanism accessories do not trigger notifications anymore during polling. Look like polling should only update LockCurrentState, not LockTargetState.
Works better after patching index.js to get: