Media Tiles have two colors available: Default and Active. How can I select the colors programmatically?
Media Tiles only support the āDefaultā color. Weāve started updating some of the tiles to remove the āActiveā color option if they donāt support it. Iāve made note that the Media Tiles needs to be updated.
Can you help us better understand the use case or context for programatically changing the media tile color?
Examples:
I have a Media Tile named āAlertsā which points to a dashboard named āAlertsā (surprised?) The Alerts dashboard shows the status of all leak detectors and door-open detectors. I would like to change the media tile red when one of these detectors becomes active.
Similarly, the āBatteriesā media tile points to the āBatteriesā dashboard which shows the level of the device batteries. I would like to change the media tile to red when any one of the battery levels fell below a certain level.
Those are the two that Iād like for use now. I can think of more.
If a virtual switch could call a dashboard - that would work too. Or if the media tile was accessible by the Rule Engine.
What do you think? Any chance of ever having access to āActiveā color, or will we live forever in a boring, mono-color world for Media Tiles?
I think something along these lines is more likely in the near term. With Variables now in beta, I could see the True/False variable tile being updated with an option to use a Hyperlink as the action.
This would let you use rules to aggregate the status in a Variable, then use that variable as a tile to display the status with the action being a link to your desired dashboard.
That would be a good solution - and a worthy addition!
I hope Iām not too far off base in what Iām trying to do.
For example:
Iāve created a āBatteriesā True/False variable tile, chosen a red fill for True and green for False. Its action is to run a hyperlink that calls the āBatteriesā dashboard.
Iāve previously aggregated all of the battery levels and have a rule-driven virtual switch thatās triggered by a change in any of the battery levels, turns on if any level is below 30, and otherwise turns off. That all works.
Now I want to change the state of the True/False variable rather than turn a virtual switch on/off.
My question is - how do a create an Action in Rule Engine that can change the state of the True/False variable
@Stan_Silverman, you can set variable value in Rule Flow using Set Variable action. Select the variable you want to update, and select Manual Input in your scenario to set this variableās value to True or False.
Great! Thanks!
Suggestion: I added four Variable Tiles to a dashboard. When I went to edit them, they are all nameless, so I canāt tell which is which. Iāve deleted them and will add them one at a time. Would it make sense for the tile to inherit a name from the variableās name?
@Stan_Silverman, both True/False
and Number
variable tiles should display the variable name by default. We found people likely to use a different label for Text
variable tile, so variable name is hidden by default for Text
variable tile. However, you can always customize the Label property of the tile to display whatever text(title) that makes best sense to you.
The tiles I added were True/False - I believe. Will play with it some more.
James - It sure looks like True/False variable tiles are added without names.
Thatās interesting. Can you please take a screenshot of the variable tiles in your dashboard and the settings of the variable tile? If you can provide me your dashboard id, I can also look it up as well. Thanks.