bsimahello, is anyone here using xmpp on iot devices currently? I'm curious what implementations look like these days
bsimai'm reading xep-0325 and i think this is what i was missing. basically the control protocol consists of setters, one address sends the setter message to a device, and the device interprets that setting into the device-specific action
bsimafor example <set><boolean name="lightbulb" value="true"/></set> might turn on the lightbulb
bsimamaybe an xmpp client is running on an arduino which controls the lightbulb switch
bsimasomething i haven't figured out yet is how do i create these setter messages from my client? do i need to write a script, or can i create custom xml structures from a client like adium, etc? does each message need a new ui element for the client?
MattJTip: don't use Adium for anything XMPP these days, it hasn't seen active development for years and is far behind modern XMPP
bsimasure that was just an example, i don't even have a default xmpp client right now
MattJI assume if you're doing IoT you're also doing development in some environment or other
bsimayeah i'm a developer
bsimalooking at automating my home and using xmpp as the main UI instead of apple home-whatever
bsimaalso would like to monitor my garden for moisture levels etc, eventually
COM8has joined
COM8has left
MattJMy honest opinion, as an XMPP developer - use Home Assistant 🙂
MattJIt has so many interfaces and integrations. You can still use XMPP where it makes sense, but it will avoid reimplementing a lot of stuff on top of XMPP just for the sake of it.
bsimai know i know... i'm trying to get off the corpweb though
MattJOf course if your goal is to learn XMPP, there's no better way than to combine it with a fun and interesting project like this
MattJHome Assistant is open-source and self-hostable
bsimaoh Home Assistant is different than Apple Homething
MattJYes, definitely 🙂
MattJHome Assistant (and there are other similar projects, but I have no experience with them) will give you a framework that is already designed as a direct replacement for the proprietary alternatives that you want to avoid. It's not built on XMPP, but that's not the most important thing.
MattJYou can integrate XMPP and a whole bunch of other things with it easily enough
bsimayeah i see xmpp notifications for things, i'm wondering what the device implementations look like though
bsimalike there's this https://www.home-assistant.io/integrations/xmpp/
MattJWhat kind of devices are you planning?
bsimawell i'm getting solar panels this year, looks like HA has lots of tools for electricity/solar
bsimafor the garden i would need to create my own sensor i think
bsimasomething with moisture, temperature, and telemetry to send me the data
Jeroenhas joined
Jeroenhas left
bsimaxmpp-for-iot intrigues me because i could have all the devices as "contacts" in a contact list, right? So to monitor any one i just select it from the list in my client and send it a message
bsimait obviates the need for special ui software
MattJYep
MattJSo you would be reusing the XMPP client's UI
MattJWhich is certainly fine. Home Assistant lets you easily build custom UIs based off sensor data :)
MattJI don't want to dissuade you too much, just want to make sure you know you're picking the right tool for the job
MattJIt sounds like you're content with just normal messaging in an IM client. In that case you don't want *any* of the IoT XEPs
MattJYou can just stick to normal IM stuff, almost or completely exclusively
MattJIf that's the case, that also significantly reduces the amount of custom stuff you need to implement, because there's an abundance of XMPP libraries and tools focused on IM cases
MattJFor sensor nodes any small SBC capable of running Linux with a good I/O interface (to connect peripheral sensors) would suffice
MattJPython is often well supported for those things, and there are multiple good XMPP libraries for Python to choose from
bsimayeah i'm a big fan of ChatOps, or atleast the idea of ChatOps
bsimai think it would work better for a house than for a production SaaS service
bsimathanks for the advice and chat MattJ, i'll keep researching but i'm leaning toward xmpp for this
MattJdoing ChatOps-over-XMPP for a production SaaS service 😉
bsimaoh yeah? impressive
bsimaon my dev teams i've been the only one in favor of chatops, so maybe that has poisoned my experience
MattJYeah, my dev team is basically just me right now, so that certainly makes things easier :)