Error in template condition

Copied this off one of the configs

- condition: template
  value_template: ‘{{ states.sensor.mys_kitchen_hum_avg_mean.state != "unknown” }}’

But get an error that " is unexpected. How come?!

ERROR (MainThread) [homeassistant.config] Invalid config for [automation]: invalid template (TemplateSyntaxError: unexpected char '"' at 52) for dictionary value @ data['condition'][3]['value_template']. Got None not a valid value for dictionary value @ data['condition'][3]['condition']. Got None
    required key not provided @ data['condition'][3]['entity_id']. Got None. (See /home/homeassistant/.homeassistant/configuration.yaml, line 79). Please check the docs at https://home-assistant.io/components/automation/

!= "unknown”
Your double quotes look a little different.
Also check the single quotes.

1 Like

Yes! it was it. Thank you! Should change the font in MS code as there is tlooks the same