3 ms·
It'd be cool if the fridge just announces "my door has just been opened", and a controller decides what to do with the lightbulb (or should the logic be on the
by netsharc 7y ago
It'd be cool if the fridge just announces "my door has just been opened", and a controller decides what to do with the lightbulb (or should the logic be on the bulb with some parsing like if (device == "refrigerator" and location == my.location and component == "door" and state == "open") { ... }?)
It'd be cool if the sunroof can open when it gets the message from the weather monitor that it's a nice day out, and the AC can switch off when it gets the message that the sunroof is opening...
- Aloha 7y agoFederation won’t solve tha. Heck, the best way for your house is to use multicast, with a unique IP for each endpoint type, and a unique port for each distinct endpoint within the type. The endpoint IDs could even be self assigned, with the idea that you’d only really need a gateway for use outside the home. Standard but extendable protocols can be developed too, so everything can interop but still include custom stuff beyond the standard.
- toomuchtodo 7y agoApple’s Bonjour protocol?
- Andrew_nenakhov 7y agoBonjour is actually an XMPP extension. https://xmpp.org/extensions/xep-0174.html https://xmpp.org/extensions/xep-0174.html
- toomuchtodo 7y agoInteresting! Thanks for sharing this!
- duskwuff 7y agoBonjour is Apple's name for their implementation of mDNS service discovery. It doesn't involve XMPP. XEP-0174 is a peer-to-peer extension to XMPP which uses mDNS ("Bonjour") to discover other clients on a local network. For a while, Apple had an implementation of this in iChat.
- Aloha 7y agoI think they still do, in Messages
- duskwuff 7y agoNot anymore. I believe XMPP support was finally removed from Messages in macOS 10.14. (Almost nobody noticed.)
- Andrew_nenakhov 7y agoYes, you are correct. I was trying to say the same thing. (English is not my native language)
- kaetemi 7y agoI just run a giant Javascript file on a Pi that does this. Devices just need to send data through LAN as dumbly as possible.