Slack plugin

This plugin allows you to establish a connection between Slack and Jeedom to send alerts from Jeedom or chat with Jeedom (using interactions).

Plugin configuration

After downloading the plugin, you must activate it, it does not require any other configuration.

slack1

Equipment configuration

The configuration of Slack equipment is accessible from the Plugins menu :

slack2

This is what the Slack plugin page looks like (here with already 1 device) :

slack3

Once you click on one of them, you get :

slack4

Here you find all the configuration of your equipment :

Below you will find the configuration of the commands :

Tip

By default there are 2 commands : Sender that gives you the name of the last sender of the message and Message that gives you the message, this can be used, if you want to do something that is not possible with the interactions to trigger a scenario on the arrival of a new one message for example and retrieve the value of it (we can for example imagine having the message read on Sonos or Karotz)

Slack account creation

Nothing more just go here, and enter an email address and a domain name / company, for example :

slack5

You just have to validate, you will receive an email, you must click on the link to activate your account and it’s good

Then you will arrive on your Slack :

slack6

From there you find on the left the channels and the users, in the center you can download the Slack app for iOS, Android, Mac or Windows

Adding outgoing webhook

The wekhooks allow Slack to inform Jeedom of the arrival of a message and to wait for the response from Jeedom to retransmit it, to do this you must go to the settings :

slack7

Then click on integration :

slack8

At the bottom you will find “Outgoing WebHooks” :

slack9

Click on “Add” :

slack10

Then “Add Outgoing WebHooks Integration” :

slack11

You will find the different parameters towards the bottom of the page :

The other fields are not useful, except maybe the “Customize Name” which allows you to define the name of the Jeedom bot (name with which Jeedom responds), you can also with “Customize Icon” change the icon of Jeedom.

Then click on “Save Settings” and it’s good

slack12

There, you can talk to Jeedom through Slack

Important

Do not forget in Jeedom to enter your domain name (company name), otherwise Jeedom will refuse to answer you (note that this field is sensitive to the box).

Tip

Since Jeedom separates the equipments by domain, it is possible if you have several domains to separate the equipments and therefore the scenarios behind.

Addition of incoming webhook

Incoming webhooks allow Jeedom to communicate a message on a channel or directly to a person. Without these webhooks Jeedom will not be able to take the initiative to send you a message.

To do this you have to go to the settings :

slack7

Then click on integration :

slack8

At the very bottom you will find “Incoming WebHooks” :

slack13

Then, you must choose a channel or a default destination user (you can then specify one by command in Jeedom) :

slack14

Then click on “Add Incoming WebHooks Integration”.

slack15

At the bottom of the page you will find the information of the webhook, you just need to retrieve the value of the “Webhook URL” field and copy it into the Webhook field of your order.

Tip

In the destination field of the command in Jeedom you can specify a channel (ex #monchannel) or a user (ex @toto).

Here, under Jeedom you just have to save and there you can from Jeedom send messages on Slack

Token recovery

Here is how to recover your token so that Jeedom can send files to Slack, and in particular captures from cameras for example. First you have to go here, then at the very bottom go on :

slack17

Here in front of your team, ask Slack to generate the token, it will ask you for your password then send you back to the same page, at the bottom ask for the token again. After a few seconds it will appear, just copy it into the token field on Jeedom

Tip

This step is optional, it is just useful to send captures of your camera by Slack for example.

What is the result ?

Here is an example of what it is possible to do once the plugin is correctly configured and the interactions created :

slack16

Important

If you use the “ask” function of the scenarios, you must send the request on a channel on which Jeedom listens to the answers otherwise your “ask” request will fall into “timeout””

Nous utilisons des cookies pour vous garantir la meilleure expérience sur notre site web. Si vous continuez à utiliser ce site, nous supposerons que vous en êtes satisfait.