Addon for temporary sharing actions

Created my first addon

Started working with this idea for some years ago but got bored when I understood what needs to be done to get it work. But now in a modern day with Claude as a friend it got much smoother to fix.

So what have i created?
The add-on is used to create temporary links that you can sms (with twilio) or share in other ways to people who need access to any of your home automations. I will use this to give friends and deliveries the power to open my door in a controlled way.

Capabilities:

  • Contacts, create a list of all contacts you regular send to
  • Templates, create a list of templates with you most common actions
  • Creating links, create link, set valid time, max amount of use, actions and recipient
  • Audit logging, make sure you can track what happens and when
  • Send sms, with twilio

How it works:

  • Uses the external rest api and web socket, needs to be external for all I understand to be able to create and delete automations
  • Create automations with webhook triggers
  • Trigger an custom event for the addon to track usage
  • Process the action
  • Delete automation when time is expired
  • Delete automation when max use is met
  • Delete automation if revoked
  • Uses a SQLite database for persitance

Prerequisites:

  • For all I know, Nabu Casa, to be able to generate webhooks
  • Long-lived access tokens

Please come with feedback or comments. I am a dotnet developer by core so the add-on is developed in that. Some by me but most by Claude.

Star, create issues or just tell me there is a easier way to accomplish this, I had quite fun anyway reating this.

1 Like