I have been looking a bit for this one, but not sure if anyone has any replies. On my Yale Doorman that is connected by bluetooth its an option of Always Connected. This works well for the reponsiveness of the doorman, but it sucks battery. I would like to be able to automate this option based on time of day, and if anyone is close to home. If nobody is home, or near, or night I would like this to be turned off, but when someone would potential be close to the door I would have to connected and ready.
So the main question is, how would it be possible to turn on and off this settings with an automation or script?
That would not solve the issue, and im okay with a delayed connection outside the peak hours, but if at special times of day I would like the faster response time that the always connected gives. Its sad if its really not possible to change. Maybe its possible to override somewhere?
It’s a problem with that particular integration, not all are the same. On my Yale lock I have much greater control over my Z-Wave parameters. My Kwikset locks are similar. The benefit, other than the parameters, is that they are fairly instant 24/7 without being too much strain on batteries - my front door has an older lock (new one sitting next to me to be installed) locks and unlocks a dozen times a day and the 4 AA batteries will last a month or two.
At least you are lucky that it support zwave. Here in Norway they disabled the port for zwave and zigbee dongles cause of an exclusivity deal with an alarm company barring all other use of our own dongles, so the only local option is the crappy BT connection - In general the life time of the yale doorman has for me beeing 3-6 months, but with the direct activated it last about a month. When winter kicks in it might be even less.
They actually made it firmware blocked, so if you try to buy a zwave dongle (it fits fine) it wont work. With zigbee they have implemented requirement to know a secret code. They justify it with that is not secure to use it with your own equipment (but their own BT is not insecure they say). In other words, cause the alarm company is paying they actively block other dongles
I guess that is one of the benefits of being in EU.
That deal would not be allowed with current EU laws.
Regarding your idea to use the option as an interval event, then it might not even be possible in that way.
The setting indicate that when it is off, then the device will connect on an event basis or regular intervals, both decided by the device. You might set the option to on, but it will not trigger before the device decide to communicate with HA. That time will in many cases probably be when the lock is activated by the person, because the event on the device will trigger it.