Change selection mappings via a rule

I have an HDMI switch that I’m interacting with programmatically and exposing via MQTT. Through this I can access which options are “available” to be switched to based on what devices are turned on. It can be 0-4 of the possible options below.

In my sitemap, I have this selection with mappings.

Selection item=TvSwitch mappings=[1=“Xbox One”, 2=“Fire TV”, 3=“Xbox 360”, 4=“NES Classic”] label=“TV input”

Is it possible to alter the mappings and available options in a rule based on another field (which I would update state based on MQTT)?

This is not currently possible.

1 Like