Skip to content

Using {% raw %} in service data JSON doesn't work anymore #346

@artistro08

Description

@artistro08

I tried the new plugin and found this bug

I have some custom json code that I use to turn up and down the volume using the encoder:

{ "volume_level": "{% raw %}{{ (state_attr('media_player.office_speakers','volume_level') + {% endraw %}{{ ticks }}{% raw %}) }}{% endraw %}"}

This code doesn't work anymore. However this does:

{ "volume_level": "{{ rotationPercent / 100 }}"}

It just resets every time you change a page, folder, etc.

Is there anything I'm missing here as to why it's doing this?

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions