Is it possible to have a lookup table accessible to the whole system, i.e. across automations, scripts, intents, etc?
I’m not sure if this a sensible approach or if it’s possible so guidance would be appreciated. The data in the table would change typically on a timescale of months and would be manually changed.
The use case that best explains what I’d like to achieve is to have one table with multiple columns such as;
Friendly name, Intent name, TV channel name, TV channel number, Set-top box channel name, Set-top box channel number, ....
This would store spoken channel names, provider name for channel, channel number, etc these can then be referenced by any automation, script, intent script, etc. These names and channels vary enough between media_player
s to make me write different automations for each player however, I think I could make it much easier by having fewer automations that reference the applicable data
So a possibility for my current setup;
BBC One, one, BBC ONE WstHD, 101, BBC One West HD, 101,...
BBC Two, two, BBC Two HD, 102, BBC Two HD, 102,...
...
At the moment in one automation I have a very large nested if to convert a channel name into the correct number, and channel name. I think I could make it much shorter and easier to read plus I can use the same information in multiple locations and not have to update multiple automations when names or channel numbers change.
Chris