Title: Add light.alpha() method · Issue #20 · tfriedel/python-lightify · GitHub
Open Graph Title: Add light.alpha() method · Issue #20 · tfriedel/python-lightify
X Title: Add light.alpha() method · Issue #20 · tfriedel/python-lightify
Description: I can use the various accessor methods for all properties, except alpha. For alpha I need to to use raw_values tuple, would be nice to add aplha() to the Light class to avoid need to handle raw_values(), e.g. to avoid something like this...
Open Graph Description: I can use the various accessor methods for all properties, except alpha. For alpha I need to to use raw_values tuple, would be nice to add aplha() to the Light class to avoid need to handle raw_val...
X Description: I can use the various accessor methods for all properties, except alpha. For alpha I need to to use raw_values tuple, would be nice to add aplha() to the Light class to avoid need to handle raw_val...
Opengraph URL: https://github.com/tfriedel/python-lightify/issues/20
X: @github
Domain: patch-diff.githubusercontent.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Add light.alpha() method","articleBody":"I can use the various accessor methods for all properties, except alpha. For `alpha` I need to to use raw_values tuple, would be nice to add `aplha()` to the `Light` class to avoid need to handle `raw_values()`, e.g. to avoid something like this:\r\n\r\n```\r\n\t\t\t# Alpha is only available from raw_values()\r\n\t\t\t(onoff, lum, temp, red, green, blue, alpha) = light.raw_values()\r\n\r\n\t\t\t# if online is false then override on to be false, the light can't be on if it's not even powered on \r\n\t\t\tstate = {\r\n\t\t\t\t\"online\": light.reachable(),\r\n\t\t\t\t\"lastSeen\": light.last_seen(),\r\n\t\t\t\t\"on\": (light.reachable() and light.on()),\r\n\t\t\t\t\"lum\": light.lum(),\r\n\t\t\t\t\"temp\": light.temp(),\r\n\t\t\t\t\"colour\": {\r\n\t\t\t\t\t\"red\": light.red(),\r\n\t\t\t\t\t\"green\": light.green(),\r\n\t\t\t\t\t\"blue\": light.blue()\r\n\t\t\t\t},\r\n\t\t\t\t\"alpha\": alpha\r\n\t\t\t}\r\n```","author":{"url":"https://github.com/durera","@type":"Person","name":"durera"},"datePublished":"2019-04-02T16:59:24.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":2},"url":"https://github.com/20/python-lightify/issues/20"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:62afd6f1-4735-7d07-4d85-44e1bb1acd46 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | ACCE:119490:176524:20B313:698DFD61 |
| html-safe-nonce | b9ab7b955610bb7e9d1ff48b73d24c8b4b41e5fe3220a111ab1ba72008baa720 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBQ0NFOjExOTQ5MDoxNzY1MjQ6MjBCMzEzOjY5OERGRDYxIiwidmlzaXRvcl9pZCI6IjU5MTk3MDY3NTY3MzMwNzQ3ODUiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 2bd1c38ba7cb125538575674b504d28c6b54d6d99f7fc1ce952ec26d07b99543 |
| hovercard-subject-tag | issue:428339989 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/tfriedel/python-lightify/20/issue_layout |
| twitter:image | https://opengraph.githubassets.com/7bccef4185c846a8ebea18d1c1188af647806dbd70bbb93a2094f7e6d1b606f2/tfriedel/python-lightify/issues/20 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/7bccef4185c846a8ebea18d1c1188af647806dbd70bbb93a2094f7e6d1b606f2/tfriedel/python-lightify/issues/20 |
| og:image:alt | I can use the various accessor methods for all properties, except alpha. For alpha I need to to use raw_values tuple, would be nice to add aplha() to the Light class to avoid need to handle raw_val... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | durera |
| hostname | github.com |
| expected-hostname | github.com |
| None | 4d76af840d3174ae6e2538f47f7ea4876a854b6ac4e6fe849e30bdd90242399f |
| turbo-cache-control | no-preview |
| go-import | github.com/tfriedel/python-lightify git https://github.com/tfriedel/python-lightify.git |
| octolytics-dimension-user_id | 1817286 |
| octolytics-dimension-user_login | tfriedel |
| octolytics-dimension-repository_id | 69826114 |
| octolytics-dimension-repository_nwo | tfriedel/python-lightify |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | true |
| octolytics-dimension-repository_parent_id | 52658053 |
| octolytics-dimension-repository_parent_nwo | andreasofthings/python-lightify |
| octolytics-dimension-repository_network_root_id | 27649720 |
| octolytics-dimension-repository_network_root_nwo | mikma/python-lightify |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | c9daf44b4f7506beb4bbdaf20e9c0b4ba9a94e56 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width