Hi,
I have a light that i can control it via normal wall switch and also with an relay because they are connected as two-way switch.
Now i have a current transformer sensor that tells me if the light is on or off and based on this sensor value i want to set the on or off image
(HomeAssistant rule) - You’re adding a key that is invalid for an entity in lovelace. value_template is not listed in the documents, therefore it is not valid.
(HomeAssistant rule) - Templating isn’t available anywhere in lovelace currently. You have to do all templating in home assistant, not lovelace.
(Yaml rule) - You can’t have a jinja template span multiple fields. Templates can only be in 1 field. I.e. the value template field. You cannot add a field name and expect it to work.
So with that being said, what you’ll need is a custom lovelace card that allows templating in any yaml field.
@petro what do you mean by “UI does not support nested card type” ?
On the plugin github page doesn’t say anything about supported/unsupported version .
Still didn’t figure it out a way to update the light state based on another sensor value.
Any hint will be great.
The UI editor doesn’t support everything that is possible using only yaml. That is what I’m refering to. It’s possible that the UI config checker doesn’t support a card inside a card (nested). I don’t know because I use yaml mode. This has nothing to do with individual cards or the plugin itself.
I literally wrote the code out for you. You have an example.