Help
  • Explore Community
  • Get Started
  • Ask the Community
  • How-To & Best Practices
  • Contact Support
Notifications
Login / Register
Community
Community
Notifications
close
  • Forums
  • Knowledge Center
  • Events & Webinars
  • Ideas
  • Blogs
Help
Help
  • Explore Community
  • Get Started
  • Ask the Community
  • How-To & Best Practices
  • Contact Support
Login / Register
Sustainability
Sustainability

We Value Your Feedback!
Could you please spare a few minutes to share your thoughts on Cloud Connected vs On-Premise Services. Your feedback can help us shape the future of services.
Learn more about the survey or Click here to Launch the survey
Schneider Electric Services Innovation Team!

AN020_Philips Hue lamps controlled from homeLYnk

SpaceLogic KNX Forum

Schneider Electric SpaceLogic KNX forum to get support and share knowledge including selection, installation and troubleshooting for spaceLYnk, Wiser for KNX, eConfigure KNX, SpaceLogic KNX Hybrid module and other topics.

cancel
Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
Showing results for 
Show  only  | Search instead for 
Did you mean: 
  • Home
  • Schneider Electric Community
  • EcoStruxure Building
  • Light and Room Control
  • SpaceLogic KNX Forum
  • AN020_Philips Hue lamps controlled from homeLYnk
Options
  • Mark Topic as New
  • Mark Topic as Read
  • Float this Topic for Current User
  • Bookmark
  • Subscribe
  • Mute
  • Printer Friendly Page
Invite a Co-worker
Send a co-worker an invite to the portal.Just enter their email address and we'll connect them to register. After joining, they will belong to the same company.
You have entered an invalid email address. Please re-enter the email address.
This co-worker has already been invited to the Exchange portal. Please invite another co-worker.
Please enter email address
Send Invite Cancel
Invitation Sent
Your invitation was sent.Thanks for sharing Exchange with your co-worker.
Send New Invite Close
Top Experts
User Count
Thomas_Rohde
Sisko Thomas_Rohde Sisko
123
Erwin-vd-Zwart
Sisko Erwin-vd-Zwart Sisko
54
Heribert_Dölger
Lt. Commander Heribert_Dölger Lt. Commander
30
FZetina
Lt. Commander FZetina Lt. Commander
27
View All
Related Products
product field
SpaceLogic KNX - 4ʺ Touch Unit
product field
KNX Push Button Dynamic Labeling, universal
product field
Wiser for KNX : logic controller

Invite a Colleague

Found this content useful? Share it with a Colleague!

Invite a Colleague Invite
Back to SpaceLogic KNX Forum
sesa296387
sesa296387 Schneider Alumni (Retired)
Schneider Alumni (Retired)

Posted: ‎2015-01-13 02:17 AM . Last Modified: ‎2024-07-15 12:03 AM

1 Like
3
502
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Permalink
  • Print
  • Email to a Friend
  • Report Inappropriate Content

Link copied. Please paste this link to share this article on your social media post.

‎2015-01-13 02:17 AM

AN020_Philips Hue lamps controlled from homeLYnk

This application note describes possibility to control Philips Hue lamps from KNX installation using homeLYnk. Philips Hue is RGB LED bulb, which is mainly intended to be controlled from Smartphones and tablets.

  • Thumbnail of SpaceLogic KNX - 4ʺ Touch Unit
    SpaceLogic KNX - 4ʺ Touch Unit
  • Thumbnail of KNX Push Button Dynamic Labeling, universal
    KNX Push Button Dynamic Labeling, universal
  • Thumbnail of Wiser for KNX : logic controller
    Wiser for KNX : logic controller
View products (3)
Attachments
AN020_Philips_Hue_lamp_controlled_from_homeLYnk.zip
Tags (6)
  • Tags:
  • application_note
  • gateway
  • home_automation
  • homelynk
  • knx
  • modbus
Reply
  • All forum topics
  • Previous Topic
  • Next Topic
Replies 3
esteve_budia
Lieutenant esteve_budia Lieutenant
Lieutenant

Posted: ‎2015-01-13 03:14 AM

1 Like
0
445
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Permalink
  • Print
  • Email to a Friend
  • Report Inappropriate Content

Link copied. Please paste this link to share this article on your social media post.

‎2015-01-13 03:14 AM

Maybe it would be interesting use the real RGB control.. and send the R,G,B independently as done with DMX or DALI.

 
-- Get Value of RGB picker
value_d = event.getvalue()


-- Convert to HEX for splitting to 3 byte values
value = lmcore.inttohex(value_d, 3) -- 3 = number of bytes inside value


-- Split First 2 byte HEX values from 3 byte HEX
redandgreen = string.sub(value, 1, 4)

-- Split First Value from 2 byte HEX
red = string.sub(redandgreen, 1, 2)

-- Split Last value from 2 byte HEX
green = string.sub(redandgreen, -2)

-- Split Last byte value from 3 byte HEX
blue = string.sub(value, -2)

-- Convert HEX values back to integer
valuered = lmcore.hextoint (red)
valuegreen = lmcore.hextoint (green)
valueblue = lmcore.hextoint (blue)

-- Calculate lowest value of RGB value
low = math.min(unpack({valuered, valuegreen, valueblue}))

-- Calculate highest value of RGB value
high = math.max(unpack({valuered, valuegreen, valueblue}))

-- Calculate Saturation (The saturation is the colorfulness of a color relative to its own brightness)
saturation = math.floor((100 * ((high - low) / high)) + 0.5)
if valuered == 0 and valuegreen == 0 and valueblue == 0 then
  white = 0
else
  white = math.floor(((255 - saturation) / 255 * (valuered + valuegreen + valueblue) / 3)+ 0.5)
end

-- Write integer RGB values and Calculated White & Saturation to KNX
grp.write('0/2/28', valuered, dt.uint8)
grp.write('0/2/29', valuegreen, dt.uint8)
grp.write('0/2/30', valueblue, dt.uint8)


5541

Reply
sesa299442
sesa299442 Schneider Alumni (Retired)
Schneider Alumni (Retired)

Posted: ‎2015-01-13 05:06 AM

0 Likes
0
445
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Permalink
  • Print
  • Email to a Friend
  • Report Inappropriate Content

Link copied. Please paste this link to share this article on your social media post.

‎2015-01-13 05:06 AM

This is actually what the KNX RGB data type does.

It consists of 3 bytes, where each byte represents one of RGB colors.

There is no big deal to modify the script to read 3 grp addresses of 1 byte size.

Reply
PetrMares
Commander PetrMares Commander
Commander

Posted: ‎2018-12-11 01:06 AM . Last Modified: ‎2022-10-18 09:54 PM

1 Like
0
444
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Permalink
  • Print
  • Email to a Friend
  • Report Inappropriate Content

Link copied. Please paste this link to share this article on your social media post.

‎2018-12-11 01:06 AM

Dear all,

We have published AN020 - Philips Hue lamps controlled from Wiser for KNX in the past. The time is running fast and Philips released another 2 generations of Hue since that time.

This AN has been rewriten as AN2_002 (new generation of AN ) and released on Schneider electric website today.

 

There are completely new libraries and project inside to help you with configuration and control of your Hue installation.

 

AN020 is obsolete but cannot be deleted because I am not an owner. Please check following link.

https://community.se.com/t5/KNX/AN2-002-Philips-Hue-lamps-controlled-from-Wiser-for-KNX/m-p/156885#M...

 

 AN is available on Yammer and SE website as well.

- Solutions team

Reply
Preview Exit Preview

never-displayed

You must be signed in to add attachments

never-displayed

 
To The Top!

Forums

  • APC UPS Data Center Backup Solutions
  • EcoStruxure IT
  • EcoStruxure Geo SCADA Expert
  • Metering & Power Quality
  • Schneider Electric Wiser

Knowledge Center

Events & webinars

Ideas

Blogs

Get Started

  • Ask the Community
  • Community Guidelines
  • Community User Guide
  • How-To & Best Practice
  • Experts Leaderboard
  • Contact Support
Brand-Logo
Subscribing is a smart move!
You can subscribe to this board after you log in or create your free account.
Forum-Icon

Create your free account or log in to subscribe to the board - and gain access to more than 10,000+ support articles along with insights from experts and peers.

Register today for FREE

Register Now

Already have an account? Login

Terms & Conditions Privacy Notice Change your Cookie Settings © 2025 Schneider Electric

This is a heading

With achievable small steps, users progress and continually feel satisfaction in task accomplishment.

Usetiful Onboarding Checklist remembers the progress of every user, allowing them to take bite-sized journeys and continue where they left.

of