i’m having difficulties within automations that use the status of entities: Status can be “on” or “off”. The Developer shows simply the word on and off. In conditions the requested status is compared with the actual status using apostroph, comparing the string inclusively the apostroph. The problem i have is that the keyboard i’m using (ES españa) does not have this specific character.
To overcome i copied the string from a trace.
If i do not enter apostrophes in the UI the YAML code does show apostrophes. In automation the status is surrounded by apostrophes → always results in “false”. See screen shots:
Hi, Thanks for helping.
The screen shots are kind of “fotos”, not copy/paste data form within YAML edit.
And the execution trace shows clearly that “state” and “wanted_state” are both off but with different quotes/apostrophes: Result: false.
If i copy/paste the wanted_state string into the UI it works.