python-broadlink icon indicating copy to clipboard operation
python-broadlink copied to clipboard

Problems with controlling LB1

Open Devorlon opened this issue 3 years ago • 2 comments

Hi, I installed the latest version from the dev branch and have ran:

./broadlink_cli --type 0x60c8 --host DEVICEIP --mac DEVICEMAC --switch ./broadlink_cli --type 0x60c8 --host DEVICEIP --mac DEVICEMAC --turnoff ./broadlink_cli --type 0x60c8 --host DEVICEIP --mac DEVICEMAC --turnon

and the two errors I get are:

AttributeError: 'lb1' object has no attribute 'check_power' AttributeError: 'lb1' object has no attribute 'set_power'

Is this the correct place to post this or should I open a new issue?

Devorlon avatar Oct 26 '21 10:10 Devorlon

I have both LB1 bulbs, and SP4M-US switches, and neither are working with python-broadlink.

I also am getting "no attribute" errors when trying to control devices.

I have even tried picking through the modules and manually importing device and then switch/bulb, running various combination of function calls to these scripts, trying to get a command to successfully send--but I have been unable to get control of the device, EXCEPT for being able to toggle the "lock" state on or off, which seems to work fine....

LanmanOne avatar Oct 26 '21 18:10 LanmanOne

Hi, I installed the latest version from the dev branch and have ran:

./broadlink_cli --type 0x60c8 --host DEVICEIP --mac DEVICEMAC --switch ./broadlink_cli --type 0x60c8 --host DEVICEIP --mac DEVICEMAC --turnoff ./broadlink_cli --type 0x60c8 --host DEVICEIP --mac DEVICEMAC --turnon

and the two errors I get are:

AttributeError: 'lb1' object has no attribute 'check_power' AttributeError: 'lb1' object has no attribute 'set_power'

Is this the correct place to post this or should I open a new issue?

Please read the (renewed) readme about lightbulbs. Lightbulbs have different commands...

MichielioZ avatar Oct 29 '21 20:10 MichielioZ