Skip to content

AlbinoDrought/creamy-discord-ha-webhooks

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Creamy Discord Home Assistant Webhooks

Show a nice message in a Discord channel:

Clicking buttons on that message performs actions in Home Assistant.

Usage

CDHAW_TOKEN=your-discord-bot-token \
CDHAW_GUILD_ID=your-guild-id \
CDHAW_CHANNEL_ID=your-channel-id,your-other-channel-id \
CDHAW_GARAGE_URL=http://1.2.3.4/events \
CDHAW_WEBHOOK_CLOSE_URL=https://homeassistant.example/api/webhook/your-close-garage-webhook-id \
CDHAW_WEBHOOK_OPEN_URL=https://homeassistant.example/api/webhook/your-open-garage-webhook-id \
TZ=UTC \
go run main.go

See https://discord.com/developers/docs/topics/oauth2#bots for information on creating a Discord bot.

Disclaimer

This is a toy project

About

Clicking buttons on a Discord message performs actions in Home Assistant

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages