You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- #13: if we can't connect to projector on init, there will be a warning logged, but initialisation will continue as it may become available later
- #18: mostly an upstream fix, if an unknown response which can't be decoded into a pretty string is sent by the projector, instead of a `KeyError`, it will now log a warning and return the raw response ascii code.
- add picture modes, lamp power 'mid', anamorphic 'd', extra lens memory options for the NZ series
Copy file name to clipboardExpand all lines: README.md
+4-4Lines changed: 4 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -149,12 +149,12 @@ And use type `Integration`. Once installed, proceed to follow README in the 'jvc
149
149
#### Command Strings:
150
150
These command strings will perform an operation on the projector. The corresponding entry in the `last_commands_response` attribute will be `success` if the operation succeeded, or `failed` otherwise. Values in '{}' indicate multiple choices.
151
151
* **Power:** `power-{on,off}` (recommended to use the `remote.turn_on` and `remote.turn_off` services).
152
-
* **Lens Memory:** `memory-{1-5}`
152
+
* **Lens Memory:** `memory-{1-10}` (Not all projectors will have all 10)
f"Failed to send command, could not communicate with projector: {repr(e)}\nThis could happen if the command only works when the projector is on but the current state is off, or the timeout setting is too low"
181
+
f"Sent command, received communication error: {repr(e)}"
152
182
)
153
183
self._last_commands_sent.append(com)
154
184
self._last_commands_response.append("failed")
185
+
exceptpower_errorase:
186
+
_LOGGER.warning(f"Sent command, received power error: {repr(e)}")
187
+
self._last_commands_sent.append(com)
188
+
self._last_commands_response.append("failed")
189
+
exceptconnect_errorase:
190
+
# the projector is likely off at the mains
191
+
_LOGGER.warning(f"The projector at {self._conf_host}:{self._conf_port} did not respond to the connection request: {repr(e)}")
192
+
self._power_state="not_connected"
193
+
self._last_commands_sent= ["unknown"]
194
+
self._last_commands_response= ["failed"]
195
+
return
196
+
155
197
exceptExceptionase:
156
198
# when an error occured during sending, command execution probably failed
_LOGGER.warning(f"Couldn't connect to the projector at the specified address: {self._conf_host}:{self._conf_port}. Ensure the configuration is correct.")
0 commit comments