Hi folks, I have setup a new Hub Variable that updates at intervals with different spa music that is shared via a local URL on a PI device on my network.
and then simply use %% around the variable name so in this instance it should be
%GVrBathroomAudio%, however that doesn't seem to work.
Is there another option that works with Hub Variables and RM5.0? So that I can put the dynamic variable into the string variable available in Rule Manager?
You can still put a Hub Variable (or Local Variable) into any input field for a string, including a string parameter to a custom action, or the Play Track command for a music player device. It still uses %variable-name%.
Might operate differently than 4 as 4 would update as soon as you commit it.
But after just decommissioning my 4 rules and v5 isn't working.
Switching lights on fine, but audio track is still looking like it is referencing a clear text and not a variable.
Now i know there might be something else going on in the backround, but the presentation layer would let you know what it was referencing. So note if I click in to edit this v4 it will show me the %Variable% name and not what it is presenting in this image.
Glad I didn't miss something. I was worried I was wasting your time and you would come back and tell me to enable something somewhere.
I'll just hard code it to get me going for now, and sure when you get a chance to look at it in the future that would be great as it is a handy function.
A little baby got thrown out with the wash. There was a method used in Rule-4.1 that did the variable lookup for that display. Removed in Rule 5.0 as most places it was used went away. I think that can be resurrected.
If it is only visual then please don't go to that hassle just for me.
It didn't appear to work for me, but after hardcoding it and going back in to now change it to %VariableName% it is working a treat and calling the correct URL
So please don't waste any more time on it, as it is working, just not sure why it was choking on me and not playing originally, I am sure i was doing something silly somewhere.