question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Problem with AddConsumptionOffset API Command

See original GitHub issue

Hi @ngardiner. I’m trying to integrate an unsupported home automation system (Loxone) with TWCManager. The home automation system supports sending POST commands, so I anticipate the best way will be using the AddConsumptionOffset command.

I’ve tried three independent methods to send the POST command -

  1. Via the home automation in-built facility,
  2. Via Node-Red,
  3. Directly from the command line.

curl -X POST -d '{ "offsetName": "WattsOffset", "chargeNowRate": -10000, "offsetUnit": "W" } http://10.1.1.21:8080/api/addConsumptionOffset

I’m attempting to set the chargeNowRate to -10000. I anticipate I should see Generation reflect 10kW, but nothing changes.

Can you please confirm the facility does work?

There’s a high likelihood I don’t know how to properly format the POST command.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
mikey4321commented, Nov 19, 2021

According to https://www.teslafi.com/firmware.php about 40% of AP1 cars they are tracking have a 2021 firmware. Suspect we just need to be patient or we all get it in this year’s Christmas update.

I’m on the same version as you - 2014 ap1 model S and 2020.48.37.

image

0reactions
ChutneyMarycommented, Nov 19, 2021

Thanks. For info, my old-ish 2015 Tesla Model S appears to have topped out with firmware at v2020.48.37.8. I don’t think I’ll see a firmware to support API controlled charge rate (but will be pleasantly surprised if it’s released).

Very thankful for your TWCManager though!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Issues with rest API Command: POST Install Client
I have following problem when I try a more complex password with chars like '#~' I got error: Request body is empty or...
Read more >
Kudu REST API Command endpoint error when executing ...
When trying to execute the POST to /api/command according to this description the following error occurs: PS C:\> $Result.
Read more >
REST API POST command not working - Forum
I'm following the API guide trying to create a new ticket using curl and the POST method. Any attempt results in error: "HTTP/1.1...
Read more >
Solved: execute show command via REST API error
Solved: Hi team, I am trying to get the output of "show running" command using live-stats via the REST API, i follow somebody's...
Read more >
Issue a TSO/E command with z/OSMF REST API
Issue a TSO/E command with z/OSMF REST API. You can use this operation to issue a TSO/E command and get a corresponding response....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found