Skip to content

feat: Additional CLI Commands #651

@jasonacox

Description

@jasonacox

Add the ability to control devices via CLI:

# Flip DP 1 (power) ON, then OFF again (adjust IP/ID/KEY/VER/TYPE)
python -m tinytuya set --id YOUR_DEVICE_ID --key YOUR_LOCAL_KEY --ip 192.168.20.51 \
  --dps 1 --set true --ver 3.4 --type device22

python -m tinytuya set --id YOUR_DEVICE_ID --key YOUR_LOCAL_KEY --ip 192.168.20.51 \
  --dps 1 --set false --ver 3.4 --type device22

# Now ask for status
python -m tinytuya status --id YOUR_DEVICE_ID --key YOUR_LOCAL_KEY --ip 192.168.20.51 \
  --ver 3.4 --type device22 --debug

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions