Skip to content

Commit

Permalink
denon: trigge settings read when zone is turned on
Browse files Browse the repository at this point in the history
  • Loading branch information
onkelandy committed Feb 12, 2025
1 parent 8a98006 commit fc73820
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion denon/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ class SmartPluginWebIf():
else:
builtins.SDP_standalone = False

from lib.model.sdp.globals import (PLUGIN_ATTR_NET_HOST, PLUGIN_ATTR_CONNECTION, PLUGIN_ATTR_SERIAL_PORT, PLUGIN_ATTR_CONN_TERMINATOR, PLUGIN_ATTR_CMD_CLASS, CONN_NULL, CONN_NET_TCP_CLI, CONN_SER_ASYNC)
from lib.model.sdp.globals import (PLUGIN_ATTR_MODEL, PLUGIN_ATTR_NET_HOST, PLUGIN_ATTR_CONNECTION, PLUGIN_ATTR_SERIAL_PORT, PLUGIN_ATTR_CONN_TERMINATOR, PLUGIN_ATTR_CMD_CLASS, CONN_NULL, CONN_NET_TCP_CLI, CONN_SER_ASYNC)
from lib.model.smartdeviceplugin import SmartDevicePlugin, Standalone
from lib.model.sdp.command import SDPCommandParseStr

Expand Down Expand Up @@ -150,7 +150,12 @@ def _process_additional_data(self, command: str, data: Any, value: Any, custom:
self.send_command(f'zone{zone}.control.mute')
self.send_command(f'zone{zone}.control.sleep')
self.send_command(f'zone{zone}.control.standby')
if self._parameters[PLUGIN_ATTR_MODEL] == '':
self.read_all_commands(f'ALL.zone{zone}.settings')
else:
self.read_all_commands(f'{self._parameters[PLUGIN_ATTR_MODEL]}.zone{zone}.settings')
if zone == 1 and value is True:
time.sleep(1)
self.send_command(f'zone{zone}.control.input')
self.send_command(f'zone{zone}.control.volume')
self.send_command(f'zone{zone}.control.listeningmode')
Expand Down

0 comments on commit fc73820

Please sign in to comment.