在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称:kbrashears5/typescript-homebridge-schedule开源软件地址:https://github.com/kbrashears5/typescript-homebridge-schedule开源编程语言:TypeScript 96.0%开源软件介绍:Homebridge-ScheduleThis Homebridge plugin allows you to create HomeKit automations for more than just the default "A time of day occurs" The original thought for this was to create an hourly automation to check my thermostat in the house and send me a notification if it was above or below a certain threshold Homebridge-Schedule is similar to Homebridge-Dummy, in the sense that it creates some dummy switches in HomeKit that turn on at your desired interval. They will turn off one second later. This is useful for triggering automations, or even shortcuts. Installation
UsageInterval BasedAdd accessories to your {
"accessories": [
{
"accessory": "Schedule",
"name": "Hourly",
"interval": 60,
"serial": "123456789"
}
]
}
Upon startup of Homebridge, the device will turn on at the specified interval NotesThe interval starts when Homebridge is started up. If you want something to run hourly on the hour, then you need to make sure Homebridge is started up on the hour Cron BasedAdd accessories to your {
"accessories": [
{
"accessory": "Schedule",
"name": "Hourly",
"cron": "* * * * * *",
"serial": "123456789"
}
]
}
Cron string details: https://www.npmjs.com/package/cron Cron string uses seconds, so for an hourly cron string use:
Use CasesI have created a "room" called Automation in my HomeKit, which then allows me to create an automation "When the Automation Hourly turns on" to check my thermostat temperature, check the current outside temperature at my house, and based on some conditions, set the thermostat. Steps:
Creating HomeKit AutomationsCreate new Accessory automation: Choose the accessory created by homebridge-schedule: Select when it turns on or turns off and any time or people configurations Scroll all the way to the bottom and choose Create shortcut:
DevelopmentClone the latest and run
to install packages and prep the git hooks |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论