Skip to content

Command sometimes not executed #6

@michnovka

Description

@michnovka

Sometimes when I send command, it is not working. I have to send it 2nd time.

I have captured this in log:

homeassistant  | 2025-01-16 16:22:06.071 DEBUG (MainThread) [custom_components.myhome] [MH202 gateway - 192.168.1.40] Message `*1*1*41##` was successfully queued.
homeassistant  | 2025-01-16 16:22:06.072 DEBUG (MainThread) [custom_components.myhome] MH202 Gateway (192.168.1.40) Message `*1*1*41##` was successfully unqueued by worker 0.
homeassistant  | 2025-01-16 16:22:06.075 DEBUG (MainThread) [custom_components.myhome] [MH202 gateway - 192.168.1.40] Message `*1*1*41##` received response `*#4*4*14*0225##`.

the 2nd click does this:

homeassistant  | 2025-01-16 16:22:21.313 DEBUG (MainThread) [custom_components.myhome] [MH202 gateway - 192.168.1.40] Message `*1*1*41##` was successfully queued.
homeassistant  | 2025-01-16 16:22:21.314 DEBUG (MainThread) [custom_components.myhome] MH202 Gateway (192.168.1.40) Message `*1*1*41##` was successfully unqueued by worker 0.
homeassistant  | 2025-01-16 16:22:21.315 DEBUG (MainThread) [custom_components.myhome] [MH202 gateway - 192.168.1.40] Command session connection reset, retrying...
homeassistant  | 2025-01-16 16:22:21.315 DEBUG (MainThread) [custom_components.myhome] [MH202 gateway - 192.168.1.40] Opening command session.
homeassistant  | 2025-01-16 16:22:21.323 DEBUG (MainThread) [custom_components.myhome] [MH202 gateway - 192.168.1.40] Negotiating command session.
homeassistant  | 2025-01-16 16:22:21.325 DEBUG (MainThread) [custom_components.myhome] [MH202 gateway - 192.168.1.40] Received nonce: `*#159348384##`
homeassistant  | 2025-01-16 16:22:21.326 DEBUG (MainThread) [custom_components.myhome] [MH202 gateway - 192.168.1.40] Sending command session password.
homeassistant  | 2025-01-16 16:22:21.327 DEBUG (MainThread) [custom_components.myhome] [MH202 gateway - 192.168.1.40] Command session established.
homeassistant  | 2025-01-16 16:22:21.383 INFO (MainThread) [custom_components.myhome] [MH202 gateway - 192.168.1.40] Message `*1*1*41##` was successfully sent.
homeassistant  | 2025-01-16 16:22:21.387 DEBUG (MainThread) [custom_components.myhome] [MH202 gateway - 192.168.1.40] Message received: `*1*1000#1*41##`
homeassistant  | 2025-01-16 16:22:21.387 DEBUG (MainThread) [custom_components.myhome] [MH202 gateway - 192.168.1.40] Ignoring translation message `*1*1000#1*41##`
homeassistant  | 2025-01-16 16:22:21.420 DEBUG (MainThread) [custom_components.myhome] [MH202 gateway - 192.168.1.40] Message received: `*1*1*41##`
homeassistant  | 2025-01-16 16:22:21.421 INFO (MainThread) [custom_components.myhome] [MH202 gateway - 192.168.1.40] Light 41 is switched on.

So what does this show?

  1. that the first command gets response *#4*4*14*0225## (status message that means that somewhere temperature is 22.5 degrees)
  2. the 2nd command then initiated session reset and reauthentication, prior to sending message out

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions