Skip to content

StreamDeck_

Oussama DAHMAZ edited this page Aug 27, 2020 · 1 revision

Presentation

This plugin allows to control all the device supported by yadoms, using Stream Deck keys.

Supported devices

Device Supported Tested
Stream Deck Original Yes Yes
Stream Deck Original V2 Yes No
Stream Deck Mini Yes No
Stream Deck XL Yes No

Configuration

Plateform Root permissions
Windows No
MacOS No
All linux plateforms Yes

To get root permissions under linux :

  1. Add your user to the 'plugdev' group:
sudo usermod -a -G plugdev `yadoms`
  1. Add the udev rules using your text editor:
sudoedit /etc/udev/rules.d/99-streamdeck.rules
# If that doesn't work, try:
sudo nano /etc/udev/rules.d/99-streamdeck.rules
  1. Paste the following lines:
SUBSYSTEM=="usb", ATTRS{idVendor}=="0fd9", ATTRS{idProduct}=="0060", MODE:="660", GROUP="plugdev"
SUBSYSTEM=="usb", ATTRS{idVendor}=="0fd9", ATTRS{idProduct}=="0063", MODE:="660", GROUP="plugdev"
SUBSYSTEM=="usb", ATTRS{idVendor}=="0fd9", ATTRS{idProduct}=="006c", MODE:="660", GROUP="plugdev"
SUBSYSTEM=="usb", ATTRS{idVendor}=="0fd9", ATTRS{idProduct}=="006d", MODE:="660", GROUP="plugdev"
  1. Reload the rules:
sudo udevadm control --reload-rules

⚠️ Make sure you unplug and replug your device before continuing.

This rules are from streamdeck-ui repository. Thank you Timothy Edmund Crosley

Yadoms plugin

  1. Create a new plugin "Stream Deck" :
  1. Select you device :

Hit ok!

  1. Make sure that all keys are declared under Devices/Stream Deck

It provides 2 pairing mode in both of them you have to get API_key, this key is needed and provided by sign up on Lametric website.

You can switch between modes by hitting the combo box.

  1. Automatic pairing mode

This mode use UPNP protocol to detect all connected devices automatically. Each device will be declared as follow : DeviceName + IP address.

We recommend to use secure way to communication between the device and Yadoms via https using port 4343.

  1. Manual pairing mode

In this mode you must fill in the IP address :

You can find your device IP address easily by using Lametric Time mobile application (Your smartphone should be connected to the same wifi as your device !) :

Sample Script

We wrote a simple script to send notification (The level of the battery) when the fakeSensor1 battery level becomes lower then 20%

you have the possibilty to add some of the available icons by setting IconType enumerator. Available icons are listed bellow

Available Icons

Enum Name Icons
Yadoms
Beer
BeerAnimated
Email
Battery100
Battery80
Battery60
Battery40
Battery20
BatteryLowAnimated
ThermometerLow
ThermometerOutdoor
ThermometerAnimated
WaterDrop
WaterDropAnimated
Sun
CloudlySunAnimated

The plugin in action

When the notifications is sent, Lametric will display Yadoms_logo + YADOMS in the first frame :

and in the second frame Yadoms_logo + customize text (Here is the FakeSensor1 battery level)

Clone this wiki locally