Help - Xiaomi Switch doesn't show up as light/plug (only as sensor) = uncontrollable via API, lost control of multiple switches operating 1 light

I just copy-pasted from your comment above and used that as a json. Blinking is ok, it worked before but it doesn’t pick it up now when I try to add it as a switch.

I run it on a headless RPI3, so by default I don’t see the logs.
I used this post How to get logs? to get logs while I tried to pair it:
17:13:55:359 /root/.local/share/dresden-elektronik/deCONZ/config.ini exists and - Pastebin.com