Smart light lets you do more. Whether that’s creating the perfect atmosphere for a relaxing night in or bringing the thrill of the theater into your living room, Philips Hue helps you think larger than light.
Go to siteThe Philips Hue API offers rich control over Philips Hue smart lighting systems. Via Pipedream, you can automate your lighting based on various triggers – think syncing lights with the sun's cycle, changing color to indicate new emails, or even integrating with motion sensors for a smart-home experience. With Pipedream's capabilities to connect to countless services, the possibilities of creating personalized lighting scenarios are vast, limited only by your imagination and the availability of triggers or events from other services and devices.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
philips_hue: {
type: "app",
app: "philips_hue",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api.meethue.com/v2/api/resource`,
headers: {
Authorization: `Bearer ${this.philips_hue.$auth.oauth_access_token}`,
},
})
},
})
Sunset/Sunrise Lighting: Adjust your Philips Hue lights to gradually turn on as the sun sets and dim as the sun rises by integrating with a weather API on Pipedream. This automation can mimic natural lighting and provide a gentle transition into and out of the day.
Email Notification Lights: Get visual notifications for new important emails by connecting your Philips Hue lights to your email service on Pipedream. Set up a workflow where lights blink or change color when an email from a VIP list comes in, allowing you to stay informed without constantly checking your inbox.
Smart Home Security: Enhance your home security system by linking Philips Hue with motion sensors through Pipedream. Program your lights to turn on or change color if unexpected motion is detected after certain hours, potentially deterring unwelcome visitors and alerting you to check your security cameras.
Philips Hue uses OAuth authentication. When you connect your Philips Hue account, Pipedream will open a popup window where you can sign into Philips Hue and grant Pipedream permission to connect to your account. Pipedream securely stores and automatically refreshes the OAuth tokens so you can easily authenticate any Philips Hue API.
Pipedream requests the following authorization scopes when you connect your account:
GET
https://api.meethue.com/v2/oauth2/authorize
?
client_id={{oauth.client_id}}
&
redirect_uri={{oauth.redirect_uri}}
&
state={{oauth.state}}
&
response_type=code
&
scope={{oauth.space_separated_scopes}}
POST
https://api.meethue.com/v2/oauth2/token
content-type: application/x-www-form-urlencoded
accept: application/json
client_id={{oauth.client_id}}
&
client_secret={{oauth.client_secret}}
&
redirect_uri={{oauth.redirect_uri}}
&
grant_type=authorization_code
&
code={{oauth.code}}
POST
https://api.meethue.com/v2/oauth2/token
content-type: application/x-www-form-urlencoded
accept: application/json
client_id={{oauth.client_id}}
&
client_secret={{oauth.client_secret}}
&
grant_type=refresh_token
&
refresh_token={{oauth.refresh_token}}