Skip to content

CLI command feature temperature_offset doesn't accept negative values #1617

@mash-graz

Description

@mash-graz

The CLI parser doesn't accept negative values for temperature_offset correction:

for example:

kasa --host 192.168.1.168 --username xxx --password xxx feature --name zimmer temperature_offset -4
Discovering device 192.168.1.168 for 10 seconds
Usage: kasa feature [OPTIONS] [NAME] [VALUE]
Try 'kasa feature --help' for help.

Error: No such option: -4

while positive values and zero work as expected:

kasa --host 192.168.1.168 --username xxx --password xxx feature --name zimmer temperature_offset 4
Discovering device 192.168.1.168 for 10 seconds
Targeting child device zimmer
Changing temperature_offset from 0 to 4
New state: 4

By trial and error I could figure out this undocumented input sequence as temporary workaround:

kasa --host 192.168.1.168 --username xxx --password xxx feature --name zimmer temperature_offset -- -4
Discovering device 192.168.1.168 for 10 seconds
Targeting child device zimmer
Changing temperature_offset from -3 to -4
New state: -4

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