You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As a new user, I've been struggling to get a basic example working. I continued to get this error:
Must be string, got <class 'esphome.helpers.OrderedDict'>. did you forget putting quotes around the value?.
The reasoning wasn't clear to me until I found this gist for a garage door opener.
Basically the states can be either
state_machine:
- name: Fan Modestates:
- NORMAL
- SILENCED
or
state_machine:
- name: Fan Modestates:
- name: NORMALon_enter:
- logger.log: "Fan is turned off"
- name: SILENCEDon_enter:
- logger.log: "Fan is turned on"
However, you can not do the following (which is what I was mistakenly doing)
state_machine:
- name: Fan Modestates:
- id: NORMALon_enter:
- logger.log: "Fan is turned off"
- id: SILENCEDon_enter:
- logger.log: "Fan is turned on"
It may be obvious to others, but It wasn't clear to me that states needs either a list of strings, or a list of dictionaries with key 'name'. An additional example in the readme may be helpful for others.
The text was updated successfully, but these errors were encountered:
Thank you so much for this esphome component.
As a new user, I've been struggling to get a basic example working. I continued to get this error:
The reasoning wasn't clear to me until I found this gist for a garage door opener.
Basically the
states
can be eitheror
However, you can not do the following (which is what I was mistakenly doing)
It may be obvious to others, but It wasn't clear to me that
states
needs either a list of strings, or a list of dictionaries with key 'name'. An additional example in the readme may be helpful for others.The text was updated successfully, but these errors were encountered: