What is the best way to implement a lock object with KNX. The lock object must be writable. Furthermore, the correct lock symbol should be displayed. Is it better to choose a KNX.Switch or a KNX.Button for this?
Thx!
What is the best way to implement a lock object with KNX. The lock object must be writable. Furthermore, the correct lock symbol should be displayed. Is it better to choose a KNX.Switch or a KNX.Button for this?
Thx!
What shall a lock object do? Difference between a switch and a button is
Maybe what you are looking for is a Template Lock - Home Assistant
The goal is to send “on” or “off” to the KNX Bus. In this case I must select the Switch, right?
Yes. Or alternatively a select
. Or a template lock with knx.send
.
What is your lock locking?
First I have changed from “Lock” to “Switch”. My solution was the customize.yaml section!
switch.ug_garage_sperren:
templates:
icon: >
if (state == 'on') return 'mdi:lock';
if (state == 'off') return 'mdi:lock-open';