RaresAil / homebridge-gree-ac

Apache License 2.0
3 stars 2 forks source link

1 out of 5 ACs not detected #19

Closed dsylex closed 1 year ago

dsylex commented 1 year ago

Describe Your Problem: I've added the plugin to HB but one out of five ACs is not being detected. According to the log it tries to add a new accessory but with no attributes.

Logs:

[08/02/2023, 20:35:01] [Gree ACs] Restarting Process...
[08/02/2023, 20:35:02] [Gree ACs] Launched child bridge with PID 678271
[08/02/2023, 20:35:02] Registering platform 'homebridge-gree-ac-platform.GreeACImplementationPlugin'
[08/02/2023, 20:35:02] [Gree ACs] Loaded homebridge-gree-ac-platform v1.2.1 child bridge successfully
[08/02/2023, 20:35:02] Loaded 4 cached accessories from cachedAccessories.XXXXXXXXXXXX.
[08/02/2023, 20:35:03] [Gree ACs] Loading accessory from cache: 1eb7b74d
[08/02/2023, 20:35:03] [Gree ACs] Loading accessory from cache: 1eb7b69c
[08/02/2023, 20:35:03] [Gree ACs] Loading accessory from cache: c63e5d76
[08/02/2023, 20:35:03] [Gree ACs] Loading accessory from cache: 1e7616b9
[08/02/2023, 20:35:03] Homebridge v1.6.0 (HAP v0.11.0) (Gree ACs) is running on port 40872.
[08/02/2023, 20:35:03] [Gree ACs] Restoring existing accessory from cache: 1e7616b9
[08/02/2023, 20:35:03] [Gree ACs] Restoring existing accessory from cache: 1eb7b69c
[08/02/2023, 20:35:03] [Gree ACs] Restoring existing accessory from cache: c63e5d76
[08/02/2023, 20:35:03] [Gree ACs] Adding new accessory: 
[08/02/2023, 20:35:04] [Gree ACs] Restoring existing accessory from cache: 1eb7b74d
[08/02/2023, 20:35:04] [homebridge-gree-ac-platform] This plugin generated a warning from the characteristic 'Cooling Threshold Temperature': characteristic was supplied illegal value: number 25 exceeded maximum of 24. See https://homebridge.io/w/JtMGR for more info.
[08/02/2023, 20:35:04] [homebridge-gree-ac-platform] This plugin generated a warning from the characteristic 'Cooling Threshold Temperature': characteristic was supplied illegal value: number 25 exceeded maximum of 24. See https://homebridge.io/w/JtMGR for more info.

Plugin Config:

   {
            "name": "Gree ACs",
            "broadcastAddress": "192.168.1.255",
            "threeSpeedUnit": false,
            "coolingMinTemp": 16,
            "coolingMaxTemp": 24,
            "heatingMinTemp": 16,
            "heatingMaxTemp": 30,
            "defaultCurrentTemp": 22,
            "dhtService": "const sensor = require('node-dht-sensor'); const express = require('express');  const app = express();  app.get('/', (_, res) => {   sensor.read(11, 17, function (err, temperature, humidity) {     if (!err) {       res.status(200).json({         temperature,         humidity       });     } else {       res.status(500).json({         error: err.message,         code: err.code ?? 500       });     }   }); });  app.listen(55555, 'localhost', () => {   console.log('Service Started'); });",
            "_bridge": {
                "username": "XX:XX:XX:XX:XX:XX",
                "port": 40872
            },
            "platform": "GreeACImplementationPlugin"
        }

Screenshots:

Environment:

RaresAil commented 1 year ago

Hey @dsylex are all of them the same model?

dsylex commented 1 year ago

Same model (ComfortX) but it's been solved since I've moved it to a child bridge. also added a new AC and all 6 works fine now. Thanks for getting back to me, appreciated!

RaresAil commented 1 year ago

Same model (ComfortX) but it's been solved since I've moved it to a child bridge. also added a new AC and all 6 works fine now. Thanks for getting back to me, appreciated!

Great, a child bridge is better cause is running in a separate process from the homebridge