forked from Morg42/viessmann
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathplugin.yaml
executable file
·154 lines (129 loc) · 4.88 KB
/
plugin.yaml
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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
# Metadata for the Smart-Plugin
plugin:
# Global plugin attributes
type: interface # plugin type (gateway, interface, protocol, system, web)
description:
de: 'Lesen und Schreiben von Werten einer Viessmann Heizung'
en: 'Read and write data of a Viessmann heating system'
maintainer: Michael Wenzel
tester: Morg
# keywords: viessmann optolink
state: develop # change to ready when done with development
version: 1.0.0 # Plugin version
sh_minversion: 1.6.0 # minimum shNG version to use this plugin
# sh_maxversion: # maximum shNG version to use this plugin (leave empty if latest)
multi_instance: false # plugin supports multi instance
restartable: unknown
classname: Viessmann # class containing the plugin
parameters:
# Definition of parameters to be configured in etc/plugin.yaml
serialport:
type: str
default: ''
description:
de: 'Serieller Port an dem der Lesekopf angeschlossen'
en: 'serial port at which the reading_device is attached'
heating_type:
type: str
default: ''
description:
de: 'Gerätetype der Heizung'
en: 'Device type of heating system'
protocol:
type: str
mandatory: true
valid list:
- 'P300'
- 'GWG'
- 'KW2'
description:
de: 'Protokoll der Heizung'
en: 'protocol of heating system'
timeout:
type: num
default: 2
description:
de: 'Zeitbegrenzung für das Lesen vom seriellen Port in Sekunden'
en: 'Timeout for serial read operations in seconds'
item_attributes:
# Definition of item attributes defined by this plugin
viess_send:
type: str
description:
de: 'Änderung des Items wird mit konfiguriertem Kommando an die Heizung geschickt.'
en: 'Changes to this item result in sending the configured command to the heating system.'
viess_read:
type: str
description:
de: 'Liest Wert mit konfiguriertem Kommando aus der Heizung aus.'
en: 'The item value should be read by using the configured command.'
viess_read_afterwrite:
type: num
description:
de: 'Konfiguriert eine Verzögerung in Sekunden nachdem ein Lesekommando nach einem Schreibkommando an die Heizung geschickt wird.'
en: 'Configures delay in seconds to issue a read command after write command.'
viess_read_cycle:
type: num
description:
de: 'Konfiguriert ein Intervall in Sekunden für das Lesekommando.'
en: 'Configures a interval in seconds for the read command.'
viess_init:
type: bool
description:
de: 'Konfiguriert, ob der Wert aus der Heizung initialisiert werden soll.'
en: 'Configures to initialize the item value with the value from the KWL system.'
viess_trigger:
type: list(str)
description:
de: 'Konfiguriert Lesekommandos, die nach einem Schreibvorgang auf das Item aufgerufen werden.'
en: 'Configures read commands after an update to the item.'
viess_trigger_afterwrite:
type: num
description:
de: 'Konfiguriert eine Verzögerung in Sekunden, bis ein Trigger ausgeführt werden soll, nachdem ein Wert gesetzt wurde.'
en: 'Configures delay in seconds to run trigger commands after item update.'
item_structs:
timer:
name: Schaltzeiten in Einzelzeiten fuer An und Aus
an1:
name: erste Anschaltzeit
type: str
visu_acl: rw
aus1:
name: erste Ausschaltzeit
type: str
visu_acl: rw
an2:
name: zweite Anschaltzeit
type: str
visu_acl: rw
aus2:
name: zweite Ausschaltzeit
type: str
visu_acl: rw
an3:
name: dritte Anschaltzeit
type: str
visu_acl: rw
aus3:
name: dritte Ausschaltzeit
type: str
visu_acl: rw
an4:
name: vierte Anschaltzeit
type: str
visu_acl: rw
aus4:
name: vierte Ausschaltzeit
type: str
visu_acl: rw
betriebsart:
name: Betriebsart in string wandeln
betriebsart_str:
type: str
eval: "'Neustart' if value == '' else ['Standby', 'Warmwasser (Schaltzeiten)', 'Heizen und Warmwasser (Schaltzeiten)', 'reduziert Heizen (dauernd)', 'normal Heizen (dauernd)'][int(value)]"
eval_trigger: ..
logic_parameters: NONE
# Definition of logic parameters defined by this plugin
plugin_functions: NONE
# Definition of plugin functions defined by this plugin