Note de ce sujet :
  • Moyenne : 0 (0 vote(s))
  • 1
  • 2
  • 3
  • 4
  • 5
Event KNX
#2
dans home assistant tu as ceci:

Events [/url]
Code :
knx:
  event:
    - address:
        - "0/1/*"
    - address:
        - "1/2/*"
        - "1/3/2-4"
      type: "2byte_unsigned"
    - address:
        - "3/4/5"
      type: "2byte_float"

[size=1]YAML

[/size]
[size=1]Configuration Variables 
Looking for your configuration file?
address list | string [size=1]Required[/size]
Defines a list of patterns for matching KNX group addresses. Telegrams with destination addresses matching one of the patterns are sent to the Home Assistant event bus as 
[/size]

Code :
knx_event
.
[size=1]type 
string | integer (Optional)[url=https://www.home-assistant.io/integrations/knx/#type]
Telegram payloads in 
[/size]

Code :
knx_event
 events will be decoded using the configured type (DPT) for the addresses in the same block. The decoded value will be written to the event data 

Code :
value
 key. If not configured the 

Code :
value
 key will be 

Code :
None
 - the 

Code :
data
 key will still hold the raw payload (use this for DPT 1, 2, 3). All sensor types are valid types - see KNX Sensor (e.g., “2byte_float” or “1byte_signed”).
Every telegram that matches an address pattern with its destination field will be announced on the event bus as a 
Code :
knx_event
 event containing data attributes
  • Code :
    data
     contains the raw payload data (e.g., 1 or “[12, 55]”).
  • Code :
    destination
     the KNX group address the telegram is sent to as string (e.g., “1/2/3”).
  • Code :
    direction
     the direction of the telegram as string (“Incoming” / “Outgoing”).
  • Code :
    source
     the KNX individual address of the sender as string (e.g., “1.2.3”).
  • Code :
    telegramtype
     the APCI service of the telegram. “GroupValueWrite”, “GroupValueRead” or “GroupValueResponse” generate a knx_event.
  • Code :
    value
     contains the decoded payload value if 

    Code :
    type
     is configured for the address. Will be 

    Code :
    None
     for “GroupValueRead” telegrams.
si ca peut t'aider
Répondre


Messages dans ce sujet
Event KNX - par XeNo - 27/12/2025, 21:40:58
RE: Event KNX - par richardpub - 28/12/2025, 11:28:07
RE: Event KNX - par XeNo - 28/12/2025, 12:17:19
RE: Event KNX - par XeNo - 28/12/2025, 16:30:01
RE: Event KNX - par richardpub - 28/12/2025, 17:08:51
RE: Event KNX - par XeNo - 28/12/2025, 19:34:10
RE: Event KNX - par richardpub - 28/12/2025, 20:15:46
RE: Event KNX - par XeNo - 28/12/2025, 20:54:44
RE: Event KNX - par XeNo - 28/12/2025, 22:40:23

Atteindre :


Utilisateur(s) parcourant ce sujet : 1 visiteur(s)