Comments (4)
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.
Closing this, just merged mqtt-integration
into master
(466db94)
from homebridge-edomoticz.
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.
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)
- Not working with domoticz v2023.1 HOT 1
- Domoticz 2023.1 - Problem with the plugin HOT 4
- Devices not showing in home bridge HOT 1
- Status: [WebServer] Depricated RType (devices) for API request. Please use correct API Command!
- API Calls to Domoticz depricated HOT 35
- Could not connect to Mqtt broker HOT 1
- Unable to connect to Domoticz 2023.2 HOT 1
- [WebServer] Deprecated RType HOT 3
- [Domoticz] missing accessories after upgrades HOT 17
- Error update 2.1.47 HOT 2
- Domoticz Motion Sensor not working in Homebridge HOT 8
- Homebridge and plugin eDomoticz working - but no accessories anymore HOT 4
- Add Setpoint root type to current heating / thermostat handler HOT 7
- Homebridge not updating status of switches HOT 11
- Impact of domoticz change on thermostats HOT 1
- Force name update HOT 2
- Devices names don't update
- Thermostat are not visible any more with Domoticz 2024.x HOT 5
- Support for Domoticz V2023.2 and newer HOT 2
- Domoticz devices not showing in Homebridge/Homekit HOT 9
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from homebridge-edomoticz.