Coder Social home page Coder Social logo

iobroker.psa's Introduction

Logo

ioBroker.psa

NPM version Downloads Number of Installations (latest) Number of Installations (stable) Dependency Status

NPM

Tests: Test and Release

psa adapter for ioBroker

PSA Adapter for Peugeot, Citroen, DS, Opel

Changelog

0.0.8 Initial release

License

MIT License

Copyright (c) 2021 TA2k

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

iobroker.psa's People

Contributors

ta2k avatar

Stargazers

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

Watchers

 avatar  avatar  avatar  avatar  avatar

iobroker.psa's Issues

Login Fehler

Hallo,

  1. Test

`

psa.0 2021-06-22 23:26:45.799 warn State "psa.0.info.connection" has no existing object, this might lead to an error in future versions
psa.0 2021-06-22 23:26:45.794 error Login failed
psa.0 2021-06-22 23:26:45.794 error {"error":"invalid_grant","error_description":"The provided access grant is invalid, expired, or revoked."}
psa.0 2021-06-22 23:26:45.794 error Login failed
psa.0 2021-06-22 23:26:45.794 error Error: Request failed with status code 400
psa.0 2021-06-22 23:26:45.386 info starting. Version 0.0.1 in C:/Program Files/iobroker/Home/node_modules/iobroker.psa, node: v12.22.1, js-controller: 3.3.14
psa.0 2021-06-22 23:26:45.386 info starting. Version 0.0.1 in C:/Program Files/iobroker/Home/node_modules/iobroker.psa, node: v12.22.1, js-controller: 3.3.14
psa.0 2021-06-22 23:26:41.463 info Terminated (ADAPTER_REQUESTED_TERMINATION): Without reason
psa.0 2021-06-22 23:26:41.462 info terminating
psa.0 2021-06-22 23:26:41.462 warn Clear yet terminated interval undefined
psa.0 2021-06-22 23:26:41.461 warn Clear yet terminated interval undefined
psa.0 2021-06-22 23:26:41.461 info Got terminate signal TERMINATE_YOURSELF

Plattform: Windows RAM: 16 GB Node.js: 12.22.1 NPM: 6.14.12 JS Controller: 3.3.14 Admin: 5.1.9 Web: 3.4.1 Socket.io: 3.1.4 Script Engine: 5.1.3 IOT: 1.8.22 VIS: 1.3.10 HM-Rega: 3.0.24 HM-RPC: 1.14.41 Jarvis: 2.2.0 Backitup: 2.1.12 Cloud: 4.0.11 ICal: 1.9.3 iQontrol: 1.8.0 fb-checkpresence: 1.1.5 Hue: 3.5.18

PKW: Peugeot 2008 BJ 2014

Think about to fix the issues found by adapter checker

I am an automatic service that looks for possible errors in ioBroker and creates an issue for it. The link below leads directly to the test:

https://adapter-check.iobroker.in/?q=https://raw.githubusercontent.com/TA2k/ioBroker.psa

  • [E605] No actual year found in copyright. Please add "Copyright (c) 2022 TA2k [email protected]" at the end of README.md
  • [E701] No actual year found in LICENSE. Please add "Copyright (c) 2022 TA2k [email protected]" at the start of LICENSE

Thanks,
your automatic adapter checker.

P.S.: There is a community in Github, which supports the maintenance and further development of adapters. There you will find many experienced developers who are always ready to assist anyone. New developers are always welcome there. For more informations visit: https://github.com/iobroker-community-adapters/info

Get device status failed

Hallo,

ich habe leider absolut keine Ahnung von ioBroker, interessiere mich aber für die PSA Daten.
Also habe ich den ioBroker als Docker image installiert und den Adapter hinzugefügt und mit meinen Zugangsdaten konfiguriert.
Die richtige VIN wird ausgelesen, aber der Status kann scheinbar nicht gelesen werden.

2023-01-23 17:46:27.984 - error: psa.0 (1053) AxiosError: Request failed with status code 404
2023-01-23 17:46:27.984 - error: psa.0 (1053) Get MEINE_VIN.status failed
2023-01-23 17:46:27.984 - error: psa.0 (1053) {"uuid":"787acee3-e668-48ae-afcf-f17a2727f4a5","code":40400,"message":"Not Found: We didn't find the status for this vehicule."}
2023-01-23 17:46:27.984 - error: psa.0 (1053) Get device status failed

Die MyPeugeot App funktioniert hingegen einwandfrei.
Muss ich noch etwas beachten/einstellen?

Support for Electric Cars

Hi,

with the current version (v0.0.10) I am getting the following error:

psa.0 | 2022-09-02 17:19:38.467 | warn | OldAPI Login failed, only relevant for non eletric cars
-- | -- | --
psa.0 | 2022-09-02 17:19:38.467 | warn | "<html>\r\n<head><title>403 Forbidden</title></head>\r\n<body>\r\n<center><h1>403 Forbidden</h1></center>\r\n</body>\r\n</html>\r\n"
psa.0 | 2022-09-02 17:19:38.466 | warn | receive old api failed
psa.0 | 2022-09-02 17:19:38.465 | warn | Error: Request failed with status code 403
psa.0 | 2022-09-02 17:19:37.588 | info | Login successful

Any plans to support the "new" API in order to be able to use it for Opel Electric cars?

Thanks in advance
Sascha

Keine Verbindung mit Gerät oder Dienst

Seit 25.02 gibt es ein Login Fehler bei Peugeot
Login failed
{"error_description":"Internal Server Error","error":"server_error"}
AxiosError: Request failed with status code 400

Update stable version in repo from 0.0.11 to 0.0.12

Think about update stable version to 0.0.12

Version: stable=0.0.11 (388 days old) => latest=0.0.12 (15 days old)
Installs: stable=511 (87.35%), latest=37 (6.32%), total=585

Click to use developer portal
Click to edit

Note: This is an automatically generated message and not personally authored by bluefox!

can't connect to myopel

Hi,

PSA adapter seems not to work.

it can't connect to myopel account

2024-07-12 18:35:09.206 - error: psa.0 (19452) AxiosError: Request failed with status code 400
2024-07-12 18:35:09.212 - error: psa.0 (19452) Login failed
2024-07-12 18:35:09.215 - error: psa.0 (19452) {"error_description":"Internal Server Error","error":"server_error"}
2024-07-12 18:35:09.216 - error: psa.0 (19452) Login failed
2024-07-12 18:35:09.475 - warn: psa.0 (19452) Error: unsupported
2024-07-12 18:35:09.476 - warn: psa.0 (19452) receive new api failed
2024-07-12 18:35:09.533 - warn: psa.0 (19452) Error: unsupported
2024-07-12 18:35:09.535 - warn: psa.0 (19452) receive old api failed
2024-07-12 18:35:09.536 - warn: psa.0 (19452) OldAPI Login failed, only relevant for non eletric cars

I used the sam logindata like in the app or in the browser.

Thanks for your help

Axel

API Fehler Opel

API Fehler Opel

Hallo, nach der Installation und der Eingabe der Credentials wird der Adapter grün und er werden alle Datenpunkte angelegt. Auch der Wagen mit der FIN wird gefunden und in einem Subfolder angelegt. Allerdings werden alle darunter liegenden Datenpunkte nur mit der URL des API-Requests gefüllt.

Der Wagen ist ein Opel Corsa Elektro (Bj 2022)

Hier der Log (noch nicht im Debug-Modus)

300241013_2225327010966611_2225110561893387925_n

Versions:

  • Adapter version: v0.0.10
  • JS-Controller version: 4.0.23
  • Node version: v16.16.0
  • Operating system: Debian Buster

Please confirm functionality of release 0.0.11

The current stable verion of this adapter is 0.0.11.

Please let us know if this release is fully functional or the adapter ii working only when using newer Release currently not availabel at stable repository.

According to this topic https://forum.iobroker.net/topic/39423/psa-connected-car-api-adapter-f%C3%BCr-peugeot/34 the adapter does nogt work with release 0.0.11 and even 0,0.12.

Please give some feedback and let us know if current stable release 0.0.11 is functional an the info from forum / the issues are mincorrect or minor problems.

If there is no reaction / statement until 20.4.2024 release 0.0.11 will be removed from stable repository.

keine Verbindung mehr zu Opel

Hallo,

seit einigen Tagen wird keine Verbindung mehr zu Opel aufgebaut, ich will den Ladezustand eines Mokka-e abfragen, bisher hat immer alles gut funktioniert, hab auch schon die 0.0.12 probiert mit dem gleichen Ergebnis:

psa.0 | 2024-01-13 10:12:53.363 | warn | OldAPI Login failed, only relevant for non eletric cars
-- | -- | -- | --
psa.0 | 2024-01-13 10:12:53.362 | warn | {"code":"495","message":"Invalid or expired client certificate"}
psa.0 | 2024-01-13 10:12:53.362 | warn | receive old api failed
psa.0 | 2024-01-13 10:12:53.361 | warn | AxiosError: Request failed with status code 495
psa.0 | 2024-01-13 10:12:53.096 | warn | {"code":"495","message":"Invalid or expired client certificate"}
psa.0 | 2024-01-13 10:12:53.096 | warn | receive new api failed
psa.0 | 2024-01-13 10:12:53.095 | warn | AxiosError: Request failed with status code 495
psa.0 | 2024-01-13 10:12:52.108 | error | Login failed
psa.0 | 2024-01-13 10:12:52.107 | error | {"error_description":"Internal Server Error","error":"server_error"}
psa.0 | 2024-01-13 10:12:52.106 | error | Login failed
psa.0 | 2024-01-13 10:12:52.106 | error | AxiosError: Request failed with status code 400
psa.0 | 2024-01-13 10:12:51.551 | info | starting. Version 0.0.11 in C:/Program Files/ioBroker/node_modules/iobroker.psa, node: v16.15.1, js-controller: 4.0.24

Ist das Problem bekannt, gibt es eine Lösung?

Compatibility check to js-controller 4.0

Dear Adapter developer,

with js-controller 4.0 object definitions are now also checked that min/max in only provided for number/mixed objects and that the type of the default value matches to the object type.

If something is not correct this is logged as 'warning' or 'info' log.

Please also make sure to update to the lastest @iobroker/testing dependency 2.5.4 or to accept the PR from Apollon77 for legacy testing!

Please spent some time to verify your adapter by ideally starting with a fresh instance and do some actions and verify the log. If you see a warn or info log there from these checks please adjust the adapter and fix the relevant cases.

For questions please refer to ioBroker/ioBroker.js-controller#1749

Please close the issue after you checked it.

Thank you very much for your support to get the best experience for the growing numbers of ioBroker users!

Daten fehlen

Describe the bug
Hallo und guten Tag. Seit heute habe ich den neuen Astra (nicht elektrisch). Ich konnte das Auto mit der Opelapp verbinden und auch die Daten zum Fahrzeug auslesen. In der App sind folgende Daten enthalten.

-Kilometerstand Total
-Fahrtenbuch mit Fahrzeit, Entfernung, Durchschnittsverbrauch uvm.
-Verbleibende Reichweite

Leider kann ich in dem Adapter nur den Kilometerstand total auslesen. Das ganze ist unter Apinew zu finden. Apiold ist leer.

Gibt es eine Möglichkeit an die anderen Daten ranzukommen?

To Reproduce
----NA----
Expected behavior
Mehr Daten aus der API

Screenshots & Logfiles
Kann ich gerne auf Anfrage posten.

Versions:

psa v0.0.11
Additional context

Viele liebe Grüße und Danke für den Adapter!!!

401 Authentication error since some days

Describe the bug
A clear and concise description of what the bug is.

Since some days i got the error:

psa.0 2022-09-20 08:41:35.480 warn {"errors":{"401":"UNAUTHORIZED"}}
psa.0 2022-09-20 08:41:35.478 warn AxiosError: Request failed with status code 401

But I can login normally into the Peugeot APP so no issue with the passowrd.
I checked the password multiple times

also updated to .11 version beta but doesn´t help.

Does anybody else have this problem ?

Old Cars are shown

Describe the bug
Old leasing cars that are deleted in the my-opel App are still shown.
Opel sais the links are not in my profile anymore.
Where are the informations picked from?
I hope you can help me because it creates a lot of log entries.

Versions:

  • Adapter version: V0.0.11
  • JS-Controller version: V6.1.4
  • Node version:
  • Operating system: docker

Error after updating the IO Broker Script Host to version 5.0.12

Hello,

after I updated the script host to version 5.0.12 today, the following errors occur:

psa.0 2023-09-18 21:04:28.486 warn {"code":"495","message":"Invalid or expired client certificate"}
psa.0 2023-09-18 21:04:28.486 warn receive new api failed
psa.0 2023-09-18 21:04:28.485 warn AxiosError: Request failed with status code 495
psa.0 2023-09-18 21:04:28.451 warn OldAPI Login failed, only relevant for non eletric cars
psa.0 2023-09-18 21:04:28.450 warn {"code":"495","message":"Invalid or expired client certificate"}
psa.0 2023-09-18 21:04:28.449 warn receive old api failed
psa.0 2023-09-18 21:04:28.448 warn AxiosError: Request failed with status code 495
psa.0 2023-09-18 21:04:27.914 info Login successful
psa.0 2023-09-18 21:04:24.522 info starting. Version 0.0.11 in /opt/iobroker/node_modules/iobroker.psa, node: v16.20.2, js-controller: 5.0.12

Plattform: linux
Betriebssystem: linux
Architektur: arm
CPUs: 4
Geschwindigkeit: 1800 MHz
Modell: unknown
RAM: 3.7 GB
System-Betriebszeit: 1 T. 02:36:38
Node.js: v16.20.2
time: 1695063645198
timeOffset: -120
NPM: 8.19.4
Adapter-Anzahl: 498
Datenträgergröße: 29.0 GB
Freier Festplattenspeicher: 22.4 GB
Aktive Instanzen: 12

Thanks for your help

Reinhard

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.