-
Notifications
You must be signed in to change notification settings - Fork 0
/
shelly-dali.conf
43 lines (25 loc) · 1.71 KB
/
shelly-dali.conf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
# OLA Trigger config to control DALI lights using Shelly DALI Dimmer Gen3
# Copyright (C) 2024 Johan Nilsson. https://gobo.ws
# DMX chart
###########################################################################
# +---------+---------+---------------------------------------------------+
# | Channel | Value | Function |
# +---------+---------+---------------------------------------------------+
# | 1 | 0 | Lamp off |
# | | 1-100 | Lamp intensity. Value 1-100 % low -> high |
# | | 101-255 | Not in use |
# +---------+---------+---------------------------------------------------+
# Comments
###########################################################################
# This script is based on information from Shelly's documentation and has not been tested,
# since I do not have a Shelly DALI Dimmer Gen3 available for testing.
# Configuration
###########################################################################
hostname='192.168.33.1' # Shelly DALI Dimmer Gen3 hostname or IP address
username='' # Leave username and password blank if you are not using restricted login
password=''
# Triggers
###########################################################################
# Slot Values Action
1 0 `curl '-s' '-o' '/dev/null' '-u' '${username}:${password}' 'http://${hostname}/rpc/Light.Set?id=0&on=false&brightness=0'`
1 1-100 `curl '-s' '-o' '/dev/null' '-u' '${username}:${password}' 'http://${hostname}/rpc/Light.Set?id=0&on=true&brightness=${slot_value}'`