Trying to use telnet to turn some projectors on and off
followed the docs but get this error;
2018-05-17 12:42:43 ERROR (MainThread) [homeassistant.config] Invalid config for [switch.telnet]: required key not provided @ data[‘switches’][‘projectorl01’][‘value_template’]. Got None. (See ?, line ?). Please check the docs at https://home-assistant.io/components/switch.telnet/
switch:
- platform: telnet
switches:
projectorl01:
name: projectorl01
resource: "192.168.1.236"
port: 23
command_on: "PWR1"
command_off: "PWR0"
# command_state: "PWR?"
# value_template: '{{ value == "PWR=01" }}'
command state and value template are listed as optional in the docs so i haven’t used them. This is my first time using telnet in HASS so any local knowledge would be appreciated.
Thanks!
ps the dash is because i have other switches (command line, mqtt) below