Skip to content

Commit d504f72

Browse files
committed
#789 support action_code, action_transaction and action_zone features
1 parent 08564af commit d504f72

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

adapter.py

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -237,6 +237,21 @@ def add_numeric_device(self, feature):
237237
self._add_device('signal', feature, CustomSensor, ' (Link Quality)')
238238
return
239239

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+
240255
if (feature['name'] == 'battery' and state_access):
241256
if domoticz.get_plugin_config('useBatteryDevices'):
242257
self._add_device('btperc', feature, PercentageSensor, ' (Battery)')

0 commit comments

Comments
 (0)