diff --git a/lib/model/smartdeviceplugin.py b/lib/model/smartdeviceplugin.py index 15989fba16..259243ee2d 100644 --- a/lib/model/smartdeviceplugin.py +++ b/lib/model/smartdeviceplugin.py @@ -712,7 +712,7 @@ def send_command(self, command, value=None, return_result=False, **kwargs): try: data_dict = self._commands.get_send_data(command, value, **kwargs) data_dict['command'] = command - if value is not None: + if value is not None and self._commands_read.get(command, None) is not None: data_dict['returntype'] = type(value) data_dict['returnvalue'] = value data_dict['retry'] = kwargs.get('retry') or 0