Panasonic blueray platform

My Panasonic UB820 bluray player is not one of the models listed as compatible on this platform and does not work. There is one question I do have. In the HA Developer Tools/States there is this entry:

supported_features: 20865

What is the significance of the numeric entry here?

It’s a set of bits that indicate which features the media player supports.

The way to read it, is to look at the binary representation of that number:

0101 0001 1000 0001

Each of these bits are like a switch: 1 for on and 0 for off. Since its a binary number, each position of each bit represents a power of 2. The rightmost bit if on or 1 is 2^0 which is 1, and the next (if it was on or 1), would be 2^1 which is 2, and so on. You then sum these together to get to the number you see.

So, for media players in HA each feature has an associated bit. These are detailed in the developer docs, but won’t help you yet to know what your specific value means. For that, you need to refer to actual code. All of these values are powers of 2. Which power it is tells you which bit in the “big number” needs to be on. In this case, bit 8 is on, representing the value 128 (2^7), which is the TURN_ON flag.

Just a curiosity for me as my particular model does not seem be supported. Thank you for the info, though.

+1 for this

I created a feature request here:

1 Like