MAK
7 February 2022 17:53
1
Hi, I'm building a simple solution to turn on ScheduledDeparture for one day only (which the Tesla app cannot do).
flow is simple: setScheduledDeparture on, wait for next day, setScheduledDeparture off
My problem: the tesla node throws
TypeError: tjs.setScheduledDepartureAsync is not a function
My setup:
the node is configured, selected command is " setScheduledDeparture".
I inject this message
{"_msgid":"c7e5c2b645ea2f52",
"payload":1644252929966,
"topic":"",
"commandArgs":{
"enable":true,
"departure_time":420,
"preconditioning_enabled":true,
"preconditioning_weekdays_only":false,
"off_peak_charging_enabled":false,
"off_peak_charging_weekdays_only":false,
"end_off_peak_time":360
}
}
I also tried with only one commandArgs: "enable", still not working, same error
I also tried with no commandArgs and get another error: "TypeError: Cannot read property 'enable' of undefined" (which is expected)
every other tesla node (eg setChargeLimit) is working
car is awake
Any hint where to start debugging?
Are you using the latest version of this node?
MAK
7 February 2022 20:35
3
node-red-contrib-tesla 2.0.0 on node red 2.1.5
MAK
8 February 2022 19:44
4
Can anyone please confirm that the node is working with setScheduledDeparture and post a working json for the parameter?
Thanks
m661
8 February 2022 22:34
5
Hi @MAK
I tried just with enable, and it is not working for me. I also tried the same command with setScheduledCharging, and it is working.
Using version 2.0 and Nodered 2.1.4
Mario
MAK
8 February 2022 23:31
6
Thanks for confirming. I created an issue on Github.
opened 08:42PM - 08 Feb 22 UTC
Hi, I'm building a simple solution to turn on ScheduledDeparture for one day onl… y (which the Tesla app cannot do).
My flow is a simple one: setScheduledDeparture on, wait for next day 11pm , setScheduledDeparture off
My problem: I can't get the Command setScheduledDeparture to work. The node throws
`TypeError: tjs.setScheduledDepartureAsync is not a function`
My setup:
- the node is configured, selected command is " setScheduledDeparture".
- I inject this message
```
{"_msgid":"c7e5c2b645ea2f52",
"payload":1644252929966,
"topic":"",
"commandArgs":{
"enable":true,
"departure_time":420,
"preconditioning_enabled":true,
"preconditioning_weekdays_only":false,
"off_peak_charging_enabled":false,
"off_peak_charging_weekdays_only":false,
"end_off_peak_time":360
}
}
```
- I also tried with only one commandArgs: "enable", still not working, same error
- I also tried with no commandArgs and get another error: "TypeError: Cannot read property 'enable' of undefined" (which is expected)
- every other tesla node (eg setChargeLimit) is working
- car is awake
What would be a working json inject? Or is this a defect?
GaPhi
9 February 2022 10:58
7
Use the compatible teslajs library I have updated (@gaphi /teslajs). The pull to the main branch is not available yet I think.
This command works perfectly as I use it every day with a much more complex logic (use my Google calendar events, electricity tariff, location of the car, day-off, state of the car, etc...)
MAK
9 February 2022 23:15
8
so I should use your node red node (1.0.6-0) instead of the regular (2.0.0)? Does it have auto-wakeup already?
system
Closed
10 April 2022 23:16
9
This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.