with Home Assistant and Vivocalendar?
Emit new event when a new appointment is created. See the documentation
Emit new event when a new staff member is created in VIVO Calendar. See the documentation
The Home Assistant API unlocks the potential to automate and interact with your smart home devices programmatically. With Pipedream, you can tap into this power, triggering workflows based on events in your home, such as motion detection or door openings, and controlling devices based on external data sources or schedules. This integration allows for the creation of personalized, complex scenarios that can enhance security, energy efficiency, and convenience within your smart home.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
home_assistant: {
type: "app",
app: "home_assistant",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://${this.home_assistant.$auth.hostname}/api`,
headers: {
Authorization: `Bearer ${this.home_assistant.$auth.token}`,
"Content-Type": `application/json`,
},
})
},
})
Vivocalendar API lets you interact with the Vivocalendar platform to manage events, calendars, and reminders. Within Pipedream, you can use this API to automate tasks, sync data across different calendar services, or create personalized notifications that fit into your workflow. Leveraging Pipedream's ability to integrate with numerous services, you can build custom automations that trigger on calendar events, process data, and perform actions in response.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
vivocalendar: {
type: "app",
app: "vivocalendar",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://app.vivocalendar.com/api/v3/me`,
headers: {
"api-key": `${this.vivocalendar.$auth.api_key}`,
},
})
},
})