Skip to content

Setting outputLimit to negative value: allowed but unintended effect #47

@geostag

Description

@geostag

The Zendure SDK is quite fine and enables me to accurately control the device based on my local data and algorithms. Thanks a lot for implementing and documenting this!

Today I realized by accident, that it is possible to set "outputLimit" to negative values. The effect is, that Zendure PF 800 sets the real output power to some very high value - at least I see high output power (more then 500W) on the plug.

I would expect, that negative values are rejected for outputLimit.

To reproduce:

curl -X POST "http://<device-ip>/properties/write" \
  -H "Content-Type: application/json" \
  -d '{"sn": "your_device_sn", "properties": { "outputLimit": -5 }}'

Sub-issues

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions