File tree Expand file tree Collapse file tree 1 file changed +15
-0
lines changed Expand file tree Collapse file tree 1 file changed +15
-0
lines changed Original file line number Diff line number Diff line change @@ -237,6 +237,21 @@ def add_numeric_device(self, feature):
237
237
self ._add_device ('signal' , feature , CustomSensor , ' (Link Quality)' )
238
238
return
239
239
240
+ if feature ['name' ] == 'action_code' and state_access :
241
+ alias = self ._generate_alias (feature , 'accode' )
242
+ self ._add_device (alias , feature , CustomSensor )
243
+ return
244
+
245
+ if feature ['name' ] == 'action_transaction' and state_access :
246
+ alias = self ._generate_alias (feature , 'actran' )
247
+ self ._add_device (alias , feature , CustomSensor )
248
+ return
249
+
250
+ if feature ['name' ] == 'action_zone' and state_access :
251
+ alias = self ._generate_alias (feature , 'aczone' )
252
+ self ._add_device (alias , feature , CustomSensor )
253
+ return
254
+
240
255
if (feature ['name' ] == 'battery' and state_access ):
241
256
if domoticz .get_plugin_config ('useBatteryDevices' ):
242
257
self ._add_device ('btperc' , feature , PercentageSensor , ' (Battery)' )
You can’t perform that action at this time.
0 commit comments