i'm torn on encrypting IoT data with the same scheme that NIP4 uses. There are all the metadata issues but the metadata leaks are likely less consequential than with social media clients. however, this doesn't mean it's ok. there are plenty of situations where it could be v. bad.
it's likely that if you're doing iot stuff, you use a different nsec for social media clients, and the devices have semi transient nsecs too.
i've implemented nip04 encryption in the arduino libs. giftwrapping is a good intermediate solution until we have a better NIP. i'll add nip59 support to the lib when i can.