KNX 이진 센서(KNX Binary Sensor)
이 통합구성요소를 사용하려면 knx
통합구성요소를 올바르게 설정해야합니다. KNX Integration을 참조하십시오.
knx
센서 플랫폼을 사용하면 KNX 이진 센서를 모니터링 할 수 있습니다.
이진 센서는 읽기 전용입니다. knx-bus에 쓰려면 노출을 설정하십시오 KNX Integration - Expose.
설정
knx
통합구성요소는 정확하게 설정되어야합니다. KNX Integration을 참조하십시오.
# Example configuration.yaml entry
binary_sensor:
- platform: knx
state_address: '6/0/2'
Configuration Variables
- state_address
(string)(Required)
KNX group address of the binary sensor.
- name
(string)(Optional)
A name for this device used within Home Assistant.
- sync_state
-
(boolean)(Optional)
Actively read the value from the bus. If
False
no GroupValueRead telegrams will be sent to the bus.Default value:
true
- device_class
(string)(Optional)
Sets the class of the device, changing the device state and icon that is displayed on the frontend.
- significant_bit
-
(integer)(Optional)
Specify which significant bit of the KNX value should be used.
Default value:
1
- reset_after
(integer)(Optional)
Reset back to OFF state after specified milliseconds.
자동화 액션
이진 센서에 액션을 연결할 수도 있습니다 (예: 스위치를 눌렀을 때 조명 켜기). 이 예에서, 버튼을 한 번 누르면 하나의 조명이 켜지고, 버튼을 두 번 누르면 다른 하나가 켜집니다.
# Example configuration.yaml entry
binary_sensor:
- platform: knx
name: Livingroom.3Switch3
state_address: '5/0/26'
automation:
- counter: 1
hook: 'on'
action:
- entity_id: light.hue_color_lamp_1
service: homeassistant.turn_on
- counter: 2
hook: 'on'
action:
- entity_id: light.hue_bloom_1
service: homeassistant.turn_on
- entity_id: light.hue_bloom_2
service: homeassistant.turn_on
Configuration Variables
- name
(string)(Optional)
A name for this device used within Home Assistant.
- counter
-
(integer)(Optional)
Set to 2 if your only want the action to be executed if the button was pressed twice. To 3 for three times button pressed.
Default value:
1
- hook
-
(string)(Optional)
Indicates if the automation should be executed on what state of the binary sensor. Values are “on” or “off”.
Default value:
on
- action
(list)(Optional)
Specify a list of actions analog to the automation rules.