Closed rnglad closed 6 years ago
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.
Dear duculete,
so, mqtt is should be hardware, not software? I have homekit sensor so read the temperature in the room
On Sat, Jun 16, 2018 at 5:36 PM duculete notifications@github.com wrote:
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.
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/duculete/homebridge-gree-ac/issues/1#issuecomment-397816514, or mute the thread https://github.com/notifications/unsubscribe-auth/AmcrbL_cey1h3ozQ7eBOcv7PKbTUSh17ks5t9RgEgaJpZM4UqbYK .
You can use mosquito as mqtt server on a pc or RaspberryPi
ok. Thanks, my homebridge is installed on Raspberry. Sorry to bother you for so much, but I am a bit of new in all that, are there any special settings after installing mosquito, or just install it, install your plugin, write correct IPs of ACs and that's it?
Regards, Roman
On Sat, Jun 16, 2018 at 6:40 PM duculete notifications@github.com wrote:
You can use mosquito as mqtt server on a pc or RaspberryPi
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/duculete/homebridge-gree-ac/issues/1#issuecomment-397820549, or mute the thread https://github.com/notifications/unsubscribe-auth/AmcrbDeiMHqmfIeK4TyVCudRaybgPf4vks5t9SbogaJpZM4UqbYK .
Hello, yes try that and then you should see in logs when it discovers the AC. If any problems please reply here.
Hello again,
I have installed mosquitto, tried it out to see that it is working, after that I installed your plugin, edited the config file as it says in your wiki, just inserted another ip for my AC, but when I run home bridge, that is the error that I receive:
Loading 1 accessories...
/usr/local/lib/node_modules/homebridge/lib/api.js:64
throw new Error("The requested accessory '" + name + "' was not
registered by any plugin.");
^
Error: The requested accessory 'GreeAC' was not registered by any plugin.
at API.accessory
(/usr/local/lib/node_modules/homebridge/lib/api.js:64:13)
at Server._loadAccessories
(/usr/local/lib/node_modules/homebridge/lib/server.js:264:42)
at Server.run
(/usr/local/lib/node_modules/homebridge/lib/server.js:86:38)
at module.exports
(/usr/local/lib/node_modules/homebridge/lib/cli.js:40:10)
at Object.<anonymous>
(/usr/local/lib/node_modules/homebridge/bin/homebridge:17:22)
at Module._compile (module.js:652:30)
at Object.Module._extensions..js (module.js:663:10)
at Module.load (module.js:565:32)
at tryModuleLoad (module.js:505:12)
at Function.Module._load (module.js:497:3)
[image: Screen Shot 2018-06-18 at 20.11.12.png]
On Sat, Jun 16, 2018 at 8:03 PM duculete notifications@github.com wrote:
Hello, yes try that and then you should see in logs when it discovers the AC. If any problems please reply here.
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/duculete/homebridge-gree-ac/issues/1#issuecomment-397825895, or mute the thread https://github.com/notifications/unsubscribe-auth/AmcrbO-HZgPMP3Rt8_1f9qHR96Yqw9X7ks5t9Tp-gaJpZM4UqbYK .
hello,
did you install the plugin?
Yes, of course. But there’s one error of not finding package.js
On Jun 18, 2018, at 21:00, duculete notifications@github.com wrote:
hello,
did you install the plugin?
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or mute the thread.
I tested on my setup and it running ok.
how did you install the plugin? please post here the accessory configuration for gree-ac
Hello again,
again sorry for bothering you... I have managed to run it after reinstalling home bridge. It works fine, except for it's minimum is 17 C and the AC has 16, but everything works fine. I just can't figure out how to write 3 ACs, it goes out with an error if I write the config.json like this:
{ "bridge": { "name": "Homebridge", "username": "AA:15:5D:B3:AE:32", "port": 51826, "pin": "234-25-123" }, "description": "My Home bridge", "accessories": [ { "accessory": "GreeAC", "host": "192.168.1.136", "name": "Office AC", "debug": "false", "updateInterval": 10000, "mqttUrl": "mqtt://127.0.0.1", "currentTempTopic": "home/bedroom/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/bedroom/temperature" }
] }
On Mon, Jun 18, 2018 at 9:10 PM duculete notifications@github.com wrote:
I tested on my setup and it running ok.
how did you install the plugin? please post here the accessory configuration for gree-ac
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/duculete/homebridge-gree-ac/issues/1#issuecomment-398145410, or mute the thread https://github.com/notifications/unsubscribe-auth/AmcrbA34R9IjYBtpFSTvemLmmhHSf8L5ks5t9-0ggaJpZM4UqbYK .
here's the mistake:
[6/19/2018, 8:38:09 PM] Homebridge is running on port 51826.
[6/19/2018, 8:38:09 PM] [Office AC] Connecting on Office with ip address 192.168.1.136[7000] debug=false: SUCCESS
[6/19/2018, 8:38:09 PM] [bedroom AC] Connecting on Office with ip address 192.168.1.136[7000] debug=false: SUCCESS
[6/19/2018, 8:38:09 PM] [LivingRoom AC] Connecting on Office with ip address 192.168.1.136[7000] debug=false: SUCCESS
and the config.json looks like this right now:
{
"bridge": {
"name": "Homebridge",
"username": "AA:15:5D:B3:AE:32",
"port": 51826,
"pin": "234-25-123"
},
"description": "My Home bridge",
"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"
}
]
}
On Tue, Jun 19, 2018 at 8:31 PM Roman rnglad@gmail.com wrote:
Hello again,
again sorry for bothering you... I have managed to run it after reinstalling home bridge. It works fine, except for it's minimum is 17 C and the AC has 16, but everything works fine. I just can't figure out how to write 3 ACs, it goes out with an error if I write the config.json like this:
{ "bridge": { "name": "Homebridge", "username": "AA:15:5D:B3:AE:32", "port": 51826, "pin": "234-25-123" }, "description": "My Home bridge", "accessories": [ { "accessory": "GreeAC", "host": "192.168.1.136", "name": "Office AC", "debug": "false", "updateInterval": 10000, "mqttUrl": "mqtt://127.0.0.1", "currentTempTopic": "home/bedroom/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/bedroom/temperature" }
] }
On Mon, Jun 18, 2018 at 9:10 PM duculete notifications@github.com wrote:
I tested on my setup and it running ok.
how did you install the plugin? please post here the accessory configuration for gree-ac
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/duculete/homebridge-gree-ac/issues/1#issuecomment-398145410, or mute the thread https://github.com/notifications/unsubscribe-auth/AmcrbA34R9IjYBtpFSTvemLmmhHSf8L5ks5t9-0ggaJpZM4UqbYK .
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.
I can test it.
Actually I have cooper&hunter (which is similar to gree). They are connected via EWPE Smart app for iphone. And all in the same network.
For now everything works, except, minimim temperature is 16C, but the pluging only handles 17C.
Anyways, it works even if I turn on with remote or turn off - it updates in the Home App.
Thank you in advance
Regrads, Roman
On Jun 19, 2018, at 21:09, duculete notifications@github.com wrote:
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.
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or mute the thread.
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.
I have tried it with a config like this: { "bridge": { "name": "Homebridge", "username": "AA:15:5D:B3:AE:32", "port": 51826, "pin": "234-25-125" }, "description": "My Home bridge", "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": "GreeAC2", "host": "192.168.1.54", "name": "BedRoom AC", "debug": "false", "updateInterval": 10000, "mqttUrl": "mqtt://127.0.0.1", "currentTempTopic": "home/bedroom/temperature" }, { "accessory": "GreeAC3", "host": "192.168.1.253", "name": "LivingRoom AC", "debug": "false", "updateInterval": 10000, "mqttUrl": "mqtt://127.0.0.1", "currentTempTopic": "home/LivingRoom/temperature" }
] }
Got This text:
Last login: Tue Jun 19 23:30:22 on ttys001
MediaMac:~ rnglad$ /Users/rnglad/.npm-global/lib/node_modules/homebridge/bin/homebridge ; exit;
[6/19/2018, 11:31:15 PM] Loaded config.json with 3 accessories and 0 platforms.
[6/19/2018, 11:31:16 PM] ---
[6/19/2018, 11:31:16 PM] Loaded plugin: homebridge-gree-ac
[6/19/2018, 11:31:16 PM] Registering accessory 'homebridge-gree-ac.GreeAC'
[6/19/2018, 11:31:16 PM] ---
[6/19/2018, 11:31:16 PM] Loading 3 accessories...
[6/19/2018, 11:31:16 PM] [Office AC] Initializing GreeAC accessory...
/Users/rnglad/.npm-global/lib/node_modules/homebridge/lib/api.js:64
throw new Error("The requested accessory '" + name + "' was not
registered by any plugin.");
^
Error: The requested accessory 'GreeAC2' was not registered by any plugin.
at API.accessory
(/Users/rnglad/.npm-global/lib/node_modules/homebridge/lib/api.js:64:13)
at Server._loadAccessories
(/Users/rnglad/.npm-global/lib/node_modules/homebridge/lib/server.js:284:42)
at Server.run
(/Users/rnglad/.npm-global/lib/node_modules/homebridge/lib/server.js:86:38)
at module.exports
(/Users/rnglad/.npm-global/lib/node_modules/homebridge/lib/cli.js:40:10)
at Object.<anonymous>
(/Users/rnglad/.npm-global/lib/node_modules/homebridge/bin/homebridge:17:22)
at Module._compile (internal/modules/cjs/loader.js:702:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:713:10)
at Module.load (internal/modules/cjs/loader.js:612:32)
at tryModuleLoad (internal/modules/cjs/loader.js:551:12)
at Function.Module._load (internal/modules/cjs/loader.js:543:3)
logout
Saving session...
...copying shared history...
...saving history...truncating history files...
...completed.
[Process completed]
Then tried so (all the acccessories name are the same):
{
"bridge": {
"name": "Homebridge",
"username": "AA:15:5D:B3:AE:32",
"port": 51826,
"pin": "234-25-125"
},
"description": "My Home bridge",
"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"
}
]
}
got this error:
[6/19/2018, 11:34:19 PM] Loaded config.json with 3 accessories and 0 platforms.
[6/19/2018, 11:34:19 PM] ---
[6/19/2018, 11:34:21 PM] Loaded plugin: homebridge-gree-ac
[6/19/2018, 11:34:21 PM] Registering accessory 'homebridge-gree-ac.GreeAC'
[6/19/2018, 11:34:21 PM] ---
[6/19/2018, 11:34:21 PM] Loading 3 accessories...
[6/19/2018, 11:34:21 PM] [Office AC] Initializing GreeAC accessory...
[6/19/2018, 11:34:21 PM] [BedRoom AC] Initializing GreeAC accessory...
[6/19/2018, 11:34:21 PM] [LivingRoom AC] Initializing GreeAC accessory...
Setup Payload:
X-HM://0023UVN1H9DE3
Scan this code with your HomeKit app on your iOS device to pair with Homebridge:
[6/19/2018, 11:34:21 PM] Homebridge is running on port 51826.
[GreeAC] New device registered: Office - 192.168.1.136
[GreeAC] New device registered: Office - 192.168.1.136
[GreeAC] New device registered: Office - 192.168.1.136
[6/19/2018, 11:34:21 PM] [Office AC] Connecting on Office with ip address 192.168.1.136[7000] debug=false: SUCCESS
[6/19/2018, 11:34:21 PM] [BedRoom AC] Connecting on Office with ip address 192.168.1.136[7000] debug=false: SUCCESS
[6/19/2018, 11:34:21 PM] [LivingRoom AC] Connecting on Office with ip address 192.168.1.136[7000] debug=false: SUCCESS
internal/crypto/cipher.js:175
const ret = this._handle.final();
^
Error: error:06065064:digital envelope routines:EVP_DecryptFinal_ex:bad decrypt
at Decipheriv.final (internal/crypto/cipher.js:175:28)
at Object.decrypt
(/Users/rnglad/node_modules/homebridge-gree-ac/app/encryptionService.js:21:56)
at Device._handleResponse
(/Users/rnglad/node_modules/homebridge-gree-ac/app/deviceFactory.js:149:40)
at Socket.Device.socket.on
(/Users/rnglad/node_modules/homebridge-gree-ac/app/deviceFactory.js:50:51)
at Socket.emit (events.js:187:15)
at UDP.onMessage [as onmessage] (dgram.js:673:8)
logout
Saving session...
...copying shared history...
...saving history...truncating history files...
...completed.
If I run it with one device - it runs OK
On Tue, Jun 19, 2018 at 10:40 PM duculete notifications@github.com wrote:
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.
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/duculete/homebridge-gree-ac/issues/1#issuecomment-398520430, or mute the thread https://github.com/notifications/unsubscribe-auth/AmcrbGqjc9La6tYSeUelznKsULpcvZ01ks5t-VOegaJpZM4UqbYK .
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" }
I tried it and once when I just received your message (though it seemed the same as I tried) It worked, but all the other times I run home bridge it gives me this error:
Last login: Wed Jun 20 00:29:16 on ttys000
/Users/rnglad/.npm-global/lib/node_modules/homebridge/bin/homebridge ; exit;
MediaMac:~ rnglad$ /Users/rnglad/.npm-global/lib/node_modules/homebridge/bin/homebridge ; exit;
[6/20/2018, 12:30:38 AM] Loaded config.json with 3 accessories and 0 platforms.
[6/20/2018, 12:30:38 AM] ---
[6/20/2018, 12:30:38 AM] Loaded plugin: homebridge-gree-ac
[6/20/2018, 12:30:38 AM] Registering accessory 'homebridge-gree-ac.GreeAC'
[6/20/2018, 12:30:38 AM] ---
[6/20/2018, 12:30:38 AM] Loading 3 accessories...
[6/20/2018, 12:30:38 AM] [Office AC] Initializing GreeAC accessory...
[6/20/2018, 12:30:38 AM] [BedRoom AC] Initializing GreeAC accessory...
[6/20/2018, 12:30:38 AM] [LivingRoom AC] Initializing GreeAC accessory...
Setup Payload:
X-HM://0023UVN1F9DE3
Scan this code with your HomeKit app on your iOS device to pair with Homebridge:
6/20/2018, 12:30:38 AM] Homebridge is running on port 51826.
[GreeAC] New device registered: Office - 192.168.1.136
[GreeAC] New device registered: Office - 192.168.1.136
[GreeAC] New device registered: Office - 192.168.1.136
[6/20/2018, 12:30:38 AM] [Office AC] Connecting on Office with ip address 192.168.1.136[7000] debug=false: SUCCESS
[6/20/2018, 12:30:38 AM] [BedRoom AC] Connecting on Office with ip address 192.168.1.136[7000] debug=false: SUCCESS
[6/20/2018, 12:30:38 AM] [LivingRoom AC] Connecting on Office with ip address 192.168.1.136[7000] debug=false: SUCCESS
internal/crypto/cipher.js:175
const ret = this._handle.final();
^
Error: error:06065064:digital envelope routines:EVP_DecryptFinal_ex:bad decrypt
at Decipheriv.final (internal/crypto/cipher.js:175:28)
at Object.decrypt
(/Users/rnglad/node_modules/homebridge-gree-ac/app/encryptionService.js:21:56)
at Device._handleResponse
(/Users/rnglad/node_modules/homebridge-gree-ac/app/deviceFactory.js:149:40)
at Socket.Device.socket.on
(/Users/rnglad/node_modules/homebridge-gree-ac/app/deviceFactory.js:50:51)
at Socket.emit (events.js:187:15)
at UDP.onMessage [as onmessage] (dgram.js:673:8)
logout
Saving session...
...copying shared history...
...saving history...truncating history files...
...completed.
[Process completed]
On Tue, Jun 19, 2018 at 11:41 PM duculete notifications@github.com wrote:
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" }
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/duculete/homebridge-gree-ac/issues/1#issuecomment-398538272, or mute the thread https://github.com/notifications/unsubscribe-auth/AmcrbNgJHN8zm0-oQfPhNRQwGD6JRisyks5t-WHzgaJpZM4UqbYK .
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,
Ok. I will try and tell you how it goes. Plus, I see, that you’ve published a new version of the plugin. Wish I could code like you!
On Jun 20, 2018, at 11:54, duculete notifications@github.com wrote: He . 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,
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or mute the thread.
Hello, again!
Every device works perfectly if it is one in the config. And 16C also works. But as soon as I add 2 or three in the list I get this error:
Homebridge is running on port 51826.
[GreeAC] New device registered: LivingRoom - 192.168.1.54
[GreeAC] New device registered: LivingRoom - 192.168.1.54
[6/20/2018, 8:23:40 PM] [LivingRoom AC] Connecting on LivingRoom with ip address 192.168.1.54[7000] debug=false: SUCCESS
[6/20/2018, 8:23:40 PM] [BedRoom AC] Connecting on LivingRoom with ip address 192.168.1.54[7000] debug=false: SUCCESS
internal/crypto/cipher.js:175
const ret = this._handle.final();
^
Error: error:06065064:digital envelope routines:EVP_DecryptFinal_ex:bad decrypt
at Decipheriv.final (internal/crypto/cipher.js:175:28)
at Object.decrypt
(/Users/rnglad/node_modules/homebridge-gree-ac/app/encryptionService.js:21:56)
at Device._handleResponse
(/Users/rnglad/node_modules/homebridge-gree-ac/app/deviceFactory.js:149:40)
at Socket.Device.socket.on
(/Users/rnglad/node_modules/homebridge-gree-ac/app/deviceFactory.js:50:51)
at Socket.emit (events.js:187:15)
at UDP.onMessage [as onmessage] (dgram.js:673:8)
logout
Saving session...
...copying shared history...
...saving history...truncating history files...
...completed.
[Process completed]
On Wed, Jun 20, 2018 at 12:07 PM Roman rnglad@gmail.com wrote:
Ok. I will try and tell you how it goes. Plus, I see, that you’ve published a new version of the plugin. Wish I could code like you!
On Jun 20, 2018, at 11:54, duculete notifications@github.com wrote: He .
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,
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/duculete/homebridge-gree-ac/issues/1#issuecomment-398675354, or mute the thread https://github.com/notifications/unsubscribe-auth/AmcrbKdJJ3YAvgBxN5qh1ozO5Uf2SSV_ks5t-g3XgaJpZM4UqbYK .
And one more little thing (just to mention)
If i turn off and on the AC with remote. It the description it says right, but the icon is wrong
On Jun 20, 2018, at 11:54, duculete notifications@github.com wrote:
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,
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or mute the thread.
Give it a few seconts, it will update the home app also.
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,
Hello, now it works, but!!! It adds 3 devices with 3 names, but 1 IP
[6/20/2018, 11:11:37 PM] Homebridge is running on port 51826.
[GreeAC] New device registered: Office - 192.168.1.136
[GreeAC] New device registered: Office - 192.168.1.136
[GreeAC] New device registered: Office - 192.168.1.136
[6/20/2018, 11:11:37 PM] [Office AC] Connecting on Office with ip address 192.168.1.136[7000] debug=false: SUCCESS
[6/20/2018, 11:11:37 PM] [LivingRoom AC] Connecting on Office with ip address 192.168.1.136[7000] debug=false: SUCCESS
[6/20/2018, 11:11:37 PM] [BedRoom AC] Connecting on Office with ip address 192.168.1.136[7000] debug=false: SUCCESS
[6/20/2018, 11:12:43 PM] [Office AC] Status updated on Office
[6/20/2018, 11:12:43 PM] [LivingRoom AC] Status updated on Office
[6/20/2018, 11:12:43 PM] [BedRoom AC] Status updated on Office
[6/20/2018, 11:12:43 PM] [Office AC] Status updated on Office
[6/20/2018, 11:12:43 PM] [LivingRoom AC] Status updated on Office
[6/20/2018, 11:12:43 PM] [BedRoom AC] Status updated on Office
[6/20/2018, 11:12:43 PM] [Office AC] Status updated on Office
[6/20/2018, 11:12:43 PM] [LivingRoom AC] Status updated on Office
[6/20/2018, 11:12:43 PM] [BedRoom AC] Status updated on Office
[6/20/2018, 11:12:43 PM] [Office AC] Status updated on Office
[6/20/2018, 11:12:43 PM] [LivingRoom AC] Status updated on Office
[6/20/2018, 11:12:43 PM] [BedRoom AC] Status updated on Office
[6/20/2018, 11:12:47 PM] [Office AC] Status updated on Office
[6/20/2018, 11:12:47 PM] [LivingRoom AC] Status updated on Office
[6/20/2018, 11:12:47 PM] [BedRoom AC] Status updated on Office
On Wed, Jun 20, 2018 at 9:40 PM duculete notifications@github.com wrote:
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,
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/duculete/homebridge-gree-ac/issues/1#issuecomment-398854316, or mute the thread https://github.com/notifications/unsubscribe-auth/AmcrbPb8BqKMB3-5MIhoedK6Hz98FZX8ks5t-pcMgaJpZM4UqbYK .
and my config is:
{ "bridge": { "name": "Homebridge", "username": "AA:25:5D:B3:AE:32", "port": 51826, "pin": "234-25-123" }, "description": "My Home bridge", "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": "LivingRoom AC", "debug": "false", "updateInterval": 10000, "mqttUrl": "mqtt://127.0.0.1", "currentTempTopic": "home/LivingRoom/temperature" }, { "accessory": "GreeAC", "host": "192.168.1.253", "name": "BedRoom AC", "debug": "false", "updateInterval": 10000, "mqttUrl": "mqtt://127.0.0.1", "currentTempTopic": "home/BedRoom/temperature" }
] }
On Wed, Jun 20, 2018 at 11:14 PM Roman rnglad@gmail.com wrote:
Hello, now it works, but!!! It adds 3 devices with 3 names, but 1 IP
[6/20/2018, 11:11:37 PM] Homebridge is running on port 51826.
[GreeAC] New device registered: Office - 192.168.1.136
[GreeAC] New device registered: Office - 192.168.1.136
[GreeAC] New device registered: Office - 192.168.1.136
[6/20/2018, 11:11:37 PM] [Office AC] Connecting on Office with ip address 192.168.1.136[7000] debug=false: SUCCESS
[6/20/2018, 11:11:37 PM] [LivingRoom AC] Connecting on Office with ip address 192.168.1.136[7000] debug=false: SUCCESS
[6/20/2018, 11:11:37 PM] [BedRoom AC] Connecting on Office with ip address 192.168.1.136[7000] debug=false: SUCCESS
[6/20/2018, 11:12:43 PM] [Office AC] Status updated on Office
[6/20/2018, 11:12:43 PM] [LivingRoom AC] Status updated on Office
[6/20/2018, 11:12:43 PM] [BedRoom AC] Status updated on Office
[6/20/2018, 11:12:43 PM] [Office AC] Status updated on Office
[6/20/2018, 11:12:43 PM] [LivingRoom AC] Status updated on Office
[6/20/2018, 11:12:43 PM] [BedRoom AC] Status updated on Office
[6/20/2018, 11:12:43 PM] [Office AC] Status updated on Office
[6/20/2018, 11:12:43 PM] [LivingRoom AC] Status updated on Office
[6/20/2018, 11:12:43 PM] [BedRoom AC] Status updated on Office
[6/20/2018, 11:12:43 PM] [Office AC] Status updated on Office
[6/20/2018, 11:12:43 PM] [LivingRoom AC] Status updated on Office
[6/20/2018, 11:12:43 PM] [BedRoom AC] Status updated on Office
[6/20/2018, 11:12:47 PM] [Office AC] Status updated on Office
[6/20/2018, 11:12:47 PM] [LivingRoom AC] Status updated on Office
[6/20/2018, 11:12:47 PM] [BedRoom AC] Status updated on Office
On Wed, Jun 20, 2018 at 9:40 PM duculete notifications@github.com wrote:
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,
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/duculete/homebridge-gree-ac/issues/1#issuecomment-398854316, or mute the thread https://github.com/notifications/unsubscribe-auth/AmcrbPb8BqKMB3-5MIhoedK6Hz98FZX8ks5t-pcMgaJpZM4UqbYK .
hmm, how about now?
Should i update the same file again?
On Thu, Jun 21, 2018 at 00:55 duculete notifications@github.com wrote:
hmm, how about now?
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/duculete/homebridge-gree-ac/issues/1#issuecomment-398910437, or mute the thread https://github.com/notifications/unsubscribe-auth/AmcrbLKGYyRXfWFU4Ws7Qytj2LyS_8Ptks5t-sTrgaJpZM4UqbYK .
I have updated the same file, that's the error it gave me:
Or enter this code with your HomeKit app on your iOS device to pair with Homebridge:
┌────────────┐
│ 234-25-123 │
└────────────┘
/Users/rnglad/node_modules/homebridge-gree-ac/app/deviceFactory.js:61
print("GREEAC:ip=%s", address);
^
ReferenceError: print is not defined
at Socket.socket.bind
(/Users/rnglad/node_modules/homebridge-gree-ac/app/deviceFactory.js:61:3)
at Object.onceWrapper (events.js:273:13)
at Socket.emit (events.js:182:13)
at startListening (dgram.js:171:10)
at _handle.lookup (dgram.js:289:7)
at process._tickCallback (internal/process/next_tick.js:63:19)
at Function.Module.runMain (internal/modules/cjs/loader.js:746:11)
at startup (internal/bootstrap/node.js:238:19)
at bootstrapNodeJSCore (internal/bootstrap/node.js:572:3)
logout
Saving session...
...copying shared history...
...saving history...truncating history files...
...completed.
[Process completed]
On Thu, Jun 21, 2018 at 12:59 AM Roman rnglad@gmail.com wrote:
Should i update the same file again?
On Thu, Jun 21, 2018 at 00:55 duculete notifications@github.com wrote:
hmm, how about now?
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/duculete/homebridge-gree-ac/issues/1#issuecomment-398910437, or mute the thread https://github.com/notifications/unsubscribe-auth/AmcrbLKGYyRXfWFU4Ws7Qytj2LyS_8Ptks5t-sTrgaJpZM4UqbYK .
ups...forgot about that one....can you replace deviceFactory.js and test?
I did it! It started fine, but it finds and operates only the first accessory in the list (in my case it is Office one), though it adds 3 devices to my HOME app, but the other two are always 'updating' and you cannot operate them:
Or enter this code with your HomeKit app on your iOS device to pair with Homebridge:
┌────────────┐
│ 234-25-123 │
└────────────┘
[6/21/2018, 1:10:40 AM] Homebridge is running on port 51826.
[GreeAC] New device registered: Office - 192.168.1.136
[6/21/2018, 1:10:40 AM] [Office AC] Connecting on Office with ip address 192.168.1.136[7000] debug=false: SUCCESS
[6/21/2018, 1:12:01 AM] [Office AC] Status updated on Office
[6/21/2018, 1:12:01 AM] [Office AC] Status updated on Office
[6/21/2018, 1:12:13 AM] [Office AC] Status updated on Office
On Thu, Jun 21, 2018 at 1:08 AM duculete notifications@github.com wrote:
ups...forgot about that one....can you replace deviceFactory.js and test?
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/duculete/homebridge-gree-ac/issues/1#issuecomment-398913520, or mute the thread https://github.com/notifications/unsubscribe-auth/AmcrbByCbun8K2YRNRy4UemaZcxRJ8cbks5t-sf1gaJpZM4UqbYK .
Like so!
On Jun 21, 2018, at 01:08, duculete notifications@github.com wrote:
ups...forgot about that one....can you replace deviceFactory.js and test?
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or mute the thread.
Hello,
I've seen you've updated the deviceFactory.js, so I updated it too and here's what I got:
Or enter this code with your HomeKit app on your iOS device to pair with Homebridge:
┌────────────┐
│ 234-25-123 │
└────────────┘
[GreeAC]: connecting to 192.168.1.136
[6/21/2018, 6:12:58 PM] Homebridge is running on port 51826.
[GreeAC] New device added: Office - 192.168.1.136
[GreeAC] device is bound: Office - St2Vw5Yz8Bc1Ef4H
[6/21/2018, 6:12:58 PM] [Office AC] Connecting on Office with ip address 192.168.1.136[7000] debug=false: SUCCESS
[6/21/2018, 6:14:06 PM] [Office AC] Status updated on Office
[6/21/2018, 6:14:06 PM] [Office AC] Status updated on Office
[6/21/2018, 6:14:09 PM] [Office AC] Status updated on Office
[6/21/2018, 6:14:10 PM] [Office AC] Status updated on Office
One device works fine, two other are constantly 'updating'
On Thu, Jun 21, 2018 at 1:15 AM Roman rnglad@gmail.com wrote:
[image: image1.jpeg]
Like so!
On Jun 21, 2018, at 01:08, duculete notifications@github.com wrote:
ups...forgot about that one....can you replace deviceFactory.js and test?
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/duculete/homebridge-gree-ac/issues/1#issuecomment-398913520, or mute the thread https://github.com/notifications/unsubscribe-auth/AmcrbByCbun8K2YRNRy4UemaZcxRJ8cbks5t-sf1gaJpZM4UqbYK .
Hello again,
Sorry for bothering you, it there nothing can be done?
Regards, Roman
On Jun 21, 2018, at 01:08, duculete notifications@github.com wrote:
ups...forgot about that one....can you replace deviceFactory.js and test?
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or mute the thread.
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.
Thanks a lot.
It just seems to me, that now everything works correctly, it just connects to one device and doesn’t go to initiate the next.
Sorry for bothering you again.
Have a nice day.
On Jun 26, 2018, at 07:42, duculete notifications@github.com wrote:
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.
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or mute the thread.
can you try? replace index.js and deviceFactory.js and the restart homebridge
Hello,
Sorry, I’m away from my computer for a week. I will try at 3rd of july and write you asap
From: duculete notifications@github.com Sent: Thursday, June 28, 2018 5:37:26 PM To: duculete/homebridge-gree-ac Cc: rnglad; Author Subject: Re: [duculete/homebridge-gree-ac] Please need more details (#1)
can you try? replace index.js and deviceFactory.js and the restart homebridge
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://github.com/duculete/homebridge-gree-ac/issues/1#issuecomment-401078043, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AmcrbHpu4Y0PnCo75yvKl3DrVNO2jONoks5uBPg2gaJpZM4UqbYK.
Hello Again,
all the devices are added, but they all show as unavailable and then this happens
Or enter this code with your HomeKit app on your iOS device to pair with Homebridge:
┌────────────┐
│ 234-25-123 │
└────────────┘
[GreeAC]: connecting to 192.168.1.136 [using source port 8136]
[GreeAC]: connecting to 192.168.1.54 [using source port 8054]
[GreeAC]: connecting to 192.168.1.253 [using source port 8253]
[7/4/2018, 5:35:55 PM] Homebridge is running on port 51826.
[GreeAC] New device added: LivingRoom - 192.168.1.54
[GreeAC] New device added: Bedroom - 192.168.1.253
[GreeAC] New device added: Office - 192.168.1.136
[GreeAC] device is bound: LivingRoom - Rs9Uv2Xy5Ab8De1h
[7/4/2018, 5:35:55 PM] [LivingRoom AC] Connected to LivingRoom with IP address 192.168.1.54
[GreeAC] device is bound: Bedroom - d4Fg7Ij0Lm3Op6Rs
[7/4/2018, 5:35:55 PM] [BedRoom AC] Connected to Bedroom with IP address 192.168.1.253
[GreeAC] device is bound: Office - St2Vw5Yz8Bc1Ef4H
[7/4/2018, 5:35:55 PM] [Office AC] Connected to Office with IP address 192.168.1.136
/Users/rnglad/node_modules/homebridge-gree-ac/app/deviceFactory.js:228
_sendRequest (message, address = that.device.address, port =
that.device.port) {
^
ReferenceError: that is not defined
at Device._sendRequest
(/Users/rnglad/node_modules/homebridge-gree-ac/app/deviceFactory.js:228:38)
at Device._sendCommand
(/Users/rnglad/node_modules/homebridge-gree-ac/app/deviceFactory.js:216:14)
at Device.setTemp
(/Users/rnglad/node_modules/homebridge-gree-ac/app/deviceFactory.js:261:14)
at GreeAC.identify
(/Users/rnglad/node_modules/homebridge-gree-ac/index.js:360:24)
at Accessory.<anonymous>
(/Users/rnglad/.npm-global/lib/node_modules/homebridge/lib/server.js:430:79)
at Accessory.emit (events.js:182:13)
at Accessory._identificationRequest
(/Users/rnglad/.npm-global/lib/node_modules/homebridge/node_modules/hap-nodejs/lib/Accessory.js:128:10)
at Accessory.<anonymous>
(/Users/rnglad/.npm-global/lib/node_modules/homebridge/node_modules/hap-nodejs/lib/Accessory.js:80:14)
at Characteristic.Identify.emit (events.js:182:13)
at Characteristic.Identify.Characteristic.setValue
(/Users/rnglad/.npm-global/lib/node_modules/homebridge/node_modules/hap-nodejs/lib/Characteristic.js:320:10)
logout
Saving session...
...copying shared history...
...saving history...truncating history files...
...completed.
[Process completed]
On Thu, Jun 28, 2018 at 7:52 PM R Roman rnglad@gmail.com wrote:
Hello,
Sorry, I’m away from my computer for a week. I will try at 3rd of july and write you asap
From: duculete notifications@github.com Sent: Thursday, June 28, 2018 5:37:26 PM To: duculete/homebridge-gree-ac Cc: rnglad; Author Subject: Re: [duculete/homebridge-gree-ac] Please need more details (#1)
can you try? replace index.js and deviceFactory.js and the restart homebridge
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/duculete/homebridge-gree-ac/issues/1#issuecomment-401078043, or mute the thread https://github.com/notifications/unsubscribe-auth/AmcrbHpu4Y0PnCo75yvKl3DrVNO2jONoks5uBPg2gaJpZM4UqbYK .
then I turned on the ac and ran home bridge again
it showed me correct info from the ac that was turned on
and showed 2 other as turned off - I tried to turn them on from home app - this happened:
Or enter this code with your HomeKit app on your iOS device to pair with Homebridge:
┌────────────┐
│ 234-25-123 │
└────────────┘
[GreeAC]: connecting to 192.168.1.136 [using source port 8136]
[GreeAC]: connecting to 192.168.1.54 [using source port 8054]
[GreeAC]: connecting to 192.168.1.253 [using source port 8253]
[7/4/2018, 5:44:02 PM] Homebridge is running on port 51826.
[GreeAC] New device added: Office - 192.168.1.136
[GreeAC] device is bound: Office - St2Vw5Yz8Bc1Ef4H
[7/4/2018, 5:44:02 PM] [Office AC] Connected to Office with IP address 192.168.1.136
[GreeAC] New device added: Bedroom - 192.168.1.253
[GreeAC] New device added: LivingRoom - 192.168.1.54
[GreeAC] device is bound: Bedroom - d4Fg7Ij0Lm3Op6Rs
[7/4/2018, 5:44:02 PM] [BedRoom AC] Connected to Bedroom with IP address 192.168.1.253
[GreeAC] device is bound: LivingRoom - Rs9Uv2Xy5Ab8De1h
[7/4/2018, 5:44:02 PM] [LivingRoom AC] Connected to LivingRoom with IP address 192.168.1.54
/Users/rnglad/node_modules/homebridge-gree-ac/app/deviceFactory.js:228
_sendRequest (message, address = that.device.address, port =
that.device.port) {
^
ReferenceError: that is not defined
at Device._sendRequest
(/Users/rnglad/node_modules/homebridge-gree-ac/app/deviceFactory.js:228:38)
at Device._sendCommand
(/Users/rnglad/node_modules/homebridge-gree-ac/app/deviceFactory.js:216:14)
at Device.setPower
(/Users/rnglad/node_modules/homebridge-gree-ac/app/deviceFactory.js:248:14)
at GreeAC.setTargetTemperature
(/Users/rnglad/node_modules/homebridge-gree-ac/index.js:333:32)
at Characteristic.TargetTemperature.emit (events.js:182:13)
at Characteristic.TargetTemperature.Characteristic.setValue
(/Users/rnglad/.npm-global/lib/node_modules/homebridge/node_modules/hap-nodejs/lib/Characteristic.js:320:10)
at Bridge.<anonymous>
(/Users/rnglad/.npm-global/lib/node_modules/homebridge/node_modules/hap-nodejs/lib/Accessory.js:871:22)
at Array.forEach (<anonymous>)
at Bridge.Accessory._handleSetCharacteristics
(/Users/rnglad/.npm-global/lib/node_modules/homebridge/node_modules/hap-nodejs/lib/Accessory.js:811:8)
at HAPServer.emit (events.js:182:13)
logout
Saving session...
...copying shared history...
...saving history...truncating history files...
...completed.
[Process completed]
On Wed, Jul 4, 2018 at 5:43 PM Roman rnglad@gmail.com wrote:
Hello Again,
all the devices are added, but they all show as unavailable and then this happens
Or enter this code with your HomeKit app on your iOS device to pair with Homebridge:
┌────────────┐ │ 234-25-123 │ └────────────┘
[GreeAC]: connecting to 192.168.1.136 [using source port 8136]
[GreeAC]: connecting to 192.168.1.54 [using source port 8054]
[GreeAC]: connecting to 192.168.1.253 [using source port 8253]
[7/4/2018, 5:35:55 PM] Homebridge is running on port 51826.
[GreeAC] New device added: LivingRoom - 192.168.1.54
[GreeAC] New device added: Bedroom - 192.168.1.253
[GreeAC] New device added: Office - 192.168.1.136
[GreeAC] device is bound: LivingRoom - Rs9Uv2Xy5Ab8De1h
[7/4/2018, 5:35:55 PM] [LivingRoom AC] Connected to LivingRoom with IP address 192.168.1.54
[GreeAC] device is bound: Bedroom - d4Fg7Ij0Lm3Op6Rs
[7/4/2018, 5:35:55 PM] [BedRoom AC] Connected to Bedroom with IP address 192.168.1.253
[GreeAC] device is bound: Office - St2Vw5Yz8Bc1Ef4H
[7/4/2018, 5:35:55 PM] [Office AC] Connected to Office with IP address 192.168.1.136
/Users/rnglad/node_modules/homebridge-gree-ac/app/deviceFactory.js:228
_sendRequest (message, address = that.device.address, port =
that.device.port) {
^
ReferenceError: that is not defined
at Device._sendRequest
(/Users/rnglad/node_modules/homebridge-gree-ac/app/deviceFactory.js:228:38)
at Device._sendCommand
(/Users/rnglad/node_modules/homebridge-gree-ac/app/deviceFactory.js:216:14)
at Device.setTemp
(/Users/rnglad/node_modules/homebridge-gree-ac/app/deviceFactory.js:261:14)
at GreeAC.identify
(/Users/rnglad/node_modules/homebridge-gree-ac/index.js:360:24)
at Accessory.<anonymous>
(/Users/rnglad/.npm-global/lib/node_modules/homebridge/lib/server.js:430:79)
at Accessory.emit (events.js:182:13) at Accessory._identificationRequest
(/Users/rnglad/.npm-global/lib/node_modules/homebridge/node_modules/hap-nodejs/lib/Accessory.js:128:10)
at Accessory.<anonymous>
(/Users/rnglad/.npm-global/lib/node_modules/homebridge/node_modules/hap-nodejs/lib/Accessory.js:80:14)
at Characteristic.Identify.emit (events.js:182:13) at Characteristic.Identify.Characteristic.setValue
(/Users/rnglad/.npm-global/lib/node_modules/homebridge/node_modules/hap-nodejs/lib/Characteristic.js:320:10)
logout
Saving session...
...copying shared history...
...saving history...truncating history files...
...completed.
[Process completed]
On Thu, Jun 28, 2018 at 7:52 PM R Roman rnglad@gmail.com wrote:
Hello,
Sorry, I’m away from my computer for a week. I will try at 3rd of july and write you asap
From: duculete notifications@github.com Sent: Thursday, June 28, 2018 5:37:26 PM To: duculete/homebridge-gree-ac Cc: rnglad; Author Subject: Re: [duculete/homebridge-gree-ac] Please need more details (#1)
can you try? replace index.js and deviceFactory.js and the restart homebridge
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/duculete/homebridge-gree-ac/issues/1#issuecomment-401078043, or mute the thread https://github.com/notifications/unsubscribe-auth/AmcrbHpu4Y0PnCo75yvKl3DrVNO2jONoks5uBPg2gaJpZM4UqbYK .
Whenever i try to change anything from home app it terminates:
Or enter this code with your HomeKit app on your iOS device to pair with Homebridge:
┌────────────┐
│ 234-25-123 │
└────────────┘
[GreeAC]: connecting to 192.168.1.136 [using source port 8136]
[GreeAC]: connecting to 192.168.1.54 [using source port 8054]
[GreeAC]: connecting to 192.168.1.253 [using source port 8253]
[7/4/2018, 5:47:03 PM] Homebridge is running on port 51826.
[GreeAC] New device added: Office - 192.168.1.136
[GreeAC] New device added: LivingRoom - 192.168.1.54
[GreeAC] New device added: Bedroom - 192.168.1.253
[GreeAC] device is bound: Office - St2Vw5Yz8Bc1Ef4H
[7/4/2018, 5:47:03 PM] [Office AC] Connected to Office with IP address 192.168.1.136
[GreeAC] device is bound: LivingRoom - Rs9Uv2Xy5Ab8De1h
[7/4/2018, 5:47:03 PM] [LivingRoom AC] Connected to LivingRoom with IP address 192.168.1.54
[GreeAC] device is bound: Bedroom - d4Fg7Ij0Lm3Op6Rs
[7/4/2018, 5:47:03 PM] [BedRoom AC] Connected to Bedroom with IP address 192.168.1.253
/Users/rnglad/node_modules/homebridge-gree-ac/app/deviceFactory.js:228
_sendRequest (message, address = that.device.address, port =
that.device.port) {
^
ReferenceError: that is not defined
at Device._sendRequest
(/Users/rnglad/node_modules/homebridge-gree-ac/app/deviceFactory.js:228:38)
at Device._sendCommand
(/Users/rnglad/node_modules/homebridge-gree-ac/app/deviceFactory.js:216:14)
at Device.setPower
(/Users/rnglad/node_modules/homebridge-gree-ac/app/deviceFactory.js:248:14)
at GreeAC.setTargetTemperature
(/Users/rnglad/node_modules/homebridge-gree-ac/index.js:333:32)
at Characteristic.TargetTemperature.emit (events.js:182:13)
at Characteristic.TargetTemperature.Characteristic.setValue
(/Users/rnglad/.npm-global/lib/node_modules/homebridge/node_modules/hap-nodejs/lib/Characteristic.js:320:10)
at Bridge.<anonymous>
(/Users/rnglad/.npm-global/lib/node_modules/homebridge/node_modules/hap-nodejs/lib/Accessory.js:871:22)
at Array.forEach (<anonymous>)
at Bridge.Accessory._handleSetCharacteristics
(/Users/rnglad/.npm-global/lib/node_modules/homebridge/node_modules/hap-nodejs/lib/Accessory.js:811:8)
at HAPServer.emit (events.js:182:13)
logout
Saving session...
...copying shared history...
...saving history...truncating history files...
...completed.
[Process completed]
On Wed, Jul 4, 2018 at 5:46 PM Roman rnglad@gmail.com wrote:
then I turned on the ac and ran home bridge again
it showed me correct info from the ac that was turned on
and showed 2 other as turned off - I tried to turn them on from home app - this happened:
Or enter this code with your HomeKit app on your iOS device to pair with Homebridge:
┌────────────┐ │ 234-25-123 │ └────────────┘
[GreeAC]: connecting to 192.168.1.136 [using source port 8136]
[GreeAC]: connecting to 192.168.1.54 [using source port 8054]
[GreeAC]: connecting to 192.168.1.253 [using source port 8253]
[7/4/2018, 5:44:02 PM] Homebridge is running on port 51826.
[GreeAC] New device added: Office - 192.168.1.136
[GreeAC] device is bound: Office - St2Vw5Yz8Bc1Ef4H
[7/4/2018, 5:44:02 PM] [Office AC] Connected to Office with IP address 192.168.1.136
[GreeAC] New device added: Bedroom - 192.168.1.253
[GreeAC] New device added: LivingRoom - 192.168.1.54
[GreeAC] device is bound: Bedroom - d4Fg7Ij0Lm3Op6Rs
[7/4/2018, 5:44:02 PM] [BedRoom AC] Connected to Bedroom with IP address 192.168.1.253
[GreeAC] device is bound: LivingRoom - Rs9Uv2Xy5Ab8De1h
[7/4/2018, 5:44:02 PM] [LivingRoom AC] Connected to LivingRoom with IP address 192.168.1.54
/Users/rnglad/node_modules/homebridge-gree-ac/app/deviceFactory.js:228
_sendRequest (message, address = that.device.address, port =
that.device.port) {
^
ReferenceError: that is not defined
at Device._sendRequest
(/Users/rnglad/node_modules/homebridge-gree-ac/app/deviceFactory.js:228:38)
at Device._sendCommand
(/Users/rnglad/node_modules/homebridge-gree-ac/app/deviceFactory.js:216:14)
at Device.setPower
(/Users/rnglad/node_modules/homebridge-gree-ac/app/deviceFactory.js:248:14)
at GreeAC.setTargetTemperature
(/Users/rnglad/node_modules/homebridge-gree-ac/index.js:333:32)
at Characteristic.TargetTemperature.emit (events.js:182:13) at Characteristic.TargetTemperature.Characteristic.setValue
(/Users/rnglad/.npm-global/lib/node_modules/homebridge/node_modules/hap-nodejs/lib/Characteristic.js:320:10)
at Bridge.<anonymous>
(/Users/rnglad/.npm-global/lib/node_modules/homebridge/node_modules/hap-nodejs/lib/Accessory.js:871:22)
at Array.forEach (<anonymous>) at Bridge.Accessory._handleSetCharacteristics
(/Users/rnglad/.npm-global/lib/node_modules/homebridge/node_modules/hap-nodejs/lib/Accessory.js:811:8)
at HAPServer.emit (events.js:182:13)
logout
Saving session...
...copying shared history...
...saving history...truncating history files...
...completed.
[Process completed]
On Wed, Jul 4, 2018 at 5:43 PM Roman rnglad@gmail.com wrote:
Hello Again,
all the devices are added, but they all show as unavailable and then this happens
Or enter this code with your HomeKit app on your iOS device to pair with Homebridge:
┌────────────┐ │ 234-25-123 │ └────────────┘
[GreeAC]: connecting to 192.168.1.136 [using source port 8136]
[GreeAC]: connecting to 192.168.1.54 [using source port 8054]
[GreeAC]: connecting to 192.168.1.253 [using source port 8253]
[7/4/2018, 5:35:55 PM] Homebridge is running on port 51826.
[GreeAC] New device added: LivingRoom - 192.168.1.54
[GreeAC] New device added: Bedroom - 192.168.1.253
[GreeAC] New device added: Office - 192.168.1.136
[GreeAC] device is bound: LivingRoom - Rs9Uv2Xy5Ab8De1h
[7/4/2018, 5:35:55 PM] [LivingRoom AC] Connected to LivingRoom with IP address 192.168.1.54
[GreeAC] device is bound: Bedroom - d4Fg7Ij0Lm3Op6Rs
[7/4/2018, 5:35:55 PM] [BedRoom AC] Connected to Bedroom with IP address 192.168.1.253
[GreeAC] device is bound: Office - St2Vw5Yz8Bc1Ef4H
[7/4/2018, 5:35:55 PM] [Office AC] Connected to Office with IP address 192.168.1.136
/Users/rnglad/node_modules/homebridge-gree-ac/app/deviceFactory.js:228
_sendRequest (message, address = that.device.address, port =
that.device.port) {
^
ReferenceError: that is not defined
at Device._sendRequest
(/Users/rnglad/node_modules/homebridge-gree-ac/app/deviceFactory.js:228:38)
at Device._sendCommand
(/Users/rnglad/node_modules/homebridge-gree-ac/app/deviceFactory.js:216:14)
at Device.setTemp
(/Users/rnglad/node_modules/homebridge-gree-ac/app/deviceFactory.js:261:14)
at GreeAC.identify
(/Users/rnglad/node_modules/homebridge-gree-ac/index.js:360:24)
at Accessory.<anonymous>
(/Users/rnglad/.npm-global/lib/node_modules/homebridge/lib/server.js:430:79)
at Accessory.emit (events.js:182:13) at Accessory._identificationRequest
(/Users/rnglad/.npm-global/lib/node_modules/homebridge/node_modules/hap-nodejs/lib/Accessory.js:128:10)
at Accessory.<anonymous>
(/Users/rnglad/.npm-global/lib/node_modules/homebridge/node_modules/hap-nodejs/lib/Accessory.js:80:14)
at Characteristic.Identify.emit (events.js:182:13) at Characteristic.Identify.Characteristic.setValue
(/Users/rnglad/.npm-global/lib/node_modules/homebridge/node_modules/hap-nodejs/lib/Characteristic.js:320:10)
logout
Saving session...
...copying shared history...
...saving history...truncating history files...
...completed.
[Process completed]
On Thu, Jun 28, 2018 at 7:52 PM R Roman rnglad@gmail.com wrote:
Hello,
Sorry, I’m away from my computer for a week. I will try at 3rd of july and write you asap
From: duculete notifications@github.com Sent: Thursday, June 28, 2018 5:37:26 PM To: duculete/homebridge-gree-ac Cc: rnglad; Author Subject: Re: [duculete/homebridge-gree-ac] Please need more details (#1)
can you try? replace index.js and deviceFactory.js and the restart homebridge
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/duculete/homebridge-gree-ac/issues/1#issuecomment-401078043, or mute the thread https://github.com/notifications/unsubscribe-auth/AmcrbHpu4Y0PnCo75yvKl3DrVNO2jONoks5uBPg2gaJpZM4UqbYK .
tried to reinstall the plugin, the error remains, but there are some strange thing happening
Or enter this code with your HomeKit app on your iOS device to pair with Homebridge:
┌────────────┐
│ 134-25-123 │
└────────────┘
[GreeAC]: connecting to 192.168.1.136 [using source port 8136]
[GreeAC]: connecting to 192.168.1.54 [using source port 8054]
[GreeAC]: connecting to 192.168.1.253 [using source port 8253]
[7/9/2018, 7:43:41 AM] Homebridge is running on port 51826.
[GreeAC] New device added: Bedroom - 192.168.1.253
[GreeAC] New device added: LivingRoom - 192.168.1.54
[GreeAC] New device added: Bedroom - 192.168.1.253
[GreeAC] device is bound: LivingRoom - Rs9Uv2Xy5Ab8De1h
[7/9/2018, 7:43:41 AM] [LivingRoom AC] Connected to LivingRoom with IP address 192.168.1.54
[GreeAC] device is bound: Bedroom - d4Fg7Ij0Lm3Op6Rs
[7/9/2018, 7:43:41 AM] [BedRoom AC] Connected to Bedroom with IP address 192.168.1.253
you see, not all the acs are connected, previous time there were 3 of them, then 1, now only two
On Wed, Jul 4, 2018 at 5:49 PM Roman rnglad@gmail.com wrote:
Whenever i try to change anything from home app it terminates:
Or enter this code with your HomeKit app on your iOS device to pair with Homebridge:
┌────────────┐ │ 234-25-123 │ └────────────┘
[GreeAC]: connecting to 192.168.1.136 [using source port 8136]
[GreeAC]: connecting to 192.168.1.54 [using source port 8054]
[GreeAC]: connecting to 192.168.1.253 [using source port 8253]
[7/4/2018, 5:47:03 PM] Homebridge is running on port 51826.
[GreeAC] New device added: Office - 192.168.1.136
[GreeAC] New device added: LivingRoom - 192.168.1.54
[GreeAC] New device added: Bedroom - 192.168.1.253
[GreeAC] device is bound: Office - St2Vw5Yz8Bc1Ef4H
[7/4/2018, 5:47:03 PM] [Office AC] Connected to Office with IP address 192.168.1.136
[GreeAC] device is bound: LivingRoom - Rs9Uv2Xy5Ab8De1h
[7/4/2018, 5:47:03 PM] [LivingRoom AC] Connected to LivingRoom with IP address 192.168.1.54
[GreeAC] device is bound: Bedroom - d4Fg7Ij0Lm3Op6Rs
[7/4/2018, 5:47:03 PM] [BedRoom AC] Connected to Bedroom with IP address 192.168.1.253
/Users/rnglad/node_modules/homebridge-gree-ac/app/deviceFactory.js:228
_sendRequest (message, address = that.device.address, port =
that.device.port) {
^
ReferenceError: that is not defined
at Device._sendRequest
(/Users/rnglad/node_modules/homebridge-gree-ac/app/deviceFactory.js:228:38)
at Device._sendCommand
(/Users/rnglad/node_modules/homebridge-gree-ac/app/deviceFactory.js:216:14)
at Device.setPower
(/Users/rnglad/node_modules/homebridge-gree-ac/app/deviceFactory.js:248:14)
at GreeAC.setTargetTemperature
(/Users/rnglad/node_modules/homebridge-gree-ac/index.js:333:32)
at Characteristic.TargetTemperature.emit (events.js:182:13) at Characteristic.TargetTemperature.Characteristic.setValue
(/Users/rnglad/.npm-global/lib/node_modules/homebridge/node_modules/hap-nodejs/lib/Characteristic.js:320:10)
at Bridge.<anonymous>
(/Users/rnglad/.npm-global/lib/node_modules/homebridge/node_modules/hap-nodejs/lib/Accessory.js:871:22)
at Array.forEach (<anonymous>) at Bridge.Accessory._handleSetCharacteristics
(/Users/rnglad/.npm-global/lib/node_modules/homebridge/node_modules/hap-nodejs/lib/Accessory.js:811:8)
at HAPServer.emit (events.js:182:13)
logout
Saving session...
...copying shared history...
...saving history...truncating history files...
...completed.
[Process completed]
On Wed, Jul 4, 2018 at 5:46 PM Roman rnglad@gmail.com wrote:
then I turned on the ac and ran home bridge again
it showed me correct info from the ac that was turned on
and showed 2 other as turned off - I tried to turn them on from home app
- this happened:
Or enter this code with your HomeKit app on your iOS device to pair with Homebridge:
┌────────────┐ │ 234-25-123 │ └────────────┘
[GreeAC]: connecting to 192.168.1.136 [using source port 8136]
[GreeAC]: connecting to 192.168.1.54 [using source port 8054]
[GreeAC]: connecting to 192.168.1.253 [using source port 8253]
[7/4/2018, 5:44:02 PM] Homebridge is running on port 51826.
[GreeAC] New device added: Office - 192.168.1.136
[GreeAC] device is bound: Office - St2Vw5Yz8Bc1Ef4H
[7/4/2018, 5:44:02 PM] [Office AC] Connected to Office with IP address 192.168.1.136
[GreeAC] New device added: Bedroom - 192.168.1.253
[GreeAC] New device added: LivingRoom - 192.168.1.54
[GreeAC] device is bound: Bedroom - d4Fg7Ij0Lm3Op6Rs
[7/4/2018, 5:44:02 PM] [BedRoom AC] Connected to Bedroom with IP address 192.168.1.253
[GreeAC] device is bound: LivingRoom - Rs9Uv2Xy5Ab8De1h
[7/4/2018, 5:44:02 PM] [LivingRoom AC] Connected to LivingRoom with IP address 192.168.1.54
/Users/rnglad/node_modules/homebridge-gree-ac/app/deviceFactory.js:228
_sendRequest (message, address = that.device.address, port =
that.device.port) {
^
ReferenceError: that is not defined
at Device._sendRequest
(/Users/rnglad/node_modules/homebridge-gree-ac/app/deviceFactory.js:228:38)
at Device._sendCommand
(/Users/rnglad/node_modules/homebridge-gree-ac/app/deviceFactory.js:216:14)
at Device.setPower
(/Users/rnglad/node_modules/homebridge-gree-ac/app/deviceFactory.js:248:14)
at GreeAC.setTargetTemperature
(/Users/rnglad/node_modules/homebridge-gree-ac/index.js:333:32)
at Characteristic.TargetTemperature.emit (events.js:182:13) at Characteristic.TargetTemperature.Characteristic.setValue
(/Users/rnglad/.npm-global/lib/node_modules/homebridge/node_modules/hap-nodejs/lib/Characteristic.js:320:10)
at Bridge.<anonymous>
(/Users/rnglad/.npm-global/lib/node_modules/homebridge/node_modules/hap-nodejs/lib/Accessory.js:871:22)
at Array.forEach (<anonymous>) at Bridge.Accessory._handleSetCharacteristics
(/Users/rnglad/.npm-global/lib/node_modules/homebridge/node_modules/hap-nodejs/lib/Accessory.js:811:8)
at HAPServer.emit (events.js:182:13)
logout
Saving session...
...copying shared history...
...saving history...truncating history files...
...completed.
[Process completed]
On Wed, Jul 4, 2018 at 5:43 PM Roman rnglad@gmail.com wrote:
Hello Again,
all the devices are added, but they all show as unavailable and then this happens
Or enter this code with your HomeKit app on your iOS device to pair with Homebridge:
┌────────────┐ │ 234-25-123 │ └────────────┘
[GreeAC]: connecting to 192.168.1.136 [using source port 8136]
[GreeAC]: connecting to 192.168.1.54 [using source port 8054]
[GreeAC]: connecting to 192.168.1.253 [using source port 8253]
[7/4/2018, 5:35:55 PM] Homebridge is running on port 51826.
[GreeAC] New device added: LivingRoom - 192.168.1.54
[GreeAC] New device added: Bedroom - 192.168.1.253
[GreeAC] New device added: Office - 192.168.1.136
[GreeAC] device is bound: LivingRoom - Rs9Uv2Xy5Ab8De1h
[7/4/2018, 5:35:55 PM] [LivingRoom AC] Connected to LivingRoom with IP address 192.168.1.54
[GreeAC] device is bound: Bedroom - d4Fg7Ij0Lm3Op6Rs
[7/4/2018, 5:35:55 PM] [BedRoom AC] Connected to Bedroom with IP address 192.168.1.253
[GreeAC] device is bound: Office - St2Vw5Yz8Bc1Ef4H
[7/4/2018, 5:35:55 PM] [Office AC] Connected to Office with IP address 192.168.1.136
/Users/rnglad/node_modules/homebridge-gree-ac/app/deviceFactory.js:228
_sendRequest (message, address = that.device.address, port =
that.device.port) {
^
ReferenceError: that is not defined
at Device._sendRequest
(/Users/rnglad/node_modules/homebridge-gree-ac/app/deviceFactory.js:228:38)
at Device._sendCommand
(/Users/rnglad/node_modules/homebridge-gree-ac/app/deviceFactory.js:216:14)
at Device.setTemp
(/Users/rnglad/node_modules/homebridge-gree-ac/app/deviceFactory.js:261:14)
at GreeAC.identify
(/Users/rnglad/node_modules/homebridge-gree-ac/index.js:360:24)
at Accessory.<anonymous>
(/Users/rnglad/.npm-global/lib/node_modules/homebridge/lib/server.js:430:79)
at Accessory.emit (events.js:182:13) at Accessory._identificationRequest
(/Users/rnglad/.npm-global/lib/node_modules/homebridge/node_modules/hap-nodejs/lib/Accessory.js:128:10)
at Accessory.<anonymous>
(/Users/rnglad/.npm-global/lib/node_modules/homebridge/node_modules/hap-nodejs/lib/Accessory.js:80:14)
at Characteristic.Identify.emit (events.js:182:13) at Characteristic.Identify.Characteristic.setValue
(/Users/rnglad/.npm-global/lib/node_modules/homebridge/node_modules/hap-nodejs/lib/Characteristic.js:320:10)
logout
Saving session...
...copying shared history...
...saving history...truncating history files...
...completed.
[Process completed]
On Thu, Jun 28, 2018 at 7:52 PM R Roman rnglad@gmail.com wrote:
Hello,
Sorry, I’m away from my computer for a week. I will try at 3rd of july and write you asap
From: duculete notifications@github.com Sent: Thursday, June 28, 2018 5:37:26 PM To: duculete/homebridge-gree-ac Cc: rnglad; Author Subject: Re: [duculete/homebridge-gree-ac] Please need more details (#1)
can you try? replace index.js and deviceFactory.js and the restart homebridge
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/duculete/homebridge-gree-ac/issues/1#issuecomment-401078043, or mute the thread https://github.com/notifications/unsubscribe-auth/AmcrbHpu4Y0PnCo75yvKl3DrVNO2jONoks5uBPg2gaJpZM4UqbYK .
restarted it after writing you:
Or enter this code with your HomeKit app on your iOS device to pair with Homebridge:
┌────────────┐
│ 134-25-123 │
└────────────┘
[GreeAC]: connecting to 192.168.1.136 [using source port 8136]
[GreeAC]: connecting to 192.168.1.54 [using source port 8054]
[GreeAC]: connecting to 192.168.1.253 [using source port 8253]
[7/9/2018, 7:45:49 AM] Homebridge is running on port 51826.
[GreeAC] New device added: LivingRoom - 192.168.1.54
[GreeAC] device is bound: LivingRoom - Rs9Uv2Xy5Ab8De1h
[7/9/2018, 7:45:49 AM] [LivingRoom AC] Connected to LivingRoom with IP address 192.168.1.54
[GreeAC] New device added: Office - 192.168.1.136
[GreeAC] device is bound: Office - St2Vw5Yz8Bc1Ef4H
[7/9/2018, 7:45:49 AM] [Office AC] Connected to Office with IP address 192.168.1.136
On Mon, Jul 9, 2018 at 7:45 AM Roman rnglad@gmail.com wrote:
tried to reinstall the plugin, the error remains, but there are some strange thing happening
Or enter this code with your HomeKit app on your iOS device to pair with Homebridge:
┌────────────┐ │ 134-25-123 │ └────────────┘
[GreeAC]: connecting to 192.168.1.136 [using source port 8136]
[GreeAC]: connecting to 192.168.1.54 [using source port 8054]
[GreeAC]: connecting to 192.168.1.253 [using source port 8253]
[7/9/2018, 7:43:41 AM] Homebridge is running on port 51826.
[GreeAC] New device added: Bedroom - 192.168.1.253
[GreeAC] New device added: LivingRoom - 192.168.1.54
[GreeAC] New device added: Bedroom - 192.168.1.253
[GreeAC] device is bound: LivingRoom - Rs9Uv2Xy5Ab8De1h
[7/9/2018, 7:43:41 AM] [LivingRoom AC] Connected to LivingRoom with IP address 192.168.1.54
[GreeAC] device is bound: Bedroom - d4Fg7Ij0Lm3Op6Rs
[7/9/2018, 7:43:41 AM] [BedRoom AC] Connected to Bedroom with IP address 192.168.1.253
you see, not all the acs are connected, previous time there were 3 of them, then 1, now only two
On Wed, Jul 4, 2018 at 5:49 PM Roman rnglad@gmail.com wrote:
Whenever i try to change anything from home app it terminates:
Or enter this code with your HomeKit app on your iOS device to pair with Homebridge:
┌────────────┐ │ 234-25-123 │ └────────────┘
[GreeAC]: connecting to 192.168.1.136 [using source port 8136]
[GreeAC]: connecting to 192.168.1.54 [using source port 8054]
[GreeAC]: connecting to 192.168.1.253 [using source port 8253]
[7/4/2018, 5:47:03 PM] Homebridge is running on port 51826.
[GreeAC] New device added: Office - 192.168.1.136
[GreeAC] New device added: LivingRoom - 192.168.1.54
[GreeAC] New device added: Bedroom - 192.168.1.253
[GreeAC] device is bound: Office - St2Vw5Yz8Bc1Ef4H
[7/4/2018, 5:47:03 PM] [Office AC] Connected to Office with IP address 192.168.1.136
[GreeAC] device is bound: LivingRoom - Rs9Uv2Xy5Ab8De1h
[7/4/2018, 5:47:03 PM] [LivingRoom AC] Connected to LivingRoom with IP address 192.168.1.54
[GreeAC] device is bound: Bedroom - d4Fg7Ij0Lm3Op6Rs
[7/4/2018, 5:47:03 PM] [BedRoom AC] Connected to Bedroom with IP address 192.168.1.253
/Users/rnglad/node_modules/homebridge-gree-ac/app/deviceFactory.js:228
_sendRequest (message, address = that.device.address, port =
that.device.port) {
^
ReferenceError: that is not defined
at Device._sendRequest
(/Users/rnglad/node_modules/homebridge-gree-ac/app/deviceFactory.js:228:38)
at Device._sendCommand
(/Users/rnglad/node_modules/homebridge-gree-ac/app/deviceFactory.js:216:14)
at Device.setPower
(/Users/rnglad/node_modules/homebridge-gree-ac/app/deviceFactory.js:248:14)
at GreeAC.setTargetTemperature
(/Users/rnglad/node_modules/homebridge-gree-ac/index.js:333:32)
at Characteristic.TargetTemperature.emit (events.js:182:13) at Characteristic.TargetTemperature.Characteristic.setValue
(/Users/rnglad/.npm-global/lib/node_modules/homebridge/node_modules/hap-nodejs/lib/Characteristic.js:320:10)
at Bridge.<anonymous>
(/Users/rnglad/.npm-global/lib/node_modules/homebridge/node_modules/hap-nodejs/lib/Accessory.js:871:22)
at Array.forEach (<anonymous>) at Bridge.Accessory._handleSetCharacteristics
(/Users/rnglad/.npm-global/lib/node_modules/homebridge/node_modules/hap-nodejs/lib/Accessory.js:811:8)
at HAPServer.emit (events.js:182:13)
logout
Saving session...
...copying shared history...
...saving history...truncating history files...
...completed.
[Process completed]
On Wed, Jul 4, 2018 at 5:46 PM Roman rnglad@gmail.com wrote:
then I turned on the ac and ran home bridge again
it showed me correct info from the ac that was turned on
and showed 2 other as turned off - I tried to turn them on from home app
- this happened:
Or enter this code with your HomeKit app on your iOS device to pair with Homebridge:
┌────────────┐ │ 234-25-123 │ └────────────┘
[GreeAC]: connecting to 192.168.1.136 [using source port 8136]
[GreeAC]: connecting to 192.168.1.54 [using source port 8054]
[GreeAC]: connecting to 192.168.1.253 [using source port 8253]
[7/4/2018, 5:44:02 PM] Homebridge is running on port 51826.
[GreeAC] New device added: Office - 192.168.1.136
[GreeAC] device is bound: Office - St2Vw5Yz8Bc1Ef4H
[7/4/2018, 5:44:02 PM] [Office AC] Connected to Office with IP address 192.168.1.136
[GreeAC] New device added: Bedroom - 192.168.1.253
[GreeAC] New device added: LivingRoom - 192.168.1.54
[GreeAC] device is bound: Bedroom - d4Fg7Ij0Lm3Op6Rs
[7/4/2018, 5:44:02 PM] [BedRoom AC] Connected to Bedroom with IP address 192.168.1.253
[GreeAC] device is bound: LivingRoom - Rs9Uv2Xy5Ab8De1h
[7/4/2018, 5:44:02 PM] [LivingRoom AC] Connected to LivingRoom with IP address 192.168.1.54
/Users/rnglad/node_modules/homebridge-gree-ac/app/deviceFactory.js:228
_sendRequest (message, address = that.device.address, port =
that.device.port) {
^
ReferenceError: that is not defined
at Device._sendRequest
(/Users/rnglad/node_modules/homebridge-gree-ac/app/deviceFactory.js:228:38)
at Device._sendCommand
(/Users/rnglad/node_modules/homebridge-gree-ac/app/deviceFactory.js:216:14)
at Device.setPower
(/Users/rnglad/node_modules/homebridge-gree-ac/app/deviceFactory.js:248:14)
at GreeAC.setTargetTemperature
(/Users/rnglad/node_modules/homebridge-gree-ac/index.js:333:32)
at Characteristic.TargetTemperature.emit (events.js:182:13) at Characteristic.TargetTemperature.Characteristic.setValue
(/Users/rnglad/.npm-global/lib/node_modules/homebridge/node_modules/hap-nodejs/lib/Characteristic.js:320:10)
at Bridge.<anonymous>
(/Users/rnglad/.npm-global/lib/node_modules/homebridge/node_modules/hap-nodejs/lib/Accessory.js:871:22)
at Array.forEach (<anonymous>) at Bridge.Accessory._handleSetCharacteristics
(/Users/rnglad/.npm-global/lib/node_modules/homebridge/node_modules/hap-nodejs/lib/Accessory.js:811:8)
at HAPServer.emit (events.js:182:13)
logout
Saving session...
...copying shared history...
...saving history...truncating history files...
...completed.
[Process completed]
On Wed, Jul 4, 2018 at 5:43 PM Roman rnglad@gmail.com wrote:
Hello Again,
all the devices are added, but they all show as unavailable and then this happens
Or enter this code with your HomeKit app on your iOS device to pair with Homebridge:
┌────────────┐ │ 234-25-123 │ └────────────┘
[GreeAC]: connecting to 192.168.1.136 [using source port 8136]
[GreeAC]: connecting to 192.168.1.54 [using source port 8054]
[GreeAC]: connecting to 192.168.1.253 [using source port 8253]
[7/4/2018, 5:35:55 PM] Homebridge is running on port 51826.
[GreeAC] New device added: LivingRoom - 192.168.1.54
[GreeAC] New device added: Bedroom - 192.168.1.253
[GreeAC] New device added: Office - 192.168.1.136
[GreeAC] device is bound: LivingRoom - Rs9Uv2Xy5Ab8De1h
[7/4/2018, 5:35:55 PM] [LivingRoom AC] Connected to LivingRoom with IP address 192.168.1.54
[GreeAC] device is bound: Bedroom - d4Fg7Ij0Lm3Op6Rs
[7/4/2018, 5:35:55 PM] [BedRoom AC] Connected to Bedroom with IP address 192.168.1.253
[GreeAC] device is bound: Office - St2Vw5Yz8Bc1Ef4H
[7/4/2018, 5:35:55 PM] [Office AC] Connected to Office with IP address 192.168.1.136
/Users/rnglad/node_modules/homebridge-gree-ac/app/deviceFactory.js:228
_sendRequest (message, address = that.device.address, port =
that.device.port) {
^
ReferenceError: that is not defined
at Device._sendRequest
(/Users/rnglad/node_modules/homebridge-gree-ac/app/deviceFactory.js:228:38)
at Device._sendCommand
(/Users/rnglad/node_modules/homebridge-gree-ac/app/deviceFactory.js:216:14)
at Device.setTemp
(/Users/rnglad/node_modules/homebridge-gree-ac/app/deviceFactory.js:261:14)
at GreeAC.identify
(/Users/rnglad/node_modules/homebridge-gree-ac/index.js:360:24)
at Accessory.<anonymous>
(/Users/rnglad/.npm-global/lib/node_modules/homebridge/lib/server.js:430:79)
at Accessory.emit (events.js:182:13) at Accessory._identificationRequest
(/Users/rnglad/.npm-global/lib/node_modules/homebridge/node_modules/hap-nodejs/lib/Accessory.js:128:10)
at Accessory.<anonymous>
(/Users/rnglad/.npm-global/lib/node_modules/homebridge/node_modules/hap-nodejs/lib/Accessory.js:80:14)
at Characteristic.Identify.emit (events.js:182:13) at Characteristic.Identify.Characteristic.setValue
(/Users/rnglad/.npm-global/lib/node_modules/homebridge/node_modules/hap-nodejs/lib/Characteristic.js:320:10)
logout
Saving session...
...copying shared history...
...saving history...truncating history files...
...completed.
[Process completed]
On Thu, Jun 28, 2018 at 7:52 PM R Roman rnglad@gmail.com wrote:
Hello,
Sorry, I’m away from my computer for a week. I will try at 3rd of july and write you asap
From: duculete notifications@github.com Sent: Thursday, June 28, 2018 5:37:26 PM To: duculete/homebridge-gree-ac Cc: rnglad; Author Subject: Re: [duculete/homebridge-gree-ac] Please need more details (#1)
can you try? replace index.js and deviceFactory.js and the restart homebridge
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/duculete/homebridge-gree-ac/issues/1#issuecomment-401078043, or mute the thread https://github.com/notifications/unsubscribe-auth/AmcrbHpu4Y0PnCo75yvKl3DrVNO2jONoks5uBPg2gaJpZM4UqbYK .
you mentioned that the errors remained - what are the errors? What is the status of Home app accessories?
I wrote you 2 letters before: It shows all three ACs, but always "updating", as soon as I try to do something (like turn on or smth) it terminates the Homebridge
[GreeAC]: connecting to 192.168.1.136 [using source port 8136]
[GreeAC]: connecting to 192.168.1.54 [using source port 8054]
[GreeAC]: connecting to 192.168.1.253 [using source port 8253]
[7/4/2018, 5:47:03 PM] Homebridge is running on port 51826.
[GreeAC] New device added: Office - 192.168.1.136
[GreeAC] New device added: LivingRoom - 192.168.1.54
[GreeAC] New device added: Bedroom - 192.168.1.253
[GreeAC] device is bound: Office - St2Vw5Yz8Bc1Ef4H
[7/4/2018, 5:47:03 PM] [Office AC] Connected to Office with IP address 192.168.1.136
[GreeAC] device is bound: LivingRoom - Rs9Uv2Xy5Ab8De1h
[7/4/2018, 5:47:03 PM] [LivingRoom AC] Connected to LivingRoom with IP address 192.168.1.54
[GreeAC] device is bound: Bedroom - d4Fg7Ij0Lm3Op6Rs
[7/4/2018, 5:47:03 PM] [BedRoom AC] Connected to Bedroom with IP address 192.168.1.253
/Users/rnglad/node_modules/homebridge-gree-ac/app/deviceFactory.js:228
_sendRequest (message, address = that.device.address, port =
that.device.port) {
^
ReferenceError: that is not defined
at Device._sendRequest
(/Users/rnglad/node_modules/homebridge-gree-ac/app/deviceFactory.js:228:38)
at Device._sendCommand
(/Users/rnglad/node_modules/homebridge-gree-ac/app/deviceFactory.js:216:14)
at Device.setPower
(/Users/rnglad/node_modules/homebridge-gree-ac/app/deviceFactory.js:248:14)
at GreeAC.setTargetTemperature
(/Users/rnglad/node_modules/homebridge-gree-ac/index.js:333:32)
at Characteristic.TargetTemperature.emit (events.js:182:13)
at Characteristic.TargetTemperature.Characteristic.setValue
(/Users/rnglad/.npm-global/lib/node_modules/homebridge/node_modules/hap-nodejs/lib/Characteristic.js:320:10)
at Bridge.<anonymous>
(/Users/rnglad/.npm-global/lib/node_modules/homebridge/node_modules/hap-nodejs/lib/Accessory.js:871:22)
at Array.forEach (<anonymous>)
at Bridge.Accessory._handleSetCharacteristics
(/Users/rnglad/.npm-global/lib/node_modules/homebridge/node_modules/hap-nodejs/lib/Accessory.js:811:8)
at HAPServer.emit (events.js:182:13)
logout
Saving session...
...copying shared history...
...saving history...truncating history files...
...completed.
[Process completed]
On Mon, Jul 9, 2018 at 11:10 AM duculete notifications@github.com wrote:
you mentioned that the errors remained - what are the errors? What is the status of Home app accessories?
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/duculete/homebridge-gree-ac/issues/1#issuecomment-403396403, or mute the thread https://github.com/notifications/unsubscribe-auth/AmcrbB_NoBR1EVZ8Pt-FrJOvUH3l6HrDks5uExARgaJpZM4UqbYK .
are you sure you are using the last code (deviceFactory.js)? i don't see any messages like:
init deviceFactory on host ...
I'll try do uninstall and then install again
On Mon, Jul 9, 2018 at 11:19 AM duculete notifications@github.com wrote:
are you sure you are using the last code (deviceFactory.js)? i don't see any messages like:
init deviceFactory on host ...
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/duculete/homebridge-gree-ac/issues/1#issuecomment-403398585, or mute the thread https://github.com/notifications/unsubscribe-auth/AmcrbFPS06sgEDQWh2TYZDBlqlMtpZXgks5uExH7gaJpZM4UqbYK .
Hello there,
now it seems a bit more interesting, though I got error "cannot add this accessory" (i'll figure out why), but terminal looks much more promising right now
[GreeAC]: connecting to 192.168.1.136 [using source port 8136]
[GreeAC]: connecting to 192.168.1.54 [using source port 8054]
[GreeAC]: connecting to 192.168.1.253 [using source port 8253]
[7/9/2018, 6:42:28 PM] Homebridge is running on port 51826.
[GreeAC] New device added: Bedroom - 192.168.1.253
[GreeAC] New device added: Office - 192.168.1.136
[GreeAC] New device added: LivingRoom - 192.168.1.54
[GreeAC] device is bound: Bedroom - d4Fg7Ij0Lm3Op6Rs
[7/9/2018, 6:42:29 PM] [BedRoom AC] Connected to Bedroom with IP address 192.168.1.253
[GreeAC] device is bound: Office - St2Vw5Yz8Bc1Ef4H
[7/9/2018, 6:42:29 PM] [Office AC] Connected to Office with IP address 192.168.1.136
[GreeAC] device is bound: LivingRoom - Rs9Uv2Xy5Ab8De1h
[7/9/2018, 6:42:29 PM] [LivingRoom AC] Connected to LivingRoom with IP address 192.168.1.54
On Mon, Jul 9, 2018 at 11:22 AM Roman rnglad@gmail.com wrote:
I'll try do uninstall and then install again
On Mon, Jul 9, 2018 at 11:19 AM duculete notifications@github.com wrote:
are you sure you are using the last code (deviceFactory.js)? i don't see any messages like:
init deviceFactory on host ...
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/duculete/homebridge-gree-ac/issues/1#issuecomment-403398585, or mute the thread https://github.com/notifications/unsubscribe-auth/AmcrbFPS06sgEDQWh2TYZDBlqlMtpZXgks5uExH7gaJpZM4UqbYK .
You get the error on home app on iphone? Try to stop homebridge, remove persistent and accesories folders from homebridgehome folder and restart homebridge.
Hello again, here's it, it gave me the code and added a bridge, but as soon as the devices got to 'updating' it crashed:
[GreeAC]: connecting to 192.168.1.136 [using source port 8136]
[GreeAC]: connecting to 192.168.1.54 [using source port 8054]
[GreeAC]: connecting to 192.168.1.253 [using source port 8253]
[7/9/2018, 7:06:07 PM] Homebridge is running on port 51826.
[GreeAC] New device added: Office - 192.168.1.136
[GreeAC] New device added: LivingRoom - 192.168.1.54
[GreeAC] New device added: Bedroom - 192.168.1.253
[GreeAC] device is bound: Office - St2Vw5Yz8Bc1Ef4H
[7/9/2018, 7:06:07 PM] [Office AC] Connected to Office with IP address 192.168.1.136
[GreeAC] device is bound: LivingRoom - Rs9Uv2Xy5Ab8De1h
[7/9/2018, 7:06:07 PM] [LivingRoom AC] Connected to LivingRoom with IP address 192.168.1.54
[GreeAC] device is bound: Bedroom - d4Fg7Ij0Lm3Op6Rs
[7/9/2018, 7:06:07 PM] [BedRoom AC] Connected to Bedroom with IP address 192.168.1.253
/Users/rnglad/node_modules/homebridge-gree-ac/app/deviceFactory.js:229
_sendRequest (message, address = that.device.address, port =
that.device.port) {
^
ReferenceError: that is not defined
at Device._sendRequest
(/Users/rnglad/node_modules/homebridge-gree-ac/app/deviceFactory.js:229:38)
at Device._sendCommand
(/Users/rnglad/node_modules/homebridge-gree-ac/app/deviceFactory.js:217:14)
at Device.setTemp
(/Users/rnglad/node_modules/homebridge-gree-ac/app/deviceFactory.js:262:14)
at GreeAC.identify
(/Users/rnglad/node_modules/homebridge-gree-ac/index.js:360:24)
at Accessory.<anonymous>
(/Users/rnglad/.npm-global/lib/node_modules/homebridge/lib/server.js:430:79)
at Accessory.emit (events.js:182:13)
at Accessory._identificationRequest
(/Users/rnglad/.npm-global/lib/node_modules/homebridge/node_modules/hap-nodejs/lib/Accessory.js:128:10)
at Accessory.<anonymous>
(/Users/rnglad/.npm-global/lib/node_modules/homebridge/node_modules/hap-nodejs/lib/Accessory.js:80:14)
at Characteristic.Identify.emit (events.js:182:13)
at Characteristic.Identify.Characteristic.setValue
(/Users/rnglad/.npm-global/lib/node_modules/homebridge/node_modules/hap-nodejs/lib/Characteristic.js:320:10)
logout
Saving session...
...copying shared history...
...saving history...truncating history files...
...completed.
[Process completed]
I've started it homebridge again and now no errors, and it shows me if the AC is on or off and what it is doing 'cooling to 23', but it doesn't do anything and here's the log after i pressed all the buttons (nothing)
Or enter this code with your HomeKit app on your iOS device to pair with Homebridge:
┌────────────┐
│ 234-25-123 │
└────────────┘
[GreeAC]: connecting to 192.168.1.136 [using source port 8136]
[GreeAC]: connecting to 192.168.1.54 [using source port 8054]
[GreeAC]: connecting to 192.168.1.253 [using source port 8253]
[7/9/2018, 7:07:40 PM] Homebridge is running on port 51826.
[GreeAC] New device added: LivingRoom - 192.168.1.54
[GreeAC] New device added: Bedroom - 192.168.1.253
[GreeAC] New device added: Office - 192.168.1.136
[GreeAC] device is bound: Office - St2Vw5Yz8Bc1Ef4H
[7/9/2018, 7:07:41 PM] [Office AC] Connected to Office with IP address 192.168.1.136
[GreeAC] device is bound: LivingRoom - Rs9Uv2Xy5Ab8De1h
[7/9/2018, 7:07:41 PM] [LivingRoom AC] Connected to LivingRoom with IP address 192.168.1.54
[GreeAC] device is bound: Bedroom - d4Fg7Ij0Lm3Op6Rs
[7/9/2018, 7:07:41 PM] [BedRoom AC] Connected to Bedroom with IP address 192.168.1.253
On Mon, Jul 9, 2018 at 6:52 PM duculete notifications@github.com wrote:
You get the error on home app on iphone? Try to stop homebridge, remove persistent and accesories folders from homebridgehome folder and restart homebridge.
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/duculete/homebridge-gree-ac/issues/1#issuecomment-403527247, or mute the thread https://github.com/notifications/unsubscribe-auth/AmcrbKvkdvI9uYrukOgEw1WEtKsBlEmCks5uE3wigaJpZM4UqbYK .
Hello,
I uploaded the code that works for me (from my homebridge instance). Can you test now?
Hello, I have finally found what I was looking for - your plugin, but can’t install it to work. Can you please describe the process (including mqtt broker) in a bit more detail. Have 2 gree ACs in home and badly want to control them from home app