Hi, I would like to turn my switch into lock so as to see it on HomeKit as a door, I tried to follow the guide on the ha page but it gives me this error:
Invalid config for [lock.template]: not a valid value for dictionary value @ data['lock'][0]['target']['entity_id']. Got None
not a valid value for dictionary value @ data['unlock'][0]['target']['entity_id']. Got None. (See ?, line ?)
I changed the switch and also the initial state. The problem is that if I go to activate or deactivate the switch directly, the lock changes state but if I go to activate or deactivate the lock, the switch does nothing
The example that I gave is how I setup my locks (years ago) and works great
I noticed that youβre using target: while my template uses data: I realize
that the HA template rules are ever-changing but it works without warnings.