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

Nothing Happens?

Open roshambo919 opened this issue 3 years ago • 0 comments

Moving this issue to the new repository. I'm able to log in and apparently connect to the mesh. When I get attributes of my bulbs, it has the correct name of the bulbs, but for all the bulbs, it tells me that everything (brightness, temperature, etc.) are set to zero. Related: when I then go to set device attributes like brightness or power, nothing happens.

Here's a print out of one bulb after it connects to the network: image

Maybe important (?) I noticed the "deviceType" for the bulbs are not all the same, even though they're all the same bulb. I get deviceTypes from 7, 22, 31, and 32. I have around 12 bulbs.

Here's a small example of a simple test script that connects but nothing happens.

print('Logging in...')
devices = laurel.laurel(username, password)
print('Successfully logged in!')
devices = devices.devices

idx = 0
print('Name: {}\nMAC: {}\nType: {}\nBrightness: {}\nTemperature: {}\n'.format(
    devices[idx].name,
    devices[idx].mac,
    devices[idx].type,
    devices[idx].brightness,
    devices[idx].temperature))

print('Connecting...')
devices[idx].network.connect(idx_start = idx)

print('Setting brightness')
devices[idx].set_brightness(10)

print('Setting power')
devices[idx].set_power(False)

roshambo919 avatar May 01 '21 12:05 roshambo919