Above code works fine, calls another script.google_home_turn_on using the correct passed ‘device’, but if I try to change ‘media_player.craft_room_google’ (like above) to device (shown below) [to make it dynamic], it fails.
2019-08-28 18:02:34 ERROR (MainThread) [custom_components.variable] Could not render value_template variable.last_volume: UndefinedError: ‘device’ is undefined
Assuming it’s something in the custom_component that’s not allowing the ‘passed’ device variable from being used. Trying to just use a single dynamic script if at all possible @rogro82 . Thx!
I am using this component to restore previous state in chromecast. Like this:
Radio playing > something interrupted radio(tts) > save radio station and volume to variable history > tts stops > restore from variable history radio station volume to CC.
I think the biggest one is that you can also set attributes without the limitation of 255 characters.
For example, im setting the attributes of a variable from a csv file with a python shell script.
was this addressed to me? if so, which template sensor are you referring to? My post was referring to an automation using the variable custom component.
I like the screenshot you have posted above, I assumed this being created with a template sensor.
If its not the case, I still want to know how you achieved this to show the the history of the different motion sensor in 1 big sensor view.
Can this (or similar) component solve the challange in this post? Namely I would like to control entity templates in one place and re-use them where needed. Thanks!
Is there a way to delete attributes from the variable entity after you create them?
I updated the attribute names in a varaiable. set_variable service call and instead of changing the existing variable attributes it just added the new ones to the list. Now I have a bunch of unused attributes and the list is twice as long.
Hello. I’ve tried to update/change a variables value and/or its attributes in node red with call service nod, but it doesn’t work. Node configuration:
Server: Home Assistant
Domain: variable
Service: set_variable
Entity Id: variable.example_123
Data: { “value” : “{{Buterbrod}}”}
And… Debug: “Call-service API error. Error Message: extra keys not allowed @ data[‘entity_id’]”
What should I do to make it work?