라즈베리파이 RF


rpi_rf 스위치 플랫폼을 사용하면 Raspberry Pi의 일반 저가형 GPIO RF 모듈로 433/315MHz LPD/SRD 신호를 통해 장치를 제어할 수 있습니다.

rpi-rf 모듈 또는 rc-switch를 통해 스니핑된 코드와 상호 운용 가능. 자세한 내용은 PyPi 모듈 설명을 참조하십시오 : rpi-rf

설정

활성화하려면 configuration.yaml에 다음을 추가하십시오 :

# Example configuration.yaml entry
switch:
  - platform: rpi_rf
    gpio: 17
    switches:
      bedroom_light:
        code_on: 1234567
        code_off: 1234568
      ambilight:
        pulselength: 200
        code_on: 987654
        code_off: 133742
      living_room_light:
        protocol: 5
        code_on: 654321,565874,233555,149874
        code_off: 654320,565873,233554,149873
        signal_repetitions: 15

Configuration Variables

gpio

(integer)(Required)

GPIO to which the data line of the TX module is connected.

switches

(list)(Required)

The array that contains all switches.

entry

(list)(Required)

Name of the switch. Multiple entries are possible.

code_on

(list)(Required)

Decimal code(s) to switch the device on. To run multiple codes in a sequence, separate the individual codes with commas ‘,’.

code_off

(list)(Required)

Decimal code(s) to switch the device off. To run multiple codes in a sequence, separate the individual codes with commas ‘,’.

protocol

(integer)(Optional)

RF Protocol.

Default value:

1

pulselength

(integer)(Optional)

Pulselength.

signal_repetitions

(integer)(Optional)

Number of times to repeat transmission.

Default value:

10