Comments (69)
from homebridge-gree-ac.
Make sure your AC is connected to your home network via AC. Get it’s ip and configure the plugin. MqTt is needed for getting the room temperature. For example I use DHT 11 sensor with esp8266 that reads room temperature and post it to an mq topic.
from homebridge-gree-ac.
from homebridge-gree-ac.
You can use mosquito as mqtt server on a pc or RaspberryPi
from homebridge-gree-ac.
from homebridge-gree-ac.
Hello, yes try that and then you should see in logs when it discovers the AC. If any problems please reply here.
from homebridge-gree-ac.
from homebridge-gree-ac.
hello,
did you install the plugin?
from homebridge-gree-ac.
from homebridge-gree-ac.
I tested on my setup and it running ok.
how did you install the plugin? please post here the accessory configuration for gree-ac
from homebridge-gree-ac.
from homebridge-gree-ac.
from homebridge-gree-ac.
I see. I will take a look since I have only one AC and I did not tested with multiple AC on the same network.
from homebridge-gree-ac.
from homebridge-gree-ac.
I uploaded to github the changes. you can test by getting the contents of app/deviceFactory.js (from this repo) update the file /usr/local/lib/node_modules/homebridge-gree-ac/app/deviceFactory.js (replace the contents of the file your raspberry pi with the code from this repo); do the same thing for index.js (from this repo) -> /usr/local/lib/node_modules/homebridge-gree-ac/index.js
After that, restart homebridge and you should see all 3 AC added to Home app and min temperature 16C
... or you can download the entire repo, install with npm and test.
let me know if you have troubles and I can help.
from homebridge-gree-ac.
from homebridge-gree-ac.
that is an invalid config. GreeAC is the name of the accessory (this is telling Homebridge witch plugin to use), so it should be the same for all the "instances". value of "name" field will appear also on Home app on your iPhone (but you can can rename it on your Iphone, later).
The only thing that differentiate accessories is the "name" key". Use this configuration:
"accessories": [
{
"accessory": "GreeAC",
"host": "192.168.1.136",
"name": "Office AC",
"debug": "false",
"updateInterval": 10000,
"mqttUrl": "mqtt://127.0.0.1",
"currentTempTopic": "home/office/temperature"
},
{
"accessory": "GreeAC",
"host": "192.168.1.54",
"name": "BedRoom AC",
"debug": "false",
"updateInterval": 10000,
"mqttUrl": "mqtt://127.0.0.1",
"currentTempTopic": "home/bedroom/temperature"
},
{
"accessory": "GreeAC",
"host": "192.168.1.253",
"name": "LivingRoom AC",
"debug": "false",
"updateInterval": 10000,
"mqttUrl": "mqtt://127.0.0.1",
"currentTempTopic": "home/LivingRoom/temperature"
}
from homebridge-gree-ac.
from homebridge-gree-ac.
Hello,
Can you try with one accessory defined? First configure ip of the first AC, restart Homebridge and test. Next stop homebridge, and test for the ip of the second AC. Same for the last AC device.
Thanks,
from homebridge-gree-ac.
from homebridge-gree-ac.
from homebridge-gree-ac.
from homebridge-gree-ac.
Give it a few seconts, it will update the home app also.
from homebridge-gree-ac.
Ok, i did a test by adding a "fake" AC but on the same IP. So now I have 2 AC in home app (but both will controll my home AC). It works ok for me, no crash. Can you test? Just take the /app/deviceFactory.js from this repo and replace your /app/deviceFactory.js (on your Mac or where you run Homebridge), put the configuration with 3 AC (valid ips), restart homebridge and try again.
thanks,
from homebridge-gree-ac.
from homebridge-gree-ac.
from homebridge-gree-ac.
hmm, how about now?
from homebridge-gree-ac.
from homebridge-gree-ac.
from homebridge-gree-ac.
ups...forgot about that one....can you replace deviceFactory.js and test?
from homebridge-gree-ac.
from homebridge-gree-ac.
from homebridge-gree-ac.
from homebridge-gree-ac.
from homebridge-gree-ac.
Hello,
Sorry for the delay. For the moment i have no time to work on this project but as soon as i get some spare time I will continue.
from homebridge-gree-ac.
from homebridge-gree-ac.
can you try?
replace index.js and deviceFactory.js and the restart homebridge
from homebridge-gree-ac.
from homebridge-gree-ac.
from homebridge-gree-ac.
from homebridge-gree-ac.
from homebridge-gree-ac.
from homebridge-gree-ac.
from homebridge-gree-ac.
you mentioned that the errors remained - what are the errors?
What is the status of Home app accessories?
from homebridge-gree-ac.
from homebridge-gree-ac.
are you sure you are using the last code (deviceFactory.js)? i don't see any messages like:
init deviceFactory on host ...
from homebridge-gree-ac.
from homebridge-gree-ac.
from homebridge-gree-ac.
You get the error on home app on iphone? Try to stop homebridge, remove persistent and accesories folders from homebridgehome folder and restart homebridge.
from homebridge-gree-ac.
from homebridge-gree-ac.
Hello,
I uploaded the code that works for me (from my homebridge instance). Can you test now?
from homebridge-gree-ac.
from homebridge-gree-ac.
what icon? can you be more specific?
from homebridge-gree-ac.
from homebridge-gree-ac.
from homebridge-gree-ac.
from homebridge-gree-ac.
Did you started? Long press on icon/mode/cool.
Do you have mqtt topic with room temperature ?
from homebridge-gree-ac.
Are you sure that your AC type is exposing same api as Gree AC? Please post here a screenshot of your home app.
from homebridge-gree-ac.
from homebridge-gree-ac.
Cool! Enjoy!
from homebridge-gree-ac.
from homebridge-gree-ac.
Hello,
I will update the code on npm after few days of (you) testing :D.
What is your configuration in homebridge and how does your temperature sensor write data to mqtt topic?
from homebridge-gree-ac.
from homebridge-gree-ac.
You need to read again the description of the plugin. My plugin reads room temperature from mqtt topic...
from homebridge-gree-ac.
from homebridge-gree-ac.
I explained it in my first comment 25 days ago. Look at the begining of this discussion...
from homebridge-gree-ac.
from homebridge-gree-ac.
from homebridge-gree-ac.
Thanks for the update! Enjoy!
from homebridge-gree-ac.
Related Issues (5)
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-gree-ac.