Overview
| Comment: | Added README with limited documentation |
|---|---|
| Downloads: | Tarball | ZIP archive |
| Timelines: | family | ancestors | descendants | both | trunk |
| Files: | files | file ages | folders |
| SHA3-256: |
c50aa58a6427d86585ae3fcaad093656 |
| User & Date: | rkeene on 2020-04-28 18:46:29.574 |
| Other Links: | manifest | tags |
Context
|
2020-04-29
| ||
| 00:34 | limitlessled_rf v0.1 check-in: 1e49925e09 user: rkeene tags: 0.1, trunk | |
|
2020-04-28
| ||
| 18:46 | Added README with limited documentation check-in: c50aa58a64 user: rkeene tags: trunk | |
| 18:20 | Further improved delays check-in: 989cbde578 user: rkeene tags: trunk | |
Changes
Added README.md version [c4976858c8].
Modified __init__.py
from [42d9b40b13]
to [796fb9f34b].
| ︙ | |||
455 456 457 458 459 460 461 462 463 464 465 466 467 468 | 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 | + + + + + + + + + + |
def _step_temperature(self, temperature, temperature_min, temperature_max, zone = None):
# Select the appropriate zone before sending the steps
# to ensure they reach the correct bulbs
self.on(zone, try_hard = False)
return self._step_value(temperature, temperature_min, temperature_max, 'temperature', zone)
def _max_brightness(self, zone = None):
if zone is None:
message = {'button': 'max'}
else:
message = {
'button': 'zone_max',
'zone': zone
}
return self._send_button(message)
def _rgb_to_hue(self, r, g, b):
r = r / 255.0
g = g / 255.0
b = b / 255.0
cmax = max(r, max(g, b))
cmin = min(r, min(g, b))
|
| ︙ | |||
526 527 528 529 530 531 532 | 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 | - + |
self._debug("Setting brightness to {}".format(brightness))
if brightness == 0:
self._debug("Really setting to off")
return self.off(zone)
if brightness == 255:
if 'has_max_brightness' in self._config['features']:
|
| ︙ | |||
622 623 624 625 626 627 628 | 632 633 634 635 636 637 638 639 640 641 642 643 644 645 | - - - - - - - - - - - - - | # Increase retries and delay for on/off to ensure # that these important messages are delivered if try_hard: message['retries'] = self._config['retries'] * 2 message['delay'] = self._config['delay'] * 2 |
| ︙ |