external_components:
  - source:
      type: local
      path: external_components
    components:
      - tw7100

tw7100:
  uart_id: uart_bus

uart:
  id: uart_bus
  tx_pin: 15
  rx_pin: 13
  baud_rate: 9600

binary_sensor:
  - platform: tw7100
    signal_detected:
      name: "Signal"
    power:
      name: "Powered"

sensor:
  - platform: tw7100
    hours:
      name: "Projector lamp hours"
    power:
      name: "Projector power status"
    state:
      name: "Projector signal status"
    illuminance:
      name: "Projector luminance level"

text_sensor:
  - platform: tw7100
    serial:
      name: "Serial number"

switch:
  - platform: tw7100
    PWR:
      name: "Power"
    BTAUDIO:
      name: "Bluetooth Audio"