bwp91 / homebridge-meross

Homebridge plugin to integrate Meross devices into HomeKit.
MIT License
201 stars 32 forks source link

Smart Plugs should be Display as Outlets instead of Switch (or both ?) #461

Closed laszlotuss closed 1 year ago

laszlotuss commented 1 year ago

On the left I have my 2 Tapo outlets also thru Homebridge with can be displayed as Outlet, while the Smart Plug is a Meross one which displayed as a Switch.

IMG_8214

bwp91 commented 1 year ago

Hi @laszlotuss

You can use the plugin config to choose how these accessories appear (as a switch or outlet or even an air purifier if you want!)

You just need the long device uuid that is shown in the log when the plugin starts and the configuration items will appear in the settings

laszlotuss commented 1 year ago

Hey @bwp91

So I fetched the long device uuid and tried to set it up manually as an outlet, yet not it's not appearing now.

[Meross] [Smart Plug] not initialising cloud device as ignored or configured locally.
[Meross] [undefined] could not be initialised as Cannot read properties of undefined (reading 'toUpperCase') at default.initialiseDevice (file:///volume2/homebridge/node_modules/homebridge-meross/lib/platform.js:410:42).

Am I missing something ?

Képernyőfotó 2022-11-18 - 0 43 03
laszlotuss commented 1 year ago

Okay, I guess it doesn't like deviceUrl if it's a default type connection.

Bot now it works and appears as an Outlet as it should be. Thank you for your help.

Képernyőfotó 2022-11-18 - 1 17 22