I have tried nearly every option i could find for value_template but the state is always shown as “unknown” (in dev section and if i bind the entity to a dashboard.
Has anyone an idea, how i can transform the raw “true” or “false” to somethin like on and off or another kind of “real” boolean?
thanks for your reply. That auto discovery won’t work is not the problem, therefor i configured the sensor in the yaml.
The problem is, that the value wasn’t read. But now i am a step further. The value is read as true or false with the code above.
The next question now is, how do i convert the value that HA understands it as a kind of boolean, to use it e.g. for setting the icon color depending on the state.