Coder Social home page Coder Social logo

Zigbee? about scrypted HOT 11 CLOSED

koush avatar koush commented on August 16, 2024
Zigbee?

from scrypted.

Comments (11)

noelhibbard avatar noelhibbard commented on August 16, 2024

Okay, I just noticed the link to the plugin docs. Looks like it wouldn't be too hard to write a plugin to add support for Zigbee2MQTT.

from scrypted.

koush avatar koush commented on August 16, 2024

I’ve been looking at mqtt, but haven’t gotten around to doing it yet since don’t have any mqtt devices. I get the general gist of the pubsub mechanism, but is there a data standard on the endpoint names for say, a lights, and what payload is published and posted? different client/publishers seemed to vary and required different payload handlers, from what I saw.

from scrypted.

koush avatar koush commented on August 16, 2024

I do have a zwave stick that i have a plug-in for, that I could put behind zwave2mqtt…

from scrypted.

koush avatar koush commented on August 16, 2024

Stop in on the discord and I can help you get started with vscode. The docs should be generally up to date though.

from scrypted.

noelhibbard avatar noelhibbard commented on August 16, 2024

MQTT itself has no structure at all. You can put any string you want in the payload. A lot of projects that make use of MQTT use JSON for the payload. Zigbee2MQTT has some really good documentation on how the MQTT payloads need to look.

As for your Zwave stick. Zwave and Zigbee are not the same thing. There is a list of supported adapters here, some are as cheap as $12. There are tons of cheap Zigbee devices out there too. For example all the Ikea smart stuff uses Zigbee.:
https://www.zigbee2mqtt.io/information/supported_adapters.html

I personally use the zzh! but it's really hard to find in stock. I always sign up for notifications when they come back in stock but if you wait even 5mins to jump on and order it will be too late. Took me about 2 months to finally be fast enough to catch them in stock.

I've just found Zigbee devices to work more consistently and seem to have less latency when sending commands. I have a few Zwave devices and a lot of times I send a command to them and they don't respond at all or they take 3 secs or so to respond. My Zigbee stuff responds instantly.

from scrypted.

koush avatar koush commented on August 16, 2024

Yes, I know zwave and zigbee are not the same thing. I was just saying I could use the zwave2mqtt project to build/test an mqtt plugin, since I have around 70 zwave devices here. None of my other hardware talks mqtt.

from scrypted.

koush avatar koush commented on August 16, 2024

A lot of projects that make use of MQTT use JSON for the payload. Zigbee2MQTT has some really good documentation on how the MQTT payloads need to look.

so a generalized mqtt plugin would likely need to allow the user to specify the publishing topics and parse the meaning of the payload?

from scrypted.

noelhibbard avatar noelhibbard commented on August 16, 2024

A lot of projects that make use of MQTT use JSON for the payload. Zigbee2MQTT has some really good documentation on how the MQTT payloads need to look.

so a generalized mqtt plugin would likely need to allow the user to specify the publishing topics and parse the meaning of the payload?

Yes, I know zwave and zigbee are not the same thing. I was just saying I could use the zwave2mqtt project to build/test an mqtt plugin, since I have around 70 zwave devices here. None of my other hardware talks mqtt.

Oh sorry.. I misread zwave2MQTT as Zigbee2MQTT. I've not looked at the zwave2mqtt project. I suspect the payloads wouldn't be close enough to have a generic plugin that cover both platforms. Although I do think a generic MQTT plugin would be better than one specific to Zigbee2MQTT and another one specific to Zwave2MQTT.

There is a nice MQTT plugin for homebridge called homebridge-mqttthing that you could get ideas from. I use it for a lot of projects of my own. For example I have an RPi in the garage that runs my garage door, sprinklers and an outdoor shower. To bridge these things into HomeKit I simply added a MQTT interface to my project and then used the homebridge-mqttthing plugin to talk to them. So many projects are using MQTT these days. Frigate NVR is another project that comes to mind that you could tie into with MQTT.

There is also a nodejs module for MQTT that is dead easy to use. npm -S i mqtt. I'm sure there is a docker image out there to spin up a Mosquito server with minimal effort.

from scrypted.

koush avatar koush commented on August 16, 2024

Have started MQTT support. Have included the Aedes broker.
Right now it provides an easy way to write scripts that manage MQTT subscriptions. Or create domain specific languages to create common devices:

image

Need to eventually add support for HASS autodiscovery protocol.

from scrypted.

koush avatar koush commented on August 16, 2024

@noelhibbard have an initial implementation of mqtt auto discovery. what sort of devices do you have a on zigbee?

from scrypted.

DedMsk avatar DedMsk commented on August 16, 2024

WOW! It's great!
Maybe I can add doorbell sensor from MQTT? )
Can you help me?

from scrypted.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.