New release:
- Added Lock State status to prevent duplicate attempts of unlock (which led to error log message since the unit didn’t allow that operation)
- Publish MQTT message with the lock status
Lock State
Topic [MQTT_BROKER_TOPIC_PREFIX]/MagneticLock/Status
represents the locking status, Works only if the lock released by the DahuaVTO2MQTT
Since there is not real indication, it pulls from the configuration of the unit the interval allowed between unlocks (as defined in the Web Manager of the unit),
It will also protect duplicate attempts while the magnetic lock is in unlock interval
{
"door":"Door ID",
"isLocked":"true/false"
}