HANDLER_INITIALIZING_ERROR knx:QuantityType is not a valid channel type ID

Hi,
with knx-binding, I accidentally broke my knx-things-configuration,
grafik

grafik

by typing in a not valid channel type ID in the code section and saving it.
grafik

Now I can’t get rid of this invalid channel anymore.
Deleting the channel in the code section and saving afterwards did not help.

The invalid channel no longer appears in the channels section,
grafik

but it shows up in the code section again, when I switch back to the code section.

Changing the channel type ID to a valid one didn’t help either.
After saving, then switching to the channel section and then back to the code section, the channel type ID is “QuantityType” again.

Because of this mistake all my knx channels no longer work.

How can I get rid of the invalid channel?

My setup:
openHAB 4.1.1 Release Build
openHABian
Raspberry Pi 3 Model B Rev 1.2

How does the code look like?
Please be aware that you can edit the code.

EDIT: just realized, openHAB refuses to change channelTypeUID back to a valid value.
So either delete the thing or shutdown openHAB, then open $OPENHAB_USERDATA/jsondb/org.openhab.core.thing.Thing.json, search for knx:QuantityType and change it to knx:number

DON’T CHANGE ANY OTHER PART :slight_smile:
You have to edit the file with extended permissions:

sudo nano $OPENHAB_USERDATA/jsondb/org.openhab.core.thing.Thing.json

If you mess something up, there are some backups of the file in $OPENHAB_USERDATA/jsondb/backup/ and it’s a good idea to create one by yourself before changing anything.

openHAB will read the file only at startup, so first stop openHAB, then edit, then start openHAB.

1 Like

Thank you so much for your help!
You saved my day. :partying_face:

Here are a few tips for beginners who also want to correct the entry in jsondb.
After a shutdown, I couldn’t access the Raspberry with puTTY.
That’s why I did not shut down Raspberry. I stopped openhab with the command

sudo systemctl stop openhab.service

and then started it after the change with the command

sudo systemctl start openhab.service

.

I also couldn’t find the file $OPENHAB_USERDATA/jsondb/org.openhab.core.thing.Thing.json in WinSCP straight away.
The directory $OPENHAB_USERDATA is the directory

/var/lib/openhab/jsondb

in my installation (openhabian and Raspberry Pi).
I edited the file with VS-Code because this is slightly easier to me than using nano.

Now everything is fine again.