From a9539dd6ee9c137cc770a6b1f30444dd56e5ea11 Mon Sep 17 00:00:00 2001 From: Matthias Alphart Date: Tue, 25 Jul 2023 11:04:21 +0200 Subject: [PATCH] Add datetime platform to KNX (#28317) --- source/_integrations/knx.markdown | 71 +++++++++++++++++++++++++++++++ 1 file changed, 71 insertions(+) diff --git a/source/_integrations/knx.markdown b/source/_integrations/knx.markdown index bbdf0723157..7cde6fca2e2 100644 --- a/source/_integrations/knx.markdown +++ b/source/_integrations/knx.markdown @@ -977,6 +977,77 @@ entity_category: default: None {% endconfiguration %} +## DateTime + +The KNX datetime platform allows to send datetime values to the KNX bus and update its state from received telegrams. It can optionally respond to read requests from the KNX bus. + +
+ +Date entities without a `state_address` will restore their last known state after Home Assistant was restarted. + +DateTimes that have a `state_address` configured request their current state from the KNX bus. + +
+ +
+ +System timezone is used as DPT 19.001 doesn't provide timezone information. +Year values outside of the range 1900 to 2155 are invalid. + +
+ +```yaml +# Example configuration.yaml entry +knx: + datetime: + - name: "DateTime" + address: "0/0/3" + state_address: "0/0/4" +``` + +{% configuration %} +name: + description: A name for this device used within Home Assistant. + required: false + type: string +address: + description: The group address to which new values will be sent. *DPT 19.001* + required: true + type: [string, list] +state_address: + description: Group address for retrieving the state from the KNX bus. *DPT 19.001* + required: false + type: [string, list] +respond_to_read: + description: Respond to GroupValueRead telegrams received to the configured `address`. + required: false + type: boolean + default: false +sync_state: + description: Actively read the value from the bus. The maximum time interval (``) is 1440. The following values are valid + + - `true` equivalent to "expire 60" (default) + + - `false` no GroupValueRead telegrams will be sent to the bus + + - `every ` to update it regularly every \ + + - `expire ` to read the state from the KNX bus when no telegram was received for \ + + - `` equivalent to "expire \" + + - `init` to just initialize the state on startup + + required: false + type: [boolean, string, integer] + default: true +entity_category: + description: The [category](https://developers.home-assistant.io/docs/core/entity#generic-properties) of the entity. + required: false + type: string + default: None +{% endconfiguration %} + ## Fan The KNX fan integration is used to control KNX fans. Following control types are supported: