I have setup current sensor template for max current to used in ev charging.
I want to send this to mqtt as payload, but my sensor gives value greater than should be send.
Value should be betwene 6 to 16. I tried to setup ELSE IF THEN in payload_template but could get it to work.
You use the index operator [ ] to access an item or items in a list. To select a single item you just put the item’s index number in the operator. Jinja indexing starts at 0, so [1] selects the second item from the list.