this could be done pretty easily. the lib supports callbacks for any nostr event kind.
I have a PR for zap lamp to make more generic like bitcoin switch. It makes sense. I used for demo yesterday