Register Custom Service with Configuration

Hey everyone. I read an article about using Home Assistant to post Slack messages in which the author semi-automatically posted in a channel that he was at work or away. I’d like to take that one step further and change my status on Slack for the same purpose.

So I started this morning on a custom component of sorts and did a lot of reading on how to do that. Here’s where I’m at now: https://github.com/starbuck93/hass_slack_status

I really want it to be a service so I can call it in an automation but not have to remember the bearer_token every time I call it.

So I added it to configuration.yaml and got an error when I checked the config for errors:

[frontend] is an invalid option for slack_status

Okay, maybe that means there is no frontend options for my custom component, so can I not have it in configuration.yaml at all? I really wanted to have the bearer_token in there so perhaps others can use it too.

Has anyone come across this before? Do I need to go about this another way?

Thanks in advance!