Skip to content

LED strips effects are not supported (was LEDs is not turning on after switching on) #191

@iprodanovbg

Description

@iprodanovbg

After switching on with kasa --host 192.168.0.17 on command the LEDs are not turning on but when I check with kasa --host 192.168.0.17 state the status indicated ON (same status in the Kasa android app)

python-kasa version kasa, version 0.4.0.dev3
python version 3.8.10
OS Ubuntu 20.04.2 LTS

Dump when I use python-kasa cli:

{
  "smartlife.iot.common.emeter": {
    "get_daystat": {
      "day_list": [
        {
          "day": 14,
          "energy_wh": 5,
          "month": 8,
          "year": 2021
        },
        {
          "day": 16,
          "energy_wh": 103,
          "month": 8,
          "year": 2021
        }
      ],
      "err_code": 0
    },
    "get_monthstat": {
      "err_code": 0,
      "month_list": [
        {
          "energy_wh": 108,
          "month": 8,
          "year": 2021
        }
      ]
    },
    "get_realtime": {
      "err_code": 0,
      "power_mw": 16760,
      "total_wh": 103
    }
  },
  "system": {
    "get_sysinfo": {
      "LEF": 1,
      "active_mode": "none",
      "alias": "light strip",
      "ctrl_protocols": {
        "name": "Linkie",
        "version": "1.0"
      },
      "description": "Kasa Smart Light Strip, Multicolor",
      "dev_state": "normal",
      "deviceId": "***",
      "disco_ver": "1.0",
      "err_code": 0,
      "hwId": "***",
      "hw_ver": "2.0",
      "is_color": 1,
      "is_dimmable": 1,
      "is_factory": false,
      "is_variable_color_temp": 1,
      "latitude_i": ***,
      "length": 16,
      "light_state": {
        "brightness": 100,
        "color_temp": 9000,
        "hue": 0,
        "mode": "normal",
        "on_off": 1,
        "saturation": 0
      },
      "lighting_effect_state": {
        "brightness": 100,
        "custom": 1,
        "enable": 0,
        "id": "yMwcNpLxijmoKamskHCvvravpbnIqAIN",
        "name": "Aurora 1"
      },
      "longitude_i": ***,
      "mic_mac": "C0:06:C3:**:**:**",
      "mic_type": "IOT.SMARTBULB",
      "model": "KL430(UN)",
      "oemId": "***",
      "preferred_state": [
        {
          "brightness": 100,
          "color_temp": 9000,
          "hue": 0,
          "index": 0,
          "mode": 1,
          "saturation": 0
        },
        {
          "brightness": 100,
          "color_temp": 0,
          "hue": 217,
          "index": 1,
          "mode": 1,
          "saturation": 99
        },
        {
          "brightness": 100,
          "color_temp": 0,
          "hue": 194,
          "index": 2,
          "mode": 1,
          "saturation": 50
        },
        {
          "brightness": 100,
          "color_temp": 0,
          "hue": 277,
          "index": 3,
          "mode": 1,
          "saturation": 86
        }
      ],
      "rssi": -42,
      "status": "new",
      "sw_ver": "1.0.8 Build 210121 Rel.084339"
    }
  }
}

Dump when I use Kasa android app:

{
    "smartlife.iot.common.emeter": {
      "get_daystat": {
        "day_list": [
          {
            "day": 14,
            "energy_wh": 5,
            "month": 8,
            "year": 2021
          },
          {
            "day": 16,
            "energy_wh": 103,
            "month": 8,
            "year": 2021
          }
        ],
        "err_code": 0
      },
      "get_monthstat": {
        "err_code": 0,
        "month_list": [
          {
            "energy_wh": 108,
            "month": 8,
            "year": 2021
          }
        ]
      },
      "get_realtime": {
        "err_code": 0,
        "power_mw": 16760,
        "total_wh": 103
      }
    },
    "system": {
      "get_sysinfo": {
        "LEF": 1,
        "active_mode": "none",
        "alias": "light strip",
        "ctrl_protocols": {
          "name": "Linkie",
          "version": "1.0"
        },
        "description": "Kasa Smart Light Strip, Multicolor",
        "dev_state": "normal",
        "deviceId": "***",
        "disco_ver": "1.0",
        "err_code": 0,
        "hwId": "***",
        "hw_ver": "2.0",
        "is_color": 1,
        "is_dimmable": 1,
        "is_factory": false,
        "is_variable_color_temp": 1,
        "latitude_i": ***,
        "length": 16,
        "light_state": {
          "brightness": 100,
          "color_temp": 9000,
          "hue": 0,
          "mode": "normal",
          "on_off": 1,
          "saturation": 0
        },
        "lighting_effect_state": {
          "brightness": 100,
          "custom": 1,
          "enable": 1,
          "id": "yMwcNpLxijmoKamskHCvvravpbnIqAIN",
          "name": "Aurora 1"
        },
        "longitude_i": ***,
        "mic_mac": "C0:06:C3:**:**:**",
        "mic_type": "IOT.SMARTBULB",
        "model": "KL430(UN)",
        "oemId": "***",
        "preferred_state": [
          {
            "brightness": 100,
            "color_temp": 9000,
            "hue": 0,
            "index": 0,
            "mode": 1,
            "saturation": 0
          },
          {
            "brightness": 100,
            "color_temp": 0,
            "hue": 217,
            "index": 1,
            "mode": 1,
            "saturation": 99
          },
          {
            "brightness": 100,
            "color_temp": 0,
            "hue": 194,
            "index": 2,
            "mode": 1,
            "saturation": 50
          },
          {
            "brightness": 100,
            "color_temp": 0,
            "hue": 277,
            "index": 3,
            "mode": 1,
            "saturation": 86
          }
        ],
        "rssi": -44,
        "status": "new",
        "sw_ver": "1.0.8 Build 210121 Rel.084339"
      }
    }
  }

If you compare both dump files you will see that one parameter is different system.lighting_effect_state.enable

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