mwraith / homebridge-somfi-blinds

A Homebridge plugin to control any device with the Somfy RTS technology with a Raspberry Pi connected to a simple 433 MHz transmitter. Adapted from wibberryd/homebridge-rpi-rts, but provides a stateful service.
MIT License
7 stars 3 forks source link

Error: Cannot find module '@babel/types' #2

Closed bosu1787 closed 2 years ago

bosu1787 commented 2 years ago

hello the plugin gives me an error

==================== [20.01.2022, 20:50:02] ERROR LOADING PLUGIN homebridge-somfi-blinds: [20.01.2022, 20:50:02] Error: Cannot find module '@babel/types' Require stack:

mwraith commented 2 years ago

Hi @bosu1787

I pushed v0.2 with a fix to the dependencies. Can you please try and let me know?

bosu1787 commented 2 years ago

still got this error

[21.01.2022, 08:23:07] No plugin was found for the accessory "Somfy Blinds Remote" in your config.json. Please make sure the corresponding plugin is installed correctly. [21.01.2022, 08:23:07] No plugin was found for the accessory "Somfy Blinds Remote" in your config.json. Please make sure the corresponding plugin is installed correctly.

bosu1787 commented 2 years ago

changing in config.json from "accessory": "Somfy Blinds Remote" to "accessory": "Somfy Blinds" works. do you know if we can change the icon type from switch to blinds or curtains? that will be nice :) like native.

bosu1787 commented 2 years ago

@mwraith update 0.2.1 didnt fix the accessory name. still got this error:

21.01.2022, 13:53:48] No plugin was found for the accessory "Somfy Blinds Remote" in your config.json. Please make sure the corresponding plugin is installed correctly. [21.01.2022, 13:53:48] No plugin was found for the accessory "Somfy Blinds Remote" in your config.json. Please make sure the corresponding plugin is installed correctly. [21.01.2022, 13:53:48] No plugin was found for the accessory "Somfy Blinds Remote" in your config.json. Please make sure the corresponding plugin is installed correctly. [21.01.2022, 13:53:48] No plugin was found for the accessory "Somfy Blinds Remote" in your config.json. Please make sure the corresponding plugin is installed correctly.

mwraith commented 2 years ago

I left the accessory name as "Somfy Blinds" but just changed the default config so that the next user setting up from scratch should get the right value without having to modify the config manually.

I took a quick look at the icon type. There's no way to override it. I suspect in HomeBridge the Window Covering service type would show a better icon, but the problem is it then doesn't work as an on/off switch but rather a % open. Given there is no way to properly control % opening as the device doesn't report a state and using timing would be super flakey, I think I'd rather leave it as a switch and accept the icon. Open to other views though.

bosu1787 commented 2 years ago

from what i know from mqtt i think is an option you can enable with % or only close and open. same as for the fan. for exemple for fan you have an option with% or only on&off

bosu1787 commented 2 years ago

yep i checked apple homekit have window covering only with % mabe in the future we will able to change icon directly from home app. :)

mwraith commented 2 years ago

@bosu1787 The window covering icon feature is now available. I realised that although you have to set a %, you can set a step-size that forces it to be fully open or fully closed.

bosu1787 commented 2 years ago

@mwraith wow nice :D best plugin ever. thank you.