Skip to content

rotationPercent and rotationAbsolute resets after page change or screen lock #275

Closed Answered by cgiesche
artistro08 asked this question in Help and Support
Discussion options

You must be logged in to vote

Hi,

i understand your wish to have access to state variables in the service call JSON. Long story short: It would be very complicated to implement and make configuration much more complex than it already is.

But there is hope:

{
  "color_temp": "{% raw %}{{ state_attr('light.living_room_ikea','color_temp') + {% endraw %}{{ ticks }}{% raw %} }}{% endraw %}"
}

Not only my plugin supports the nunjucks syntax, the home-assistant side does as well. To send (parts) of the template to homeassistant, you can use the raw option.

The above example sets the color_temp to the current (home-assistant side) value + the plugin's side ticks value. It looks confusing, but you should be able to use this to…

Replies: 4 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Answer selected by artistro08
Comment options

You must be logged in to vote
1 reply
@artistro08
Comment options

Comment options

You must be logged in to vote
1 reply
@artistro08
Comment options

Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #274 on May 21, 2024 10:28.