I would like to make my own switches to call for a few media_player options - pioneer, and panasonic viera. This would be especially useful within the ‘Custom UI Tiles’ by @eddi89 - but I don’t quite know how to leverage the media_player platform to achieve that.
Has anyone successfully achieved this? Or (I suspect) is there a smarter way to go about this?
I also wanted to pass this on; as Kodi has a number of ‘states’ indicating it is ‘on’ (such as idle, playing etc.) the best way to deduce the state for this switch is using “not off”. This is achieved like this (not the 'not is_state) - hopefully this helps someone too: