codyc1515 / 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
MIT License
34 stars 13 forks source link

Error in mail account login but same credentials work fine in the panasonic app (multi device setup) FIXED #67

Closed BramElderman closed 3 years ago

BramElderman commented 3 years ago

Hi

First ! Thanks for this great work stunning to finally get my airco's running and managed in homekit

Indeed the whole Panasonic account proces is very awkward so thanks for the steps to create multiple accounts I did setup 7 dedicated accounts for the 7 units i have in use and these accounts are solely for the use in homebridge and not used in the app.

The mail syntax i normally use when i register for accounts is to use mail aliases (according to the official mail standards) with the additional + notation, works for 95% of all systems but i also get the errors on normal mail notation.

The mail alias method is handy in the case where you want to make distinction with registration but want to use a singe mailadres to manage it all.

Notation: bram+room1@mac.com is a unique ID but mail wil arrive in bram@mac.com according to the specification bram+room2@mac.com is a unique ID but mail wil arrive in bram@mac.com according to the specification bram+room3@mac.com is a unique ID but mail wil arrive in bram@mac.com according to the specification

should normally work but i also created a normal dedicated mail account just to check the result but gives the same error so it does not seem to be a mail-syntax check that fails.

if this is working i can write some documentation for others to follow the same procedure to use nultiple Panasonic IDs

Thanks Bram

Here are the Errors [12/05/2021, 09:34:05] [Bram kamer] Error - 403 Forbidden. Check the configured email and password, then restart Homebridge. null [12/05/2021, 09:34:05] [Smederij] Error - 403 Forbidden. Check the configured email and password, then restart Homebridge. null [12/05/2021, 09:34:06] [Keuken] Error - 403 Forbidden. Check the configured email and password, then restart Homebridge. null [12/05/2021, 09:34:10] [Nicky kamer] Error - 403 Forbidden. Check the configured email and password, then restart Homebridge. null [12/05/2021, 09:34:11] [Voorkamer] Error - 403 Forbidden. Check the configured email and password, then restart Homebridge. null [12/05/2021, 09:34:14] [Julia kamer] Error - 403 Forbidden. Check the configured email and password, then restart Homebridge. null [12/05/2021, 09:35:05] [Smederij] Error - 403 Forbidden. Check the configured email and password, then restart Homebridge. null [12/05/2021, 09:35:05] [Bram kamer] Error - 403 Forbidden. Check the configured email and password, then restart Homebridge. null

Here is the configuration

{ "bridge": { "name": "Homebridge 13E2", "username": "0E:C7:FA:5E:13:E2", "port": 51845, "pin": "810-18-974", "bind": [ "eth0" ] }, "accessories": [ { "accessory": "PanasonicAirConditioner", "name": "Annelies kamer", "email": "bram+annelieskamer@mac.com", "password": "A9KHUMXnD6z", "devicenumber": 1 }, { "accessory": "PanasonicAirConditioner", "name": "Julia kamer", "email": "bram+juliakamer@mac.com", "password": "A9KHUMXnD6z", "devicenumber": 2 }, { "accessory": "PanasonicAirConditioner", "name": "Nicky kamer", "email": "bram+nickykamer@mac.com", "password": "A9KHUMXnD6z", "devicenumber": 3 }, { "accessory": "PanasonicAirConditioner", "name": "Keuken", "email": "bram+keuken@mac.com", "password": "A9KHUMXnD6z", "devicenumber": 4 }, { "accessory": "PanasonicAirConditioner", "name": "Bram kamer", "email": "bramkamer@thinkingbits.nl", "password": "A9KHUMXnD6z", "devicenumber": 5 }, { "accessory": "PanasonicAirConditioner", "name": "Voorkamer", "email": "bram+voorkamer@mac.com", "password": "A9KHUMXnD6z", "devicenumber": 6 }, { "accessory": "PanasonicAirConditioner", "name": "Smederij", "email": "bram+smederij@mac.com", "password": "A9KHUMXnD6z", "devicenumber": 7 } ], "platforms": [ { "name": "Config", "port": 8581, "auth": "form", "theme": "auto", "tempUnits": "c", "lang": "auto", "platform": "config" } ] }

BramElderman commented 3 years ago

OK i found the solution and the documentation might be outdated If you use UNIQUE mailadresses for every device like i did for every unit, you need to label all devices "devicenumber": 1 and not 1,2,3,4 etc... apperantly the "devicenumber": xx is intended for multiple devices on 1 (the same) mailaccount. but i have not tested that...

documentation could be updated to say

if you use unique mail address per device

"accessories": [{ "accessory": "PanasonicAirConditioner", "name": "Bedroom AC", "email": "", "password": "", "devicenumber": 1 },{ "accessory": "PanasonicAirConditioner", "name": "Living Room AC", "email": "", "password": "", "devicenumber": 1 }]