SmartHashtag icon indicating copy to clipboard operation
SmartHashtag copied to clipboard

API call to start/stop charging and discharging

Open p-manent opened this issue 1 year ago • 8 comments

Hello Bastian,

do you know if there is any API switch to start/stop charging and discharging (new from Smart OS 1.4)

The #1/#3 now supports V2L At the moment you need to "press the discharging button" manually to start discharging.

It would be great to start/stop this (also even the charging) via the API

p-manent avatar Jul 21 '24 09:07 p-manent

I will look into it. Thanks for the information!

DasBasti avatar Jul 21 '24 14:07 DasBasti

that is what we used in hello # to start and stop charging

        let path = "/remote-control/vehicle/telematics/" + vin
        
        let timeStamp = String(Date().millisecondsSince1970)
        
        let serviceParameters: [[String: Any]] = [
            [
                "key": "operation",
                "value": start ? "1" : "0"
            ],
            [
                "key": start ? "rcs.restart" : "rcs.terminate",
                "value": "1"
            ]
        ]
        
        let json: [String: Any] = [
            "command": "start",
            "creator": "tc",
            "operationScheduling": [
                "scheduledTime": NSNull(),
                "interval": 0,
                "occurs": 1,
                "recurrentOperation": 0,
                "duration": 6
            ],
            "serviceId": "rcs",
            "serviceParameters": serviceParameters,
            "timeStamp": timeStamp
        ]

chriscatuk avatar Aug 01 '24 21:08 chriscatuk

Hello Chris,

I know it´s not yet in the hello app but is there a possibility to start/stop "discharge", too?

p-manent avatar Aug 04 '24 14:08 p-manent

Hello Chris,

I know it´s not yet in the hello app but is there a possibility to start/stop "discharge", too?

I will try guessing what API request could work. There's nothing yet in the official app to capture.

In SmartOS 1.4.0 The power is not even showing. It stays at 0 amps. I will check with 1.4.1

chriscatuk avatar Aug 18 '24 23:08 chriscatuk

Hello Chris, I know it´s not yet in the hello app but is there a possibility to start/stop "discharge", too?

I will try guessing what API request could work. There's nothing yet in the official app to capture.

In SmartOS 1.4.0 The power is not even showing. It stays at 0 amps. I will check with 1.4.1

Hello, any news ? We are at 1.5.2 :). Will be great to have also a value KW of discharging

lucabacchipg avatar Mar 16 '25 12:03 lucabacchipg

If possible, I would love to control the maximum charging current as well. Together with this blueprint, it would make a wonderful smart solar charging process

fabbermen avatar Jun 28 '25 06:06 fabbermen

I don't think you can set the charge current. Can you do that in the original app?

DasBasti avatar Oct 10 '25 18:10 DasBasti

The charging current limit is not available in the app. However, it's now possible to adjust the SOC limit

fabbermen avatar Oct 24 '25 04:10 fabbermen