Giter VIP home page Giter VIP logo

homebridge-panasonic-air-conditioner's Introduction

Update

This plug-in is now archived and it is advised to use the homebridge-panasonic-ac-platform plug-in instead. It is based on this plug-in. This plug-in provides support for the devices as a platform (instead of just individual accessories).

homebridge-panasonic-air-conditioner

Panasonic Air Conditioner / Heat Pump plugin for HomeBridge using the Panasonic Comfort Cloud API to expose Panasonic Air Conditioners to Apples HomeKit.

Things to know

  • Supports only a single Air Conditioner per Comfort Cloud account
  • Tested only with the CZ-TACG1 adapter but may support built-in Wi-Fi adapter & CZ-CAPWFC1 adapter
  • Supports Air Conditioner and may support Commercial Air Conditioner, however I don't think Air to Water Heat Pump is supported as these use the Panasonic AQUAREA app which is separate

Getting started

Supported devices

Panasonic Air Conditioner that has a CZ-TACG1 adapter installed

Setup the app

  1. Download, install & setup the Panasonic Comfort Cloud app on your mobile device
  2. Create a login & add your Air Conditioner to the Comfort Cloud

Caution! It is recommended to setup another login for the Comfort Cloud and share your home to that login, as opposed to using your regular login for this plugin. Otherwise the Comfort Cloud app will log you out each time that you use this plugin (as only one user can be logged into the Comfort Cloud per login). If you plan to use multiple accessories, create separate accounts for every accessory.

  1. Share your login to another user setup specifically for HomeBridge. For instructions on how to do this, see Sharing Panasonic aircon with another account section below.

Sample configuration for a single AC

	"accessories": [
		{
		"accessory": "PanasonicAirConditioner",
		"name": "Bedroom AC",
		"email": "<YOUR_EMAIL_HERE>",
		"password": "<YOUR_PASSWORD_HERE>"
	}]

Sample configuration for multiple ACs

	"accessories": [{
		"accessory": "PanasonicAirConditioner",
		"name": "Bedroom AC",
		"email": "<YOUR_EMAIL_HERE>",
		"password": "<YOUR_PASSWORD_HERE>",
		"devicenumber": 1
	},{
		"accessory": "PanasonicAirConditioner",
		"name": "Living Room AC",
		"email": "<YOUR_OTHER_EMAIL_HERE>",
		"password": "<YOUR_OTHER_PASSWORD_HERE>",
		"devicenumber": 2
	}]

Sharing Panasonic aircon with another account

Panasonic really needs to improve this experience, nonetheless, here it is:

  1. Create a new panasonic account here: Panasonic ID Registration
  2. Verify email using the link sent to the email id specified
  3. Sign into the Panasonic Comfort Cloud app on your smart device using the newly created Panasonic ID
  4. Agree to the terms and conditions displayed in app
  5. Agree to the privacy notice displayed in app
  6. You should now be on the home screen of the App
  7. Click the "+" button
  8. Choose "Air Conditioner"
  9. Use the device ID from the original device package
  10. Enter the device password you used when originally setting up the device
  11. In step 3: Enter a name for the aircon, a message="HomeBridge account" and note="HomeBridge account")
  12. Click Send Request
  13. Log out of the app
  14. Sign in with the original email account in the Panasonic Comfort Cloud App
  15. Click the Device you've requested sharing for
  16. Click the hamburger menu and expand the "Owner" menu item, click "User list"
  17. You should now see an id with a waiting approval status
  18. Click the "Waiting Approval" button
  19. Select the "Allow both monitoring and controlling air conditioner" permission
  20. Confirm
  21. The waiting for approval button should have disappeared and replaced with a blue check icon
  22. Use the newly created id in the homekit accessory configuration

Legal

  • Licensed under MIT
  • This is not an official plug-in and is not affiliated with Panasonic in any way

homebridge-panasonic-air-conditioner's People

Contributors

codyc1515 avatar efipso avatar lockpicker avatar passatgt avatar rupertbg avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

homebridge-panasonic-air-conditioner's Issues

Could not load accessory ... missing the required 'name' property

Have just loaded up Homebridge and installed the plugin... but I'm seeing this error every time I restart Homebridge (and my Panasonic air con isn't displaying in Homekit):

Could not load accessory PanasonicAirConditioner at position 1 as it is missing the required 'name' property!

I've tried installing the plugin both via the UI and also directly via npm (and both installations go fine with no errors).

Warning on beta version homebridge

I'm getting this warning when running Homebridge on 1.3.0-beta53:

Received warning for the plugin 'homebridge-panasonic-air-conditioner' from the characteristic 'Target Heating Cooling State': SET handler returned write response value, though the characteristic doesn't support write response!

Token error. Refresh failed

hi there,

I've been getting this error msg suddenly since awhile ago " refreshed failed. Token error. The token may have expired. null". Homekit shows the ac is on however physically the ac is not turned on. Refreshing homebridge fixes the error, then awhile later when the Ac is turned off and on again error returns again.

Running Homebridge with Raspberry Pi

thanks

Unable to post get command to API

[1/24/2020, 9:31:44 PM] [Coffee Maker] Could not send GET command | Unknown error. Did the API version change? TypeError: Cannot read property 'statusCode' of undefined at PanasonicAC.<anonymous> (/usr/local/lib/node_modules/homebridge-panasonic-air-conditioner/index.js:230:76) at self.callback (/usr/local/lib/node_modules/homebridge-panasonic-air-conditioner/node_modules/request/request.js:185:22) at emitOne (events.js:116:13) at Request.emit (events.js:211:7) at Request.onRequestError (/usr/local/lib/node_modules/homebridge-panasonic-air-conditioner/node_modules/request/request.js:881:8) at emitOne (events.js:116:13) at ClientRequest.emit (events.js:211:7) at TLSSocket.socketErrorListener (_http_client.js:387:9) at emitOne (events.js:116:13) at TLSSocket.emit (events.js:211:7)

Question: after updates unit reappears

After the updates usually the unit reappears in HomeKit which results that all of the existing automations have to be reviewed and fixed. Couldn’t this be avoided? Thanks!

Question: what’s the purpose of the on/off button?

Hi,
Thank you very much for the fix! :)
I have two questions regarding the new layout.
There is an extra power button below the normal wheel. What is the purpose of this? I mean I can turn on the unit with the wheel, but with this button it seems I can’t control the unit.
789F6545-E115-4052-9661-54F29DA9677F
The second question is about the 2 buttons at the lower end. They are not really readable and using the naming of the unit. What are the purpose of those buttons?
1FC336D7-A344-44BF-9970-1FC69AF4EA1F
Thank you very much!

TypeError: this._login is not a function

The plugin works initially, then within say 24 hours of the Homebridge service starting, I get an error message and Homebridge shuts down... I'm running HOOBS if that makes any difference.

[Homebridge] [3/7/2020, 10:37:48 AM] [Air Con] GET CurrentTemperature
[Homebridge] [3/7/2020, 10:37:48 AM] [Air Con] GET ThresholdTemperature
[Homebridge] [3/7/2020, 10:47:57 AM] [Air Con] GET Active
[Homebridge] [3/7/2020, 10:47:57 AM] [Air Con] GET ThresholdTemperature
[Homebridge] [3/7/2020, 10:47:57 AM] [Air Con] GET CurrentTemperature
[Homebridge] [3/7/2020, 1:04:27 PM] TypeError: this._login is not a function
at Timeout._onTimeout (/home/hoobs/.hoobs/node_modules/homebridge-panasonic-air-conditioner/index.js:34:31)
at listOnTimeout (internal/timers.js:531:17)
at processTimers (internal/timers.js:475:7)
[Homebridge] [3/7/2020, 1:04:27 PM] Got SIGTERM, shutting down service...

Unknown SwingMode state 2

Since the last update one of my AC's throwing the following error:
2020. 06. 03. 8:38:49 [Bedroom Air Conditioner] Unknown SwingMode state 2
2020. 06. 03. 8:48:49 [Bedroom Air Conditioner] Unknown SwingMode state 2
2020. 06. 03. 8:58:49 [Bedroom Air Conditioner] Unknown SwingMode state 2
2020. 06. 03. 9:08:49 [Bedroom Air Conditioner] Unknown SwingMode state 2

I have the same AC in another room, which works fine, where the swing setting is set to forward and straight. In this case the Swing setting is up/down auto, and left side is set to right and right side to forward.

Suddenly my ACs not recognized

I get the following messages (see screenshot), if I restart Homebridge. I also realized that the connection with the Panasonic comfort cloud app also not smooth.
318A4623-F880-4815-9D66-2584B285B2DA

Panasonic app version changed

Unfortunately again the Panasonic app was updated. I tried to fix this with changing the version number as described here:
#36 (comment)

However it didn't help. I get the following errors:
[11/9/2020, 10:16:56] [Bedroom Air Conditioner] Login complete
[11/9/2020, 10:16:56] [Bedroom Air Conditioner] Could not find device by number. Check your device number and try again. TypeError: Cannot read property '0' of undefined
at PanasonicAC. (/usr/local/lib/node_modules/homebridge-panasonic-air-conditioner/index.js:159:76)
at Request.self.callback (/usr/local/lib/node_modules/homebridge-panasonic-air-conditioner/node_modules/request/request.js:185:22)
at Request.emit (events.js:314:20)
at Request. (/usr/local/lib/node_modules/homebridge-panasonic-air-conditioner/node_modules/request/request.js:1154:10)
at Request.emit (events.js:314:20)
at IncomingMessage. (/usr/local/lib/node_modules/homebridge-panasonic-air-conditioner/node_modules/request/request.js:1076:12)
at Object.onceWrapper (events.js:420:28)
at IncomingMessage.emit (events.js:326:22)
at endReadableNT (_stream_readable.js:1223:12)
at processTicksAndRejections (internal/process/task_queues.js:84:21) Error # undefined undefined
HAP Warning: Characteristic 00000077-0000-1000-8000-0026BB765291 not in required or optional characteristics for service 000000BC-0000-1000-8000-0026BB765291. Adding anyway.
[11/9/2020, 10:16:56] [Kids Room Air Conditioner] Login complete
[11/9/2020, 10:16:56] [Kids Room Air Conditioner] Could not find device by number. Check your device number and try again. TypeError: Cannot read property '0' of undefined
at PanasonicAC. (/usr/local/lib/node_modules/homebridge-panasonic-air-conditioner/index.js:159:76)
at Request.self.callback (/usr/local/lib/node_modules/homebridge-panasonic-air-conditioner/node_modules/request/request.js:185:22)
at Request.emit (events.js:314:20)
at Request. (/usr/local/lib/node_modules/homebridge-panasonic-air-conditioner/node_modules/request/request.js:1154:10)
at Request.emit (events.js:314:20)
at IncomingMessage. (/usr/local/lib/node_modules/homebridge-panasonic-air-conditioner/node_modules/request/request.js:1076:12)
at Object.onceWrapper (events.js:420:28)
at IncomingMessage.emit (events.js:326:22)
at endReadableNT (_stream_readable.js:1223:12)
at processTicksAndRejections (internal/process/task_queues.js:84:21) Error # undefined undefined
HAP Warning: Characteristic 00000077-0000-1000-8000-0026BB765291 not in required or optional characteristics for service 000000BC-0000-1000-8000-0026BB765291. Adding anyway.
[11/9/2020, 10:16:57] [Bedroom Air Conditioner] Refresh failed. Login error. Did you enter the correct username and password? Please check the details & restart Homebridge. null
[11/9/2020, 10:16:57] [Kids Room Air Conditioner] Refresh failed. Login error. Did you enter the correct username and password? Please check the details & restart Homebridge. null

plugin kills Hoobs service

After installing the plugin on Hoobs, the Hoobs service is stopped exactly 3 hours after starting.

[Homebridge] [3/17/2020, 11:09:02 PM] [AC 2.5] Initializing PanasonicAirConditioner accessory...
[Homebridge] [3/17/2020, 11:09:06 PM] [AC 2.5] Logged into Panasonic account
[...]
[Homebridge] [3/18/2020, 2:09:02 AM] TypeError: this._login is not a function
at Timeout._onTimeout (/home/hoobs/.hoobs/node_modules/homebridge-panasonic-air-conditioner/index.js:34:31)
at listOnTimeout (internal/timers.js:531:17)
at processTimers (internal/timers.js:475:7)
[Homebridge] [3/18/2020, 2:09:02 AM] Got SIGTERM, shutting down service...

it is reproducible.
Could you take a look?

Refresh failed. Device may be offline or in error state

Plugin has been working well for months without issue. Has started throwing errors in the past 24 hours. I did try updating HOOBS and plugin to latest versions.

I can still turn the air con unit on, but when I go back into the Home app a minute later, it gives the wrong status (status is off when unit is turned on).

13/04/2021, 08:14:09 [Air Con 1] Refresh start
13/04/2021, 08:14:10 [HOOBS DABD@Air Con 1@Air Con 1@Target Heater-Cooler State] characteristic value expected valid finite number and received "undefined" (undefined)
13/04/2021, 08:14:10 [Air Con 1] Refresh failed. Device may be offline or in error state. OnlineStatus false ErrorStatus false HTTPStatus 200 Error # undefined undefined

Request for other Air Con Controllers?

This probably isn’t the best place to post this, but wondering if you would be able to work on the E-zone Controller by Ambience/Advantage Air (uses E-zone app)? I would love to get a Homebridge plug-in for this but don’t have the know how.

Another person who contacted me has created individual switches for each function of the AC through HTTP commands.

DC1E0E9B-FCB6-402A-8CB5-0E5F0AA52026
DEDA5815-4837-4E34-AC29-B26560BC425B

Sugestion to add support for Quiet and Powerful mode

Hi. Great plugin. Only Quiet mode and Powerful mode suport missing. But it can be added simply.

For adding Quiet and Powerful mode, replace "case "RotationSpeed":" in index.js. Now if you select 1 in fan speed it will enable Quiet Mode, and if you select 5 it will enable Powerful mode.

			if (value == 1)
				{
					parameters = {
						"ecoMode": 2,
						"fanSpeed": 0
					}
				}
			else if (value == 5)
				{
					parameters = {
						"ecoMode": 1,
						"fanSpeed": 0
					}
				}
			else
				{
					parameters = {
						"ecoMode": 0,
						"fanSpeed": value
					};
				}

You can also add default startup mode.

in index.js, inside "function PanasonicAC(log, config)" add:
this.defaultMode = config.defaultMode;

In index.js, replace all code in "case Characteristic.Active.ACTIVE:"

					if (this.defaultMode == "q") {
						parameters = {
							"operate": 1,
							"ecoMode": 2,
							"fanSpeed": 0
						};

						this.HeaterCooler.getCharacteristic(Characteristic.RotationSpeed).updateValue(1);

					}

					else if (this.defaultMode == "p") {
						parameters = {
							"operate": 1,
							"ecoMode": 1,
							"fanSpeed": 0
						};

						this.HeaterCooler.getCharacteristic(Characteristic.RotationSpeed).updateValue(5);

					}

					else if (this.defaultMode == "a") {
						parameters = {
							"operate": 1,
							"ecoMode": 0,
							"fanSpeed": 0
						};

						this.HeaterCooler.getCharacteristic(Characteristic.RotationSpeed).updateValue(6);
						
					}

					else {
						parameters = {
							"operate": 1
						};
					}

				break;

and replace config schema to:

{ "pluginAlias":"PanasonicAirConditioner", "pluginType":"accessory", "singular":true, "headerDisplay":null, "schema":{ "type":"object", "properties":{ "name":{ "title":"Accessory Name", "type":"string", "format":"string", "placeholder":"Panasonic Air Conditioner", "minLength": 1, "required": true }, "email":{ "title":"Email", "type":"string", "format":"email", "placeholder":"Email", "minLength": 1, "required": true }, "password":{ "title":"Password", "type":"string", "format":"password", "placeholder":"Password", "minLength": 1, "required": true }, "devicenumber":{ "title":"Device Number (optional)", "type":"integer", "format":"integer", "placeholder":"1", "minLength": 1, "required": false, "description":"If you have multiple devices, specify the device number here to select that one specifically. Otherwise, defaults to 1." }, "defaultMode":{ "title":"Default Mode", "type":"string", "format":"", "placeholder":"", "minLength": 1, "required": true, "default": "no", "description":"Choose whether to always start in Quiet or Powerfull mode", "oneOf": [ { "title": "Auto", "enum": [ "a" ] }, { "title": "Quiet", "enum": [ "q" ] }, { "title": "Powerful", "enum": [ "p" ] }, { "title": "No default", "enum": [ "no" ] } ] }, "debug":{ "title":"Debug logging", "type":"boolean", "description":"Turns on additional logging (can be helpful for diagnosing issues)" } } }, "layout":[ { "type":"flex", "flex-flow":"row wrap", "items":[ "name" ] }, { "type":"flex", "flex-flow":"row wrap", "items":[ { "key":"email", "type":"email" }, { "key":"password", "type":"password" } ] }, { "type":"fieldset", "title":"Advanced configuration", "expandable":true, "items":[ "devicenumber", "defaultMode", "debug" ] } ] }

Out temperature only if AC is working

Since last update (1.1.0) I can only get the outside temperature if the AC is working, and I get the last registered if AC is off.
Before that update, I always get the outside temperature, with AC on and off.

Dry setting and I auto X

Hi. This is a brilliant plug-in.

Is there any chance you could add a dry setting along with heat, cool and auto?

I also have an I auto x setting but as this is proprietary to panasonic I imagine it can be added to the settings wheel?

thanks!

will

HTTP Response 500

Currently I'm getting the following errors starting this morning. I've already reset and re-setup the TACG1 and that is working fine. I can control the AC from the original Panasonic app.

Could not send SET command | HTTP response 500 | Error # 5005 : Adapter Communication error

Edit: Just to give some more information.

I've been working on a whole new server setup te replace my Raspberry Pi. The software is no longer combined into one big mess but separated with Docker.

I was running the HomeBridge on a separated Pi (due to performance issues) with only one Tasmota device and the Panasonic AC.

Because the new server has more speed I've decided to move the AC to the new server. Everything was working fine but after a couple of hours the link LED start flashing on the TACG1 and won't work anymore.

After some work the adapter started to work as normal, I can login on the Panasonic app and turn on and off the AC. But this plugin keeps failing for no reason.

Then I just restart my old Pi (with working configuration) and there the same issues start showing up so I can trace back the issue to two possibilities

1: My TAGC1 adapter is broken
2: Panasonic made some adjustments in the background that prevent using you're own script.

I guess it's two but I hope for one...

Could not login to Panasonic account

Since yesterday, I lost conection with de AC. When I debug the homebridge instance I can see the following messages:
[Panasonic AC] Initializing PanasonicAirConditioner accesory...
[PanasonicAC] Could not login to Panasonic account

Of course, I tried to use that login into the app and works fine, so is not an account issue

Update to Panasonic App

Hi

Device stopped responding as of this morning. Some error related to a new app being released, can’t login. Presume this is a change related to the Panasonic cloud server?

Thanks, Miguel

HTTP error 404

I get an error 404 in the logs. No temperature reading. I can only turn on and turn off the unit and select the mode.

[2/14/2021, 9:23:47 PM] [slaapkamer airco] Login complete
[2/14/2021, 9:23:47 PM] [slaapkamer airco] Refresh start
[2/14/2021, 9:23:48 PM] [slaapkamer airco] Refresh failed. HTTP response 404 Error # undefined undefined
HAP Warning: Characteristic 00000077-0000-1000-8000-0026BB765291 not in required or optional characteristics for service 0000004A-0000-1000-8000-0026BB765291. Adding anyway.

Can not connect

Hi

when i try to login i get the error
Could not login to Panasonic account | Error#4002 Missing required body parameter

and
Could not send GET command | HTTP response 401 Error undefined
thx

Updating on Hoobs

Hey codyc1515,

I have noticed that there have been a few updates to the files for the Homebridge plugin, however there doesn't seem to be any prompt to update on Hoobs, as I am still getting the new app version error: Login failed. Error # 4106 New version app has been published. I'm currently on homebridge-panasonic-air-conditioner v3.3.4. I've tried manually installing the latest version but it still resorts to v3.3.4. Would appreciate if there was any way in which this could be resolved.

Cheers,
connor165

DeviceNumber error with Multiple Units

Hi there,

When attempting to add an additional device using "devicenumber" I get the below result and neither devices work.

Config:

  {
        "name": "Air-Conditioner",
        "email": "[email protected]",
        "password": "******",
        "devicenumber": 1,
        "accessory": "PanasonicAirConditioner"
    },
    {
        "name": "Air-Conditioner 2",
        "email": "[email protected]",
        "password": "******",
        "devicenumber": 2,
        "accessory": "PanasonicAirConditioner"
    }

Log:

Could not find device by number. Check your device number and try again. TypeError: Cannot read property 'deviceIdList' of undefined
    at PanasonicAC.<anonymous> (/usr/local/lib/node_modules/homebridge-panasonic-air-conditioner/index.js:159:60)
    at Request.self.callback (/usr/local/lib/node_modules/homebridge-panasonic-air-conditioner/node_modules/request/request.js:185:22)
    at Request.emit (events.js:315:20)
    at Request.<anonymous> (/usr/local/lib/node_modules/homebridge-panasonic-air-conditioner/node_modules/request/request.js:1154:10)
    at Request.emit (events.js:315:20)
    at IncomingMessage.<anonymous> (/usr/local/lib/node_modules/homebridge-panasonic-air-conditioner/node_modules/request/request.js:1076:12)
    at Object.onceWrapper (events.js:421:28)
    at IncomingMessage.emit (events.js:327:22)
    at endReadableNT (_stream_readable.js:1221:12)
    at processTicksAndRejections (internal/process/task_queues.js:84:21) Error # undefined undefined

Cannot install

Hi,

When I try to install the plugin I'm getting the following results:

pi@raspberrypi:~ $ sudo npm i homebridge-panasonic-air-conditioner
npm WARN [email protected] No description
npm WARN [email protected] No repository field.

+ [email protected]
updated 1 package and audited 1601 packages in 20.921s
found 0 vulnerabilities

Then I'm adding the following information to the homebridge config:

{
  "accessory": "PanasonicAirConditioner",
  "name": "Panasonic Heat Pump",
  "email": "EMAIL",
  "password": "PASSWORD"
}

After that I started homebridge and it shutdown with the following errors:

[2020-3-14 09:24:28] Error: The requested accessory 'PanasonicAirConditioner' 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:297:42)
    at Server.run (/usr/local/lib/node_modules/homebridge/lib/server.js:91:38)
    at module.exports (/usr/local/lib/node_modules/homebridge/lib/cli.js:59:10)
    at Object.<anonymous> (/usr/local/lib/node_modules/homebridge/bin/homebridge:17:22)
    at Module._compile (internal/modules/cjs/loader.js:701:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:712:10)
    at Module.load (internal/modules/cjs/loader.js:600:32)
    at tryModuleLoad (internal/modules/cjs/loader.js:539:12)
    at Function.Module._load (internal/modules/cjs/loader.js:531:3)
    at Function.Module.runMain (internal/modules/cjs/loader.js:754:12)
    at startup (internal/bootstrap/node.js:283:19)
    at bootstrapNodeJSCore (internal/bootstrap/node.js:622:3)
[2020-3-14 09:24:28] Got SIGTERM, shutting down Homebridge...

Any one a great idea to get it fixed?

Version 6.0.0 Crashes when the AC is off

TypeError: Cannot read property 'INACTIVE' of undefined
    at PanasonicAC.<anonymous> (/homebridge/node_modules/homebridge-panasonic-air-conditioner/index.js:290:99)
    at Request.self.callback (/homebridge/node_modules/homebridge-panasonic-air-conditioner/node_modules/request/request.js:185:22)
    at Request.emit (events.js:315:20)
    at Request.<anonymous> (/homebridge/node_modules/homebridge-panasonic-air-conditioner/node_modules/request/request.js:1154:10)
    at Request.emit (events.js:315:20)
    at IncomingMessage.<anonymous> (/homebridge/node_modules/homebridge-panasonic-air-conditioner/node_modules/request/request.js:1076:12)
    at Object.onceWrapper (events.js:421:28)
    at IncomingMessage.emit (events.js:327:22)
    at endReadableNT (internal/streams/readable.js:1327:12)
    at processTicksAndRejections (internal/process/task_queues.js:80:21)

Retries e.g. when login fails

Sometimes I have to reboot homebridge because login has failed for this plugin. Perhaps we could add a timer to retry if login fails for any reason.

Login failed due to new app versioned released

Unable to access home kit as the device is not responding;
Following the error shown:

[1/21/2021, 3:12:15 PM] [Master Bedroom AC] Login failed. Error # 4106 New version app has been published

"devicenumber" attribute not working

Using the "devicenumber" attribute throws the following error:

[6/6/2020, 7:47:09 AM] [Panasonic AC 1] Could not find any devices. Error # undefined undefined HAP Warning: Characteristic 00000077-0000-1000-8000-0026BB765291 not in required or optional characteristics for service 000000BC-0000-1000-8000-0026BB765291. Adding anyway. [6/6/2020, 7:47:10 AM] [Panasonic AC 2] Login complete [6/6/2020, 7:47:10 AM] [Panasonic AC 2] Could not find device by number. Check your device number and try again. TypeError: Cannot read property 'deviceIdList' of undefined at PanasonicAC.<anonymous> (/homebridge/node_modules/homebridge-panasonic-air-conditioner/index.js:159:60) at Request.self.callback (/homebridge/node_modules/request/request.js:185:22) at Request.emit (events.js:315:20) at Request.<anonymous> (/homebridge/node_modules/request/request.js:1154:10) at Request.emit (events.js:315:20) at IncomingMessage.<anonymous> (/homebridge/node_modules/request/request.js:1076:12) at Object.onceWrapper (events.js:421:28) at IncomingMessage.emit (events.js:327:22) at endReadableNT (_stream_readable.js:1221:12) at processTicksAndRejections (internal/process/task_queues.js:84:21) Error # undefined undefined HAP Warning: Characteristic 00000077-0000-1000-8000-0026BB765291 not in required or optional characteristics for service 000000BC-0000-1000-8000-0026BB765291. Adding anyway. [6/6/2020, 7:47:10 AM] [Panasonic AC 2] Refresh start [6/6/2020, 7:47:12 AM] [Panasonic AC 2] Refresh failed. HTTP response 403 Error # undefined undefined

typerror with version 5.0 ?

Do someone also have this issue?
Is there a change in the Json or the API ?

Initializing PanasonicAirConditioner accessory...
TypeError: Cannot read property 'NOTIFY' of undefined
at PanasonicAC.getServices (/usr/lib/node_modules/homebridge-panasonic-air-conditioner/index.js:141:19)
at Server._createAccessory (/usr/lib/node_modules/homebridge/lib/server.js:427:36)
at Server._loadAccessories (/usr/lib/node_modules/homebridge/lib/server.js:309:26)
at Server.run (/usr/lib/node_modules/homebridge/lib/server.js:91:38)
at module.exports (/usr/lib/node_modules/homebridge/lib/cli.js:59:10)
at Object. (/usr/lib/node_modules/homebridge/bin/homebridge:17:22)
at Module._compile (internal/modules/cjs/loader.js:959:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:995:10)
at Module.load (internal/modules/cjs/loader.js:815:32)
at Function.Module._load (internal/modules/cjs/loader.js:727:14)
Got SIGTERM, shutting down Homebridge...
[2021-1-17 19:56:39] TypeError: Cannot read property 'addEntry' of undefined
at PanasonicAC. (/usr/lib/node_modules/homebridge-panasonic-air-conditioner/index.js:254:27)
at Request.self.callback (/usr/lib/node_modules/homebridge-panasonic-air-conditioner/node_modules/request/request.js:185:22)
at Request.emit (events.js:210:5)
at Request. (/usr/lib/node_modules/homebridge-panasonic-air-conditioner/node_modules/request/request.js:1154:10)
at Request.emit (events.js:210:5)
at IncomingMessage. (/usr/lib/node_modules/homebridge-panasonic-air-conditioner/node_modules/request/request.js:1076:12)
at Object.onceWrapper (events.js:299:28)
at IncomingMessage.emit (events.js:215:7)
at endReadableNT (_stream_readable.js:1184:12)
at processTicksAndRejections (internal/process/task_queues.js:80:21)
homebridge.service: Main process exited, code=exited, status=143/n/a
homebridge.service: Failed with result 'exit-code'.

Login Faild error #4106

Hey,

Since update I get an error #4106. It says: New version of app has been published.

I use the latest one.

Refresh failed. Token error. The token may have expired. null

Ever since at least Dec 30th, version 4.1.1 of this fine plugin no longer works. I'm getting a couple different errors that I suspect are due to the same root cause.

The most common error is:
[01/01/2021, 15:30:53] [Panasonic Air Conditioner] Refresh failed. Token error. The token may have expired. null

I also get (discussed in issue #44 , I am running the latest version of the app and ensured that the homebridge user has the requisite access.
[01/01/2021, 15:10:56] [Panasonic Air Conditioner] Login failed. Error # 4106 New version app has been published

And finally:
[01/01/2021, 07:51:00] [Panasonic Air Conditioner] Login failed. Unknown error. Did the API version change? TypeError: Cannot read property 'code' of undefined
at PanasonicAC. (/usr/local/lib/node_modules/homebridge-panasonic-air-conditioner/index.js:178:51)
at self.callback (/usr/local/lib/node_modules/homebridge-panasonic-air-conditioner/node_modules/request/request.js:185:22)
at Request.emit (events.js:315:20)
at Request.onRequestError (/usr/local/lib/node_modules/homebridge-panasonic-air-conditioner/node_modules/request/request.js:877:8)
at ClientRequest.emit (events.js:315:20)
at TLSSocket.socketErrorListener (_http_client.js:469:9)
at TLSSocket.emit (events.js:315:20)
at emitErrorNT (internal/streams/destroy.js:106:8)
at emitErrorCloseNT (internal/streams/destroy.js:74:3)
at processTicksAndRejections (internal/process/task_queues.js:80:21)

TypeError: Cannot read property 'deviceGuid' of undefined

Hi,
Trying to use the plugin with the below config -
"accessories": [{
"accessory": "PanasonicAirConditioner",
"name": "Bedroom AC",
"email": "<email_here>",
"password": "<plain_text_password_here>",
"Debug logging": true
}]

results in the following error and crash:
at PanasonicAC. (/usr/local/lib/node_modules/homebridge-panasonic-air-conditioner/index.js:77:60)
at Request.self.callback (/usr/local/lib/node_modules/homebridge-panasonic-air-conditioner/node_modules/request/request.js:185:22)
at Request.emit (events.js:197:13)
at Request. (/usr/local/lib/node_modules/homebridge-panasonic-air-conditioner/node_modules/request/request.js:1161:10)
at Request.emit (events.js:197:13)
at IncomingMessage. (/usr/local/lib/node_modules/homebridge-panasonic-air-conditioner/node_modules/request/request.js:1083:12)
at Object.onceWrapper (events.js:285:13)
at IncomingMessage.emit (events.js:202:15)
at endReadableNT (_stream_readable.js:1129:12)
at processTicksAndRejections (internal/process/next_tick.js:76:17)

Also, perhaps you could include a sample config.json in the repo.

share AC

Hi, how can I please share AC with another account? Spend an hour on that but not able to find anything.

This plugin generated a warning from the characteristic 'Target Heater-Cooler State': characteristic value expected number and received undefined.

[3/27/2021, 11:17:36 PM] [Girl Cave PanasonicAirConditioner] Refresh start
[3/27/2021, 11:17:37 PM] [Girl Cave PanasonicAirConditioner] {
deviceGuid: 'see comment below for same item',
timestamp: 1616848766000,
summerHouse: 0,
iAutoX: true,
nanoe: false,
autoMode: true,
heatMode: true,
fanMode: true,
dryMode: true,
coolMode: true,
ecoNavi: false,
powerfulMode: true,
permission: 2,
quietMode: true,
airSwingLR: true,
autoSwingUD: false,
ecoFunction: 0,
temperatureUnit: 0,
modeAvlList: { autoMode: 1, fanMode: 1 },
parameters: {
online: true,
devGuid: 'removed by FlitterbyG in case it's a security risk to post it to GitHub',
eventTime: null,
operate: 0,
operationMode: 3,
temperatureSet: 25,
fanSpeed: 4,
fanAutoMode: 1,
airSwingLR: 4,
airSwingUD: 4,
airDirection: 0,
ecoMode: 0,
ecoNavi: 1,
nanoe: 2,
iAuto: 1,
errorCode: null,
errorCodeStr: null,
insideTemperature: 27,
outTemperature: 14,
devRacCommunicateStatus: -255,
errorStatus: -255,
errorStatusFlg: false,
httpErrorCode: -255,
actualNanoe: 1,
airQuality: 0,
ecoFunctionData: 1,
updateTime: 1616848766000
},
autoTempMax: -1,
dryTempMax: -1,
heatTempMax: -1,
coolTempMax: -1,
autoTempMin: -1,
dryTempMin: -1,
heatTempMin: -1,
coolTempMin: -1,
fanSpeedMode: -1,
fanDirectionMode: -1
}
[3/27/2021, 11:17:37 PM] [homebridge-panasonic-air-conditioner] This plugin generated a warning from the characteristic 'Target Heater-Cooler State': characteristic value expected number and received undefined. See https://git.io/JtMGR for more info.
[3/27/2021, 11:17:37 PM] [Girl Cave PanasonicAirConditioner] Refresh complete

Support for multiple AC Units

Hi there,
Great plugin! Do you have any plans to add support for multiple AC units? Alternatively, is there a workaround that I can use to add more than one AC?

Failed connection when app version changes

Hi,

This is related to issue #9 and pull request #8

When app updates with new version, plugin will fail again until you change manually to the correct version.
This "validation" is not with exact version, but with minimum version. So if you change version with a higher value (for example 99.0) will solve this problem (until app reaches 99.0.1 or higher...)

Fan is not separate functionality since 5.2.0

Hello,
By default my AC has only Cool, Dry, Heat and Auto modes, no Fan only mode. However up until v5.2.0 it was possible to use the AC as fan only, without heating, cooling, etc. Currently in version 5.2.0 the Fan accessory only controls the fan speed, rather than giving the ability to run as Fan only. Could this be solved somehow? Thank you! :)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.