Giter Site home page Giter Site logo

Comments (4)

PatchworkBoy avatar PatchworkBoy commented on May 29, 2024 1

Consider this the ReleaseCandidate version, currently in testing towards Release status: https://github.com/PatchworkBoy/homebridge-eDomoticz/tree/mqtt-integration

To use, firstly it’s presumed that users have Mosquito or another MQTT broker running locally on the same system as Domoticz. It’s preinstalled on both Domoticz SD Card images.

Now, In Domoticz web interface: Setup > Hardware...

Add New Hardware...

Type: MQTT Client Gateway with LAN interface
Remote Address: 127.0.0.1
Port: 1883
Username: (only populate these if you’ve set up security in your MQTT broker)
Password: (only populate these if you’ve set up security in your MQTT broker)
Publish Topic: out

Domoticz will now publish all device changes via MQTT.

Amend your homebridge config.json to include the MQTT fields as follows:

{
    "bridge": {
        "name": “Homebridge”,
        "username": "CC:21:3E:E4:DE:33”,
        "port": 51826,
        "pin": "031-45-154”
    },
    "description": "Configuration file for (e)xtended Domoticz platform.”,
    "platforms": [
        {
            "platform": “eDomoticz”,
            "name": “eDomoticz”,
            "server": “127.0.0.1”,
            "port": “8080”,
            "ssl": 0,
            "roomid": 0,
            "mqttenable": 1,
            "mqttserver": “127.0.0.1”,
            "mqttport": “1883”,
            "mqttauth": 1,          //only needed if you've password protected mosquitto via mosquitto.conf
            "mqttuser": "username", //only needed if you've password protected mosquitto via mosquitto.conf
            "mqttpass": "password"  //only needed if you've password protected mosquitto via mosquitto.conf
        }
    ],
    "accessories": []
}

SWITCHES are now realtime updated on the fly via HomeKit... ie: Devices of type Switch, Contact, Blinds, Smoke, BlindsInverted, Dimmer, Motion, PushOn, BlindsPercentage & BlindsPercentageInverted.

SENSORS are not. These are a work-in-progress. Priority was on the switches.

from homebridge-edomoticz.

rswilem avatar rswilem commented on May 29, 2024 1

Closing this, just merged mqtt-integration into master (466db94)

from homebridge-edomoticz.

PatchworkBoy avatar PatchworkBoy commented on May 29, 2024

Current state of the mqtt-integration branch is:

Connects to mqtt://server:port (which are picked up from config.json), subscribes to domoticz/out stream, & echoes messages out to the Homebridge log.

Messages need parsing and acting upon.

from homebridge-edomoticz.

PatchworkBoy avatar PatchworkBoy commented on May 29, 2024

This creates a HUGE amount of traffic from my Domoticz install, and I can see it will CRUCIFY battery life of devices enrolled to the HomeKit instance...

Might have to be down to the user to create their own rate-limiting patch in node-red to filter down the domoticz/out stream. We can include a flow file to cover this if I can’t find a way to rate limit within mqtt.js

from homebridge-edomoticz.

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.