Wi-Fi enabled LED smart lights
Write Python and use any of the 350k+ PyPi packages available. Refer to the Pipedream Python docs to learn more.
With the Lifx API, you have the power to control your Lifx smart lights programmatically. This API lets you change the color, brightness, and power state of your bulbs, and it also allows you to access information on the lights' settings and environment. Pipedream's serverless platform leverages this functionality to create automations that can be triggered by various events. You can set your lights to respond to external factors like the weather, implement them into your smart home routines, or sync them with your productivity apps for visual notifications.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
lifx: {
type: "app",
app: "lifx",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api.lifx.com/v1/lights/all`,
headers: {
Authorization: `Bearer ${this.lifx.$auth.oauth_access_token}`,
},
})
},
})
Develop, run and deploy your Python code in Pipedream workflows. Integrate seamlessly between no-code steps, with connected accounts, or integrate Data Stores and manipulate files within a workflow.
This includes installing PyPI packages, within your code without having to manage a requirements.txt
file or running pip
.
Below is an example of using Python to access data from the trigger of the workflow, and sharing it with subsequent workflow steps:
def handler(pd: "pipedream"):
# Reference data from previous steps
print(pd.steps["trigger"]["context"]["id"])
# Return data for use in future steps
return {"foo": {"test":True}}