kongkx / homebridge-gree-air-conditioner

Apache License 2.0
20 stars 8 forks source link

AC disappears from Apple’s Homekit #26

Open remlio opened 1 year ago

remlio commented 1 year ago

Hi there! Since last update I have issue that makes this great plugin totally unusable for me. At first, I noticed that the AC was missing from Apple’s Home app. I restarted my Pi with Homebridge, then the AC appeared again. But after one or two minutes it disappeared. I restarted all of my hubs, full reseted and update each of them, updated my Homebridge, Pi, Node, restarted my router, switched off and on my AC, but no luck. As soon as the AC appears in Home app, it can be controlled from there, but after a minute it disappears again until the next restart of the plugin or Homebridge itself. In the Homebridge interface itself, the AC always remains and can be controlled from there. But it is every time disappearing from the Home app. I've used this great plugin for more than a year without any problems, no new plugins have been installed since then because I mainly need Homebridge to control the AC. I just don't know what to do anymore. Please help. TVOS and IOS 16.6, very last Homebridge and Node is LTS v18.17.1

kongkx commented 1 year ago

Would you mind to share your config file? or logs?

remingtone commented 1 year ago

Sure, here's:

{ "name": "Gree AC", "language": "en", "port": 7002, "scanAddress": "10.0.1.255", "scanCount": 3, "scanTimeout": 10000, "logStatus": false, "defaultValue": { "statusUpdateInterval": 5, "sensorOffset": 40, "hasFanMode": true, "hasDryMode": true, "defaultSpeed": 1, "defaultVerticalSwing": 2, "defaultHorizontalSwing": 6, "switches": "verticalSwing,powerfulMode,light,dryMode,fanMode" }, "devices": [ { "disabled": false, "mac": "xxxxxxxxx", "name": "AC gost", "statusUpdateInterval": 10, "hasFanMode": true, "hasDryMode": true, "sensorOffset": 40, "defaultSpeed": 5, "defaultVerticalSwing": 2, "defaultHorizontalSwing": 6, "switches": "verticalSwing,powerfulMode,light,dryMode,fanMode" }, { "mac": "xxxxxxxxx", "name": "AC sp", "statusUpdateInterval": 10, "hasFanMode": true, "hasDryMode": true, "sensorOffset": 40, "defaultSpeed": 3, "defaultVerticalSwing": 2, "defaultHorizontalSwing": 6, "switches": "verticalSwing,powerfulMode,light,dryMode,fanMode" } ], "_bridge": { "username": "0E:2C:xx.xx.xx.xx", "port": 45695 }, "platform": "GreeAirConditioner" },

For testing my home setup I just installed other plugin and it's working fine. But it hasn't many great features like dry mode, swing and so on. It is just heater-cooler, that's all. But it working with my Homebridge, Homekit and ACs.

remingtone commented 1 year ago

Here it's still present in Home app:

[06/09/2023, 13:43:18] [Gree AC] [xxxxxx -- 10.0.1.42:7000] send request: {"cid":"app","i":0,"t":"pack","uid":0,"tcid":"xx:xx:xx","pack":"Wd9B2UVMapFUH9UK+Az1s2iMopzgrfaspDMf55Nn3I6nRE8FI9sIJrJTXCgrnKCWLRxs+A9QCwbzGRPlk0k8IfPL6ZfJlbBSVjEzrlS7mXJstGyi9YzVsDDNnNEJ/U6783OlboXp35Oph7Uh+fjfW7OjuYm+WoKc6FSRGWmYjnVUFKLZG9CQ3g89cKds0hBpsrPicC1LH5BSzdDVLhmAoTKoWP7lNtSt9wIEmnZqmgUVXo0TUuO+7Sk87ORpf6Yz"}, {"mac":"xx:xx:xx","t":"status","cols":["Pow","Mod","SetTem","TemSen","TemUn","TemRec","WdSpd","SwingLfRig","SwUpDn","Blo","Lig","Quiet","Tur","HeatCoolType","SvSt","SwhSlp","time"]} [06/09/2023, 13:43:18] [Gree AC] [yy:yy:yy -- 10.0.1.19:7000] send request: {"cid":"app","i":0,"t":"pack","uid":0,"tcid":"yy:yy:yy","pack":"ayiPVNBGbJrDovEgdeC6XmpF9DwwES1Rdt5Jzc7eLvJSPrzAj21RJGRVPs5aqMSTIJhMvyD2s25QqLvUisXJ+K6IRzw/bxxCGAic7wjrXOQaB9Shxuo0uCRGdq8IQNJ0o3HfBq1DR0pFU0wK+SaLBc+SgNJKDbhBuMvhVCwWnol9ldUi8rbIlGNOJD1Cg83qU6NU0sYz5a6zzhC7BhZVaMFt1JeGlWWVuMuwxzgcYnTudG0kCnY/wo+kj25gkotj"}, {"mac":"yy:yy:yy","t":"status","cols":["Pow","Mod","SetTem","TemSen","TemUn","TemRec","WdSpd","SwingLfRig","SwUpDn","Blo","Lig","Quiet","Tur","HeatCoolType","SvSt","SwhSlp","time"]} [06/09/2023, 13:43:18] [Gree AC] handleMessage {"t":"pack","i":0,"uid":0,"cid":"xx:xx:xx","tcid":"","pack":"tK2idZfYm+Wombv2v0N9vz+G346n+PZoSArFu0ZZLHs/pFXyBUK+HM4O0Z/6ygouHIkEdmtjfhLSSCKj3qR8XnFKjbsAQuC6J6Pvj6oadlvDcOGTNa0zwvdNm9NK78KEkOhJAMOXPezesujA7OSy46uEI202NYSUwApTv4Gb0ZR49b0WPELQfQwJ+uQlbHLo+osAJmM3Ogsbtj07gMkVtF9gEAixZZvad5IbtxOd6sP7FZn/TwM+hf+rF8baDSyk9BBGLmOgtNwth/9KvIftyOPnWyeEfJvyhYzEbe9+50HEzjiPzG9MgNoSce7GHVS9xa+g2RJlQSMj/mawiMxzdw=="} [06/09/2023, 13:43:18] [Gree AC] [xx:xx:xx -- 10.0.1.42:7000] Update Status: {"Pow":0,"Mod":1,"SetTem":22,"TemSen":66,"TemUn":0,"TemRec":0,"WdSpd":5,"SwingLfRig":0,"SwUpDn":2,"Blo":0,"Lig":0,"Quiet":0,"Tur":0,"HeatCoolType":0,"SvSt":0,"SwhSlp":0,"time":"2023-09-06 12:54:43"} [06/09/2023, 13:43:18] [Gree AC] handleMessage {"t":"pack","i":0,"uid":0,"cid":"yy:yy:yy","tcid":"","pack":"bE+s7Cy7mzyVV8w26K6NxtalsRiZmnasf1cisQ0YjKzhOtlxI6wOkKfDAPEN9lcdFO3Rg7/3625m1K2EGc6gODjT/36qR3NijOY2khRNpGYixOQA5fZBuGAMgGIAz+Vlkd7TTdj0Lfp3V08tKP7ED+Xjj8lyTNZ8zShYs8iPfhhP28VhSf+f++N4J4pF6N06Rp2Mr5qHCi6f4Mb82UvT17gI7PAsqxL6jGSJHfnqwT52EnpyVuJ3w4vXyp6D4NalpcI818mo0/LnkzN5ZBCJwvV0xo09HgmgXyuV36vBRkHNmdaMxpm4zgAlVeF3pyDxEYuYkZZ1WuI38N6q4mwfMw=="} [06/09/2023, 13:43:18] [Gree AC] [yy:yy:yy -- 10.0.1.19:7000] Update Status: {"Pow":1,"Mod":3,"SetTem":20,"TemSen":66,"TemUn":0,"TemRec":1,"WdSpd":4,"SwingLfRig":6,"SwUpDn":1,"Blo":0,"Lig":0,"Quiet":0,"Tur":0,"HeatCoolType":0,"SvSt":0,"SwhSlp":0,"time":"2023-09-06 12:51:41"}

here it's disappearing from Home app and the next log records is:

[06/09/2023, 13:43:28] [Gree AC] [xx:xx:xx -- 10.0.1.42:7000] send request: {"cid":"app","i":0,"t":"pack","uid":0,"tcid":"xx:xx:xx","pack":"Wd9B2UVMapFUH9UK+Az1s2iMopzgrfaspDMf55Nn3I6nRE8FI9sIJrJTXCgrnKCWLRxs+A9QCwbzGRPlk0k8IfPL6ZfJlbBSVjEzrlS7mXJstGyi9YzVsDDNnNEJ/U6783OlboXp35Oph7Uh+fjfW7OjuYm+WoKc6FSRGWmYjnVUFKLZG9CQ3g89cKds0hBpsrPicC1LH5BSzdDVLhmAoTKoWP7lNtSt9wIEmnZqmgUVXo0TUuO+7Sk87ORpf6Yz"}, {"mac":"xx:xx:xx","t":"status","cols":["Pow","Mod","SetTem","TemSen","TemUn","TemRec","WdSpd","SwingLfRig","SwUpDn","Blo","Lig","Quiet","Tur","HeatCoolType","SvSt","SwhSlp","time"]} [06/09/2023, 13:43:28] [Gree AC] [yy:yy:yy -- 10.0.1.19:7000] send request: {"cid":"app","i":0,"t":"pack","uid":0,"tcid":"yy:yy:yy","pack":"ayiPVNBGbJrDovEgdeC6XmpF9DwwES1Rdt5Jzc7eLvJSPrzAj21RJGRVPs5aqMSTIJhMvyD2s25QqLvUisXJ+K6IRzw/bxxCGAic7wjrXOQaB9Shxuo0uCRGdq8IQNJ0o3HfBq1DR0pFU0wK+SaLBc+SgNJKDbhBuMvhVCwWnol9ldUi8rbIlGNOJD1Cg83qU6NU0sYz5a6zzhC7BhZVaMFt1JeGlWWVuMuwxzgcYnTudG0kCnY/wo+kj25gkotj"}, {"mac":"yy:yy:yy","t":"status","cols":["Pow","Mod","SetTem","TemSen","TemUn","TemRec","WdSpd","SwingLfRig","SwUpDn","Blo","Lig","Quiet","Tur","HeatCoolType","SvSt","SwhSlp","time"]} [06/09/2023, 13:43:28] [Gree AC] handleMessage {"t":"pack","i":0,"uid":0,"cid":"xx:xx:xx","tcid":"","pack":"tK2idZfYm+Wombv2v0N9vz+G346n+PZoSArFu0ZZLHs/pFXyBUK+HM4O0Z/6ygouHIkEdmtjfhLSSCKj3qR8XnFKjbsAQuC6J6Pvj6oadlvDcOGTNa0zwvdNm9NK78KEkOhJAMOXPezesujA7OSy46uEI202NYSUwApTv4Gb0ZR49b0WPELQfQwJ+uQlbHLo+osAJmM3Ogsbtj07gMkVtF9gEAixZZvad5IbtxOd6sP7FZn/TwM+hf+rF8baDSyk9BBGLmOgtNwth/9KvIftyOPnWyeEfJvyhYzEbe9+50HEzjiPzG9MgNoSce7GHVS98zDAVrPdlTPvSfylbhJ3FA=="} [06/09/2023, 13:43:28] [Gree AC] [xx:xx:xx -- 10.0.1.42:7000] Update Status: {"Pow":0,"Mod":1,"SetTem":22,"TemSen":66,"TemUn":0,"TemRec":0,"WdSpd":5,"SwingLfRig":0,"SwUpDn":2,"Blo":0,"Lig":0,"Quiet":0,"Tur":0,"HeatCoolType":0,"SvSt":0,"SwhSlp":0,"time":"2023-09-06 12:54:53"} [06/09/2023, 13:43:28] [Gree AC] handleMessage {"t":"pack","i":0,"uid":0,"cid":"yy:yy:yy","tcid":"","pack":"bE+s7Cy7mzyVV8w26K6NxtalsRiZmnasf1cisQ0YjKzhOtlxI6wOkKfDAPEN9lcdFO3Rg7/3625m1K2EGc6gODjT/36qR3NijOY2khRNpGYixOQA5fZBuGAMgGIAz+Vlkd7TTdj0Lfp3V08tKP7ED+Xjj8lyTNZ8zShYs8iPfhhP28VhSf+f++N4J4pF6N06Rp2Mr5qHCi6f4Mb82UvT17gI7PAsqxL6jGSJHfnqwT52EnpyVuJ3w4vXyp6D4NalpcI818mo0/LnkzN5ZBCJwvV0xo09HgmgXyuV36vBRkHNmdaMxpm4zgAlVeF3pyDx1HJ7nexYTqS8IMCHkREhow=="} [06/09/2023, 13:43:28] [Gree AC] [yy:yy:yy -- 10.0.1.19:7000] Update Status: {"Pow":1,"Mod":3,"SetTem":20,"TemSen":66,"TemUn":0,"TemRec":1,"WdSpd":4,"SwingLfRig":6,"SwUpDn":1,"Blo":0,"Lig":0,"Quiet":0,"Tur":0,"HeatCoolType":0,"SvSt":0,"SwhSlp":0,"time":"2023-09-06 12:51:51"}

And it's still present in Homebridge accessories like nothing happened

remlio commented 1 year ago

OMG, I solved it. There was some conflict with useless Homebridge RPI plugin, so I just disable it and your plugin start working again!