From 56bb3af164cd6c8224b1798ee3c4c3660b7c8033 Mon Sep 17 00:00:00 2001 From: Matthias Alphart Date: Thu, 24 Jun 2021 22:07:20 +0200 Subject: [PATCH] restore switch state (#18169) --- source/_integrations/knx.markdown | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/source/_integrations/knx.markdown b/source/_integrations/knx.markdown index ba7bc06226d..e42086e490b 100644 --- a/source/_integrations/knx.markdown +++ b/source/_integrations/knx.markdown @@ -1468,8 +1468,10 @@ invert: default: false {% endconfiguration %} -Some KNX devices can change their state internally without any messages on the KNX bus, e.g., if you configure a timer on a channel. The optional `state_address` can be used to inform Home Assistant about these state changes. If a KNX message is seen on the bus addressed to the given state address, this will overwrite the state of the switch object. -For switching actuators that are only controlled by a single group address and can't change their state internally, you don't have to configure the state address. +The optional `state_address` can be used to inform Home Assistant about state changes not triggered by a telegram to the `address` e.g., if you configure a timer on a channel. If a KNX message is seen on the bus addressed to the given state address, this will overwrite the state of the switch object. + +Switch entities without a `state_address` will restore their last known state after Home Assistant was restarted. +Switches having a `state_address` configured request their current state from the KNX bus. ## Weather