krahabb / meross_lan

Home Assistant integration for Meross devices
MIT License
408 stars 45 forks source link

MSS210 cannot toggle #470

Closed phhoef closed 1 month ago

phhoef commented 1 month ago

I've just started using HA and I've currently two Meross MSS210 plugs. I installed the extension and after power cycling the plugs, they appeared in HA. I connected through the cloud login integration.

Version of the custom_component

Configuration


# Loads default set of integrations. Do not remove.
default_config:

logger:
  default: info

# Load frontend themes from the themes folder
frontend:
  themes: !include_dir_merge_named themes

automation: !include automations.yaml
script: !include scripts.yaml
scene: !include scenes.yaml
sensor: !include_dir_merge_list sensors/
template: !include_dir_merge_list templates/

Describe the bug

I do see the current state of the plugs, and if the state is changed outside HA, it is updated, too. But I cannot toggle the switch. Nothing happens.

Debug log


2024-07-07 11:14:24.993 DEBUG (MainThread) [custom_components.meross_lan.mss210_###############################0] Polling begin
2024-07-07 11:14:24.993 DEBUG (MainThread) [custom_components.meross_lan.mss210_###############################0] Diagnostic scan begin
2024-07-07 11:14:24.993 DEBUG (MainThread) [custom_components.meross_lan.mss210_###############################0] TX(http) GET Appliance.Config.Info (messageId:13665c4f09d749129717a64eb7296fa6)
2024-07-07 11:14:25.033 DEBUG (MainThread) [custom_components.meross_lan.mss210_###############################0] HTTP ERROR GET Appliance.Config.Info (messageId:13665c4f09d749129717a64eb7296fa6 ServerDisconnectedError:Server disconnected)
2024-07-07 11:14:25.034 DEBUG (MainThread) [custom_components.meross_lan.mss210_###############################0] TX(http) GET Appliance.Encrypt.Suite (messageId:a3d6c1a7dfce4b6f9965dd92956e9437)
2024-07-07 11:14:25.110 DEBUG (MainThread) [custom_components.meross_lan.mss210_###############################0] RX(http) GETACK Appliance.Encrypt.Suite (messageId:a3d6c1a7dfce4b6f9965dd92956e9437)
2024-07-07 11:14:25.111 DEBUG (MainThread) [custom_components.meross_lan.mss210_###############################0] Handler undefined for method:GETACK namespace:Appliance.Encrypt.Suite payload:{'suite': {'ka': 'ecdhe256', 'se': 'mrskey', 'ds': ''}}
2024-07-07 11:14:25.111 DEBUG (MainThread) [custom_components.meross_lan.mss210_###############################0] MLDiagnosticSensor(suite_ka): init
2024-07-07 11:14:25.112 DEBUG (MainThread) [custom_components.meross_lan.mss210_###############################0] MLDiagnosticSensor(suite_se): init
2024-07-07 11:14:25.113 DEBUG (MainThread) [custom_components.meross_lan.mss210_###############################0] MLDiagnosticSensor(suite_ds): init
2024-07-07 11:14:25.113 DEBUG (MainThread) [custom_components.meross_lan.mss210_###############################0] TX(http) GET Appliance.Encrypt.ECDHE (messageId:e142cb827b4d4fc98a3047e0fb0601df)
2024-07-07 11:14:25.182 DEBUG (MainThread) [custom_components.meross_lan.mss210_###############################0] HTTP ERROR GET Appliance.Encrypt.ECDHE (messageId:e142cb827b4d4fc98a3047e0fb0601df ServerDisconnectedError:Server disconnected)
2024-07-07 11:14:25.183 DEBUG (MainThread) [custom_components.meross_lan.mss210_###############################0] TX(http) GET Appliance.System.Debug (messageId:8cfee454b7e947b1aa66630b40f70201)
2024-07-07 11:14:25.225 DEBUG (MainThread) [custom_components.meross_lan.mss210_###############################0] HTTP ERROR GET Appliance.System.Debug (messageId:8cfee454b7e947b1aa66630b40f70201 ServerDisconnectedError:Server disconnected)
2024-07-07 11:14:25.226 DEBUG (MainThread) [custom_components.meross_lan.mss210_###############################0] TX(http) GET Appliance.Control.OverTemp (messageId:b0d444d6f4474361b7b8a09f3c1f9f60)
2024-07-07 11:14:25.266 DEBUG (MainThread) [custom_components.meross_lan.mss210_###############################0] HTTP ERROR GET Appliance.Control.OverTemp (messageId:b0d444d6f4474361b7b8a09f3c1f9f60 ServerDisconnectedError:Server disconnected)
2024-07-07 11:14:25.267 DEBUG (MainThread) [custom_components.meross_lan.mss210_###############################0] TX(http) GET Appliance.Control.ToggleX (messageId:b1cb89c40fbc4b84a1c4b81badcf17b8)
2024-07-07 11:14:25.311 DEBUG (MainThread) [custom_components.meross_lan.mss210_###############################0] HTTP ERROR GET Appliance.Control.ToggleX (messageId:b1cb89c40fbc4b84a1c4b81badcf17b8 ServerDisconnectedError:Server disconnected)
2024-07-07 11:14:25.312 DEBUG (MainThread) [custom_components.meross_lan.mss210_###############################0] Diagnostic scan end
2024-07-07 11:14:25.312 DEBUG (MainThread) [custom_components.meross_lan.mss210_###############################0] Polling end
2024-07-07 11:14:55.314 DEBUG (MainThread) [custom_components.meross_lan.mss210_###############################0] Polling begin
2024-07-07 11:14:55.314 DEBUG (MainThread) [custom_components.meross_lan.mss210_###############################0] TX(http) GET Appliance.System.All (messageId:7aa722b1206f42ef954ff16c22d9b81c)
2024-07-07 11:14:55.642 DEBUG (MainThread) [custom_components.meross_lan.mss210_###############################0] RX(http) GETACK Appliance.System.All (messageId:7aa722b1206f42ef954ff16c22d9b81c)
2024-07-07 11:14:55.642 DEBUG (MainThread) [custom_components.meross_lan.mss210_###############################0] TX(http) SET Appliance.Control.Multiple (messageId:7f70de9815b64b949d7264fe864cd72f)
2024-07-07 11:14:55.686 DEBUG (MainThread) [custom_components.meross_lan.mss210_###############################0] HTTP ERROR SET Appliance.Control.Multiple (messageId:7f70de9815b64b949d7264fe864cd72f ServerDisconnectedError:Server disconnected)
2024-07-07 11:14:55.686 DEBUG (MainThread) [custom_components.meross_lan.mss210_###############################0] Appliance.Control.Multiple failed with no response: requests=3 expected size=1260
2024-07-07 11:14:55.686 DEBUG (MainThread) [custom_components.meross_lan.mss210_###############################0] Updating device_response_size_max:1405
2024-07-07 11:14:55.687 DEBUG (MainThread) [custom_components.meross_lan.mss210_###############################0] TX(http) GET Appliance.Encrypt.Suite (messageId:912f950a4b4240efa66d958b88b87483)
2024-07-07 11:14:55.762 DEBUG (MainThread) [custom_components.meross_lan.mss210_###############################0] RX(http) GETACK Appliance.Encrypt.Suite (messageId:912f950a4b4240efa66d958b88b87483)
2024-07-07 11:14:55.762 DEBUG (MainThread) [custom_components.meross_lan.mss210_###############################0] TX(http) GET Appliance.Config.OverTemp (messageId:62726e2a80414183a3ce8e86e7547484)
2024-07-07 11:14:55.808 DEBUG (MainThread) [custom_components.meross_lan.mss210_###############################0] HTTP ERROR GET Appliance.Config.OverTemp (messageId:62726e2a80414183a3ce8e86e7547484 ServerDisconnectedError:Server disconnected)
2024-07-07 11:14:55.808 DEBUG (MainThread) [custom_components.meross_lan.mss210_###############################0] TX(http) GET Appliance.System.DNDMode (messageId:2a74a8e0747745f9b556ee1ee74c04e3)
2024-07-07 11:14:55.849 DEBUG (MainThread) [custom_components.meross_lan.mss210_###############################0] HTTP ERROR GET Appliance.System.DNDMode (messageId:2a74a8e0747745f9b556ee1ee74c04e3 ServerDisconnectedError:Server disconnected)
2024-07-07 11:14:55.849 DEBUG (MainThread) [custom_components.meross_lan.mss210_###############################0] Polling end
2024-07-07 11:15:25.850 DEBUG (MainThread) [custom_components.meross_lan.mss210_###############################0] Polling begin
2024-07-07 11:15:25.850 DEBUG (MainThread) [custom_components.meross_lan.mss210_###############################0] TX(http) GET Appliance.System.All (messageId:bf5aa53925b24bde9a7cfd9c0fb9e6ec)
2024-07-07 11:15:26.177 DEBUG (MainThread) [custom_components.meross_lan.mss210_###############################0] RX(http) GETACK Appliance.System.All (messageId:bf5aa53925b24bde9a7cfd9c0fb9e6ec)
2024-07-07 11:15:26.178 DEBUG (MainThread) [custom_components.meross_lan.mss210_###############################0] Polling end
2024-07-07 11:15:27.799 DEBUG (MainThread) [custom_components.meross_lan.mss210_###############################0] TX(http) SET Appliance.Control.ToggleX (messageId:d6f49b60d294487787e54eb67c6ba33a)
2024-07-07 11:15:27.841 DEBUG (MainThread) [custom_components.meross_lan.mss210_###############################0] HTTP ERROR SET Appliance.Control.ToggleX (messageId:d6f49b60d294487787e54eb67c6ba33a ServerDisconnectedError:Server disconnected)
krahabb commented 1 month ago

Hello @phhoef, It looks as if your devices need enrcyption support to correctly work locally. This has been implemented (see #456) and is available on the 'beta channel'. If you're (likely) still on the currently published 5.2.2 this is expected. I'm struggling a bit to finally release a public version with all of the fixes but if you're using HACS and enable the 'beta releases' in that, you'll be able to download an 'almost finished' component version. I'm confident the current 5.3.0-beta.1 available is stable enough to guarantee better behavior with your mss210(s)

phhoef commented 1 month ago

Hallo @krahabb ,

thanks for your quick reply πŸ˜„ Sorry for not pointing out the version in my initial post. You're right, currently version 5.2.2 is installed through HACS.

I would like to follow your suggestion and install the 5.3.0-beta.1, but I am struggling to activate the beta channel. I know it's not related to your extension, but to HACS. I read the documentation, but I am uncertain, as I have not configured a repository. Not sure how to enable beta for the default repository? Would you mind giving me some guidance on this?

Thanks a lot!

phhoef commented 1 month ago

I found it out and installed the latest beta πŸ˜„ Indeed, it's working now. I can toggle the switches through HA.

Thanks for your help πŸ‘