KNX - Media Player Control 🎶

It also reads following:

Choose at step 1: choice 10: Error executing script. Error for call_service at pos 1: Error rendering data template: TypeError: ‘NoneType’ object is not subscriptable

@torbenledermann
Is this expected?

So, according to my analysis the issue is related to the artist (and album + title) not being mapped to a group address. Since there’s the character limit of 14, I didn’t bother mapping it and / or there’s no need for me to ‘spam’ the bus with this information. Unfortunately, the blueprint doesn’t check whether the variable for the GA exists and is non-empty prior to accessing it.

That’s strange normally you should be able to simply leave out group adresses if you don’t use this information. Unfortunately recently i didn’t have that much time to take a look into the blueprint.
But I’ll try to take a look into that issue and some proposed feature requests

Thanks for Your feedback, @torbenledermann.

To short-cut things a bit I decided to create group addresses and map those from the blueprint. Unfortunately the error still occurs. Since we’re having radio stations on our favorites I believe it could still be related, i.e. empty album causes the error.

Error is still „NoneType“ or more precisely:

„Fehler: Error rendering data template: TypeError: ‘NoneType’ object is not subscriptable“

And that’s what tracer shows:

Okay that makes sense. Your media player doesn’t have a artist value in this case. That should be an easy fix. Thank you for your feedback

Yes, I checked that too for that very error.

It seems that a radio stream, may have / miss any combination of artist, title and album might. That’s evident from the media player’s state in Developer Tools.

Hm that’s strange I can’t edit my first post. Anyways I just released a new version.

V1.2.0 - Turn On/Off Action now usable, Shifting to next track when mediaplayer is already playing, Bugfixes regarding missing attributes.

The following features/bugfixes are included:

Is added now as a seperate pair of group addresses.

You can enable this sort of behaviour with a checkbox, next to setting up the group addresses for play/paus

This bug should be fixed now

Thanks, well appreciated, Torben!

I will test the update specifically against the error I‘ve been seeing in a couple of days and then share the results.