There is a NIP proposal for IoT devices somewhere...
Possibly this one https://github.com/lnbits/nostr-iot-device