Hi, I’m trying to control my projector via the telnet switch. The problem is that the status doesn’t update. I can turn the projector ON via HomeAssistant so I know the connections is OK.
This is what I have:
switch:
platform: telnet
switches:
projector:
resource: “10.0.0.36”
port: 23
command_on: “~0000 1”
command_off: “~0000 0”
command_state: “~00124 1”
value_template: ‘{{ value == “OK1” }}’
The logs say: Empty response for command: ~00124 1
I have done telnet to the projector and all three commands work. The return for “~00124 1” is “OK1” when on and “OK0” when off. Why doesn’t Home Assistant get a return?
The docs says “If not defined the switch will assume successful state changes.”, but how to I not define something that’s “required”? I don’t need it to check for state, I just need the switch to flip so I can turn it off…
From https://home-assistant.io/components/switch.telnet/ :
command_state (Required): Command to determine the state of the switch. If not defined the switch will assume successful state changes.
value_template (Required): The template evaluating to true will indicate that the switch is on.
I’m having the same issue with my Optoma projector.
On my computer shell I tested the telnet command ~00150 1 \r and it correctly returns me the status string. But Home Assistant will show me the same error.
Im having kind of the same problem… Optoma UHD60…
My problem is that when Im using telnet I always get “F” as result the first time… after the initial request, I always get the correct answer:
Escape character is '^]'.
Optoma_PJ> ~00124 1
F
Optoma_PJ> ~00124 1
OK1
Optoma_PJ> ~00124 1
OK1