I'm using HomeKit for some home security system features, and I would love to be able to trigger an alarm on the Tesla when my home alarm is triggered. Currently I have window and door sensors that can trigger a speaker alarm within my house, but it would be extra effective if the car parked outside of my house drew attention by flashing the lights and honking.
I envision in the homebridge plugin, this could be done one of two ways:
1) Implement a proper "Security System" accessory (https://developers.homebridge.io/#/service/SecuritySystem)
The idea here is you can send a loop of honk https://owner-api.teslamotors.com /api/1/vehicles/:id/command/honk_horn and flash lights https://owner-api.teslamotors.com /api/1/vehicles/:id/command/flash_lights commands to the car.
The benefit here is it would interplay very easily with the alarm system, also you can have feedback for when the alarm is "armed" or "disarmed" by sending a single light flash and a honk, or something.
-OR-
2) Implement the "Honk" and "Flash Lights" features as a simple accessory (switch, maybe?), so that they can be automated. This is the less desirable option, as it would require developing some non straightforward type of shortcut automation that may or may not work to create a loop with a series of flashing lights and honks.
I'm using HomeKit for some home security system features, and I would love to be able to trigger an alarm on the Tesla when my home alarm is triggered. Currently I have window and door sensors that can trigger a speaker alarm within my house, but it would be extra effective if the car parked outside of my house drew attention by flashing the lights and honking.
See this project for a simple python implementation that uses a motion sensor to trigger a Tesla "alarm": https://videos.cctvcamerapros.com/i/tesla-api-security-alarm-raspberry-pi.html
I envision in the homebridge plugin, this could be done one of two ways:
1) Implement a proper "Security System" accessory (https://developers.homebridge.io/#/service/SecuritySystem) The idea here is you can send a loop of honk
https://owner-api.teslamotors.com /api/1/vehicles/:id/command/honk_horn
and flash lightshttps://owner-api.teslamotors.com /api/1/vehicles/:id/command/flash_lights
commands to the car.The benefit here is it would interplay very easily with the alarm system, also you can have feedback for when the alarm is "armed" or "disarmed" by sending a single light flash and a honk, or something.
-OR-
2) Implement the "Honk" and "Flash Lights" features as a simple accessory (switch, maybe?), so that they can be automated. This is the less desirable option, as it would require developing some non straightforward type of shortcut automation that may or may not work to create a loop with a series of flashing lights and honks.