Check for a specific Attribute

Apparently The Home Remote doesn’t support the “includes” method. So e.g. this doesn’t work:

panasonicDevice = plugin.Devices["PanasonicTV"];
panasonicDevice.Attributes.includes("TestValue");

Any suggestions on how I can check if a specific Attribute is defined for a device?

Use “indexOf”. It will return -1 when the value isn’t in the array.