Telnet - configuration issue Optoma Projector

Hello,

I am trying to control my Optoma projector. I can connect directly using Telnet commands so I know the projector responds correctly but when I try and add the following to the configuration.yaml folder I get an error and Home assistant will not restart?

Here is the file:

Optoma Projector 192.168.2.12

sensor:

  • platform: telnet
    switches:
    projector:
    resource: 192.168.2.12
    port: 23
    command_on: “~0000 1”
    command_off: “~0000 0”
    command_state: “~00124 1”
    value_template: ‘{{ value == “OK1” }}’
    timeout: 0.9

Here is the error:
Logger: homeassistant.components.homeassistant
Source: components/homeassistant/init.py:310
Integration: Home Assistant Core Integration (documentation, issues)
First occurred: 2:12:57 PM (1 occurrences)
Last logged: 2:12:57 PM

The system cannot reload because the configuration is not valid: Platform error sensor.telnet - No module named ‘homeassistant.components.telnet.sensor’

Thanks in advance:)

Im guessing you may have solved this already since this is from a year ago, but anyways. I’ve just got my Sony PJ responding to the following.

switch:
- platform: telnet
  switches:
      sony_projector:
        resource: 192.168.x.x
        port: 53595
        command_on: "power \"on\"\r\n"
        command_off: "power \"off\"\r\n"
        name: "Sony Projector Power"
        timeout: 3

HTH