Giter VIP home page Giter VIP logo

node-red-contrib-renault-ze's People

Contributors

dependabot[bot] avatar jlorenz86 avatar konne avatar lksp1 avatar watchforstock avatar

Stargazers

 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

node-red-contrib-renault-ze's Issues

accounts.accounts is not iterable

Hello,

First of all thank you for this work. :)
Everything has been going well for a few days.

Since yesterday I have this error: [renault-ze: Zoé] TypeError: accounts.accounts is not iterable

I have not been able to find the solution.
Maybe the API keys have changed or the authentication system is not the same.

Do you have an idea ?
Thank you in advance

Location: This feature is not technically supported by this gateway

Description
Requesting location info ends up in error 501: This feature is not technically supported by this gateway.

To Reproduce
Steps to reproduce the behavior:

  1. Place a ze node on your flow.
  2. Configure a debug node to output whole message.
  3. Inject a timestamp into ze node.
  4. See message output.

Expected behavior
I would expect correct location information.

Sample

{
"_msgid":"25e13355.7f1f5c",
"payload":{
"type":"TECHNICAL",
"messages":[
{
"code":"err.tech.501",
"message":"{"errors":[{"status":"501","code":"error.internal","detail":"This feature is not technically supported by this gateway"}]}"
}
],
"errors":[
{
"errorCode":"err.tech.501",
"errorMessage":"{"errors":[{"status":"501","code":"error.internal","detail":"This feature is not technically supported by this gateway"}]}"
}
],
"error_reference":"TECHNICAL"
},
"topic":"location"
}

Renault has changed API access?

Describe the bug
this is not a bug report regarding this node, but rather asking if someone knows whats going on? The node is not receiving values any more (message: "{"errors":[{"status":"403","code":"security.access","detail":"Access is denied for this resource"}]}") and the smartphone app is not showing values either.

To Reproduce
please open your phone app or look into the node values and check if you can see anything.

Expected behavior
Of course I am looking for a solution to get this going again.

Screenshots
grafik

Version (please complete the following information):

  • Node-Red node: 1.4.2

Additional context
the website https://www.services.renault-ze.com/#/user/login seems to be gone, also.

Mileage not working anymore

since 12:00 today mileage is not retrieving anymore. (/cockpit endpoint)

It gives me this message back:

message: "you should not be there but well done for the effort"

Any ideas?

Response error from Renault Zoe node

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

FetchError: invalid json response body at https://renault-wrd-prod-1-euw1-myrapp-one.s3-eu-west-1.amazonaws.com/configuration/android/config_en_GB.json reason: Unexpected token < in JSON at position 0

To Reproduce
Steps to reproduce the behavior:

Inject node with timestamp
Node configured with username and password

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

Expected behavior
A clear and concise description of what you expected to happen.

JSON payload with attributes

Screenshots
If applicable, add screenshots to help explain your problem.

Version (please complete the following information):
1.3.1

  • OS: [e.g. iOS]
  • Browser: [e.g. chrome, safari]
  • Node-Red: [e.g. 1.x]
    V2.2.2

Additional context
Add any other context about the problem here.

Example flows

add example flows like

examples\foo.json
examples\bar.json

for:

  1. simple fetch status
  2. start / stop hvac

write access i.e. start/stop charging

Is your feature request related to a problem? Please describe.
Apart from the information about current data (i.e. charge state) it would be great if charging could also be started/stopped via node-red.

Describe the solution you'd like
Make POST requests towards the API to also control the car rather than just monitoring it.

Describe alternatives you've considered
pyze already has write requests, but it doesn't integrate into node-red

not working

Hi you already wrote that you have no access and can not implement the needed changes.

I can now make a new repo and a new npm but this pollute the packages.
Can you please answer on my request:

@watchforstock would it be okay for you if you transfer the repo and the npm package to me so that I can make the rework and take care of publishing new releases.

Uncaught Exception: invalid json response body

I am running the node (Version 1.4.1) on a node-red Version v3.0.2.
Since some time an uncaught exception of the this node causes node-red to crash.

In the syslog I find the following entries (account entry behind /accounts/ I replaced with xxx:

Jan 25 08:44:08 Node-Red Node-RED[400378]: 25 Jan 08:44:08 - [red] Uncaught Exception:
Jan 25 08:44:08 Node-Red Node-RED[400378]: 25 Jan 08:44:08 - [error] FetchError: invalid json response body at https://api-wired-prod-1-euw1.wrd-aws.com/commerce/v1/accounts/xxxxxxxxxxxxxxxx/kamereon/kca/car-adapter/v2/cars/VF1AG000568538007/battery-status?country=DE reason: Unexpected token < in JSON at position 0
Jan 25 08:44:08 Node-Red Node-RED[400378]: at /root/.node-red/node_modules/node-fetch/lib/index.js:273:32
Jan 25 08:44:08 Node-Red Node-RED[400378]: at runMicrotasks ()
Jan 25 08:44:08 Node-Red Node-RED[400378]: at processTicksAndRejections (node:internal/process/task_queues:96:5)
Jan 25 08:44:08 Node-Red systemd[1]: nodered.service: Main process exited, code=exited, status=1/FAILURE
Jan 25 08:44:08 Node-Red systemd[1]: nodered.service: Failed with result 'exit-code'.

After the restart data is provided again without any problems. I did not recognized any cause of the invalid json response (e.g. loss of internet connection).

If you need further information, I will try to collect them.

TypeError: Cannot read property 'cookieValue' of undefined from Renault-ze node

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

To Reproduce
Steps to reproduce the behavior:

  1. Go to 'basic flow', add email and password
  2. Click on 'inject'
  3. Go to 'debug node'
  4. See error: "TypeError: Cannot read property 'cookieValue' of undefined"

Expected behavior
data from API

Screenshots
renault-ze

Version (please complete the following information):

  • OS: win11
  • Browser: Chrome
  • Node-Red: 1.1.3

Additional context
If I go to "http://services.renault-ze.com/user/login" page not found!

Works also with Dacia Spring

Hi this Flow works also with Dacia Spring electric car.

_[
    {
        "id": "696fb772f2705743",
        "type": "inject",
        "z": "e5b8e02b7ea79337",
        "name": "",
        "props": [
            {
                "p": "topic",
                "vt": "str"
            }
        ],
        "repeat": "",
        "crontab": "",
        "once": false,
        "onceDelay": 0.1,
        "topic": "location",
        "x": 100,
        "y": 100,
        "wires": [
            [
                "ab22e82ef6c1197c"
            ]
        ]
    },
    {
        "id": "311a09c233eacc10",
        "type": "inject",
        "z": "e5b8e02b7ea79337",
        "name": "",
        "props": [
            {
                "p": "topic",
                "vt": "str"
            }
        ],
        "repeat": "",
        "crontab": "",
        "once": false,
        "onceDelay": 0.1,
        "topic": "battery-status",
        "x": 120,
        "y": 140,
        "wires": [
            [
                "ab22e82ef6c1197c"
            ]
        ]
    },
    {
        "id": "e57815ec55a19bd2",
        "type": "inject",
        "z": "e5b8e02b7ea79337",
        "name": "",
        "props": [
            {
                "p": "topic",
                "vt": "str"
            }
        ],
        "repeat": "",
        "crontab": "",
        "once": false,
        "onceDelay": 0.1,
        "topic": "hvac-status",
        "x": 110,
        "y": 180,
        "wires": [
            [
                "ab22e82ef6c1197c"
            ]
        ]
    },
    {
        "id": "dba3aeb3a2dd7668",
        "type": "inject",
        "z": "e5b8e02b7ea79337",
        "name": "",
        "props": [
            {
                "p": "topic",
                "vt": "str"
            }
        ],
        "repeat": "",
        "crontab": "",
        "once": false,
        "onceDelay": 0.1,
        "topic": "cockpit",
        "x": 90,
        "y": 220,
        "wires": [
            [
                "ab22e82ef6c1197c"
            ]
        ]
    }
]_

Pause charging

Hi,
it is possible to send commands like Pause charging or turn on the heater?

cookie

Node Red:
"TypeError: Cannot read property 'cookieValue' of undefined"
if I click on one of th efour input nodes

Windows 10
Chrome

TypeError: accounts.accounts is not iterable

Hi,

Thanks for this great node.

I often see the error "TypeError: accounts.accounts is not iterable" in the console"

I think it's caused by Renault API being unavailable.

Could it be possible to catch this error and return a specific payload (to be used in the flow for notification for exemple) ?

Have a nice day !

Rudy

hvac-schedule not working

Describe the bug
Trying with hvac-schedule to start warming of the car.

To Reproduce
use inject node with msg.topic set to "hvac-schedule"

Expected behavior
Warmer car :)

Version (please complete the following information):
1.4.2
docker container nodered/node-red:latest-16

Additional context
message: "{"errors":[{"status":"Not Implemented","code":"501","title":"Not supported Feature","detail":"This feature is not technically supported by this gateway"}]}"

Username & Password data from DB

Hy, first of all, thank you for your work in this node!

Can you please help me, clarify if its possible to get data from a DB, or other nodes, and fill the username and password fields in the node?

Best regards

TypeError: Cannot read property 'split' of undefined

Since midday I get the following error:

TypeError: Cannot read property 'split' of undefined

Up until that time everything worked fine.

  • OS: raspberry / raspbian Linux pi1 4.19.97-v7+ #1294 SMP Thu Jan 30 13:15:58 GMT 2020 armv7l GNU/Linux
  • Browser: firefox
  • Node-Red: 1.0.3

Any halp? Many thanks in advance.

accounts.accounts is not iterable

Hello,

First of all thank you for this work. Since yesterday I have this error: TypeError: accounts.accounts is not iterable
I have not been able to find the solution.
Do you have an idea ? Thank you in advance

Error: "TypeError: Cannot read properties of undefined (reading 'cookieValue')"

Get the response "TypeError: Cannot read properties of undefined (reading 'cookieValue')"
back when info is requested on the server

Press the trigger or let the timer do it
Debug on output of renault-ze module
Output gives: "TypeError: Cannot read properties of undefined (reading 'cookieValue')"

Expected behavior
Expect car info instead

Screenshots
none

Version (please complete the following information):

node-red-contrib-renault-ze 1.4.2
node red 3.0.2

Additional context

Implement Missing API

  • hvac-status

  • charge-mode

  • charges?start ...

  • charge-history

  • hvac-sessions

  • hvac-history

  • charge-schedule

  • hvac-schedule

  • notification-settings

  • PUSH -> actions

Node-RED integration no longer working

Describe the bug
It looks like there's been a change on the Renault website since neither this Node-RED contrib nor the Home Assistant integration is working.

To Reproduce
Inject charge mode (or any previously working parameter) into the contrib node with correct credentials fails

Expected behavior
Doing the above would result in valid data in the subsequent debug node

Screenshots
Debug message "TypeError: accounts.accounts is not iterable"

Version (please complete the following information):

  • OS: Win11
  • Browser: Edge
  • Node-Red: V3.0.2

Additional context
Add any other context about the problem here.

Nodered reboot when a wrong token is received

Describe the bug
When a unexpected token occurs, node-red reboots.

error log nodered:

26 Jan 11:50:01 - [red] Uncaught Exception:
26 Jan 11:50:01 - [error] FetchError: invalid json response body at https://api-wired-prod-1-euw1.wrd-aws.com/commerce/v1/accounts/"LONG CODE"/kamereon/kca/car-adapter/v2/cars/"MYVIN"/battery-status?country=DE reason: Unexpected token < in JSON at position 0
at /data/node_modules/node-fetch/lib/index.js:273:32
at runMicrotasks ()
at processTicksAndRejections (node:internal/process/task_queues:96:5)
26 Jan 11:50:04 - [info]
Welcome to Node-RED

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.