Coder Social home page Coder Social logo

homebridge-eufy's People

Contributors

dependabot[bot] avatar ingorichter avatar sebmos avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

homebridge-eufy's Issues

Accessories No Longer Appear

@sebmos Yesterday, after rebooting my Raspberry Pi, the plugin attempted to start and received several errors. Prior, everything worked as normal and was able to setup successfully. No changes were made other than a reboot. Any help would be greatly appreciated.
5BD2B7BD-B5CD-4E46-BEBF-D715BCB0E83F

Unable to switch Eufy lightbulb on or off

I have a Eufy T1013 lightbulb and I can control it from the app and from https://github.com/sebmos/node-eufy-api
Unfortunately, I can't control it in homebridge. The lightbulb appears in the device list.
I'm using homebridge 1.2.5 and version 0.3.3 of the bridge

[1/28/2021, 8:29:18 PM] [eufy] Error getting color saturation on device: Leselampe  -  Error: Socket closed without sending response
    at Timeout.<anonymous> (/homebridge/node_modules/homebridge-eufy/node_modules/node-eufy-api/lib/tcp-socket.js:153:48)
    at listOnTimeout (internal/timers.js:554:17)
    at processTimers (internal/timers.js:497:7)
[1/28/2021, 8:29:18 PM] [eufy] Error getting temperature on device: Leselampe  -  Error: Socket closed without sending response
    at Timeout.<anonymous> (/homebridge/node_modules/homebridge-eufy/node_modules/node-eufy-api/lib/tcp-socket.js:153:48)
    at listOnTimeout (internal/timers.js:554:17)
    at processTimers (internal/timers.js:497:7)
[1/28/2021, 8:29:18 PM] [eufy] Error loading power state on device: Leselampe  -  Error: Socket closed without sending response
    at Timeout.<anonymous> (/homebridge/node_modules/homebridge-eufy/node_modules/node-eufy-api/lib/tcp-socket.js:153:48)
    at listOnTimeout (internal/timers.js:554:17)
    at processTimers (internal/timers.js:497:7)
[1/28/2021, 8:29:18 PM] [eufy] Error getting brightness on device: Leselampe  -  Error: Socket closed without sending response
    at Timeout.<anonymous> (/homebridge/node_modules/homebridge-eufy/node_modules/node-eufy-api/lib/tcp-socket.js:153:48)
    at listOnTimeout (internal/timers.js:554:17)
    at processTimers (internal/timers.js:497:7)
[1/28/2021, 8:29:18 PM] [eufy] Error getting color hue on device: Leselampe  -  Error: Socket closed without sending response
    at Timeout.<anonymous> (/homebridge/node_modules/homebridge-eufy/node_modules/node-eufy-api/lib/tcp-socket.js:153:48)
    at listOnTimeout (internal/timers.js:554:17)
    at processTimers (internal/timers.js:497:7)

Eufy Smart Switch Error

I have been using this plugin for months with no issue.
Within the last couple of days I realized that this Homebridge plugin was not finding my smart switches.
Here is the log with the issue

11/9/2021, 11:12:03 AMEufy Bridge starting
11/9/2021, 11:12:09 AMEufy BridgeLoaded plugin 'homebridge-eufy'
11/9/2021, 11:12:09 AMEufy BridgeLoading 1 platforms...
11/9/2021, 11:12:09 AMEufy BridgeeufyhomeEufy initializing
11/9/2021, 11:12:09 AMEufy BridgeBridge is running on port 51846.
11/9/2021, 11:12:10 AMEufy BridgeeufyhomeAdd Accessory: Den Lights - 5HE38J93H27BH33
11/9/2021, 11:12:10 AMEufy BridgeeufyhomeAdd Accessory: Bedroom Lights - 2FE78004CC1C4607
11/9/2021, 11:12:12 AMEufy BridgeeufyhomeError connecting to accessory: Error: Socket closed without sending response
    at Timeout.<anonymous> (/var/lib/hoobs/eufybridge/node_modules/node-eufy-api/lib/tcp-socket.js:153:48)
    at listOnTimeout (internal/timers.js:557:17)
    at processTimers (internal/timers.js:500:7)
11/9/2021, 11:12:12 AMEufy BridgeeufyhomeRemoving accessory: Den Lights
11/9/2021, 11:12:12 AMEufy BridgeeufyhomeError connecting to accessory: Error: Socket closed without sending response
    at Timeout.<anonymous> (/var/lib/hoobs/eufybridge/node_modules/node-eufy-api/lib/tcp-socket.js:153:48)
    at listOnTimeout (internal/timers.js:557:17)
    at processTimers (internal/timers.js:500:7)
11/9/2021, 11:12:12 AMEufy BridgeeufyhomeRemoving accessory: Bedroom Lights
11/9/2021, 11:12:12 AMEufy BridgeeufyhomeError loading power state on device: Den Lights  -  Error: Socket closed without sending response
    at Timeout.<anonymous> (/var/lib/hoobs/eufybridge/node_modules/node-eufy-api/lib/tcp-socket.js:153:48)
    at listOnTimeout (internal/timers.js:557:17)
    at processTimers (internal/timers.js:500:7)
11/9/2021, 11:12:12 AMEufy BridgeeufyhomeError loading power state on device: Bedroom Lights  -  Error: Socket closed without sending response
    at Timeout.<anonymous> (/var/lib/hoobs/eufybridge/node_modules/node-eufy-api/lib/tcp-socket.js:153:48)
    at listOnTimeout (internal/timers.js:557:17)
    at processTimers (internal/timers.js:500:7)

RoboVac

Please you can add eufy RoboVac to this homebridge.

0.4.0 fails to load, 0.3.5 loads fine

NodeJS: 14.9.1
Homebridge: 1.4.0

[4/6/2022, 8:02:33 PM] ERROR LOADING PLUGIN homebridge-eufy:
[4/6/2022, 8:02:33 PM] /usr/lib/node_modules/homebridge-eufy/node_modules/node-eufy-api/lib/index.js:1
import fetch from "node-fetch";
^^^^^^
SyntaxError: Cannot use import statement outside a module
    at wrapSafe (internal/modules/cjs/loader.js:1001:16)
    at Module._compile (internal/modules/cjs/loader.js:1049:27)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1114:10)
    at Module.load (internal/modules/cjs/loader.js:950:32)
    at Function.Module._load (internal/modules/cjs/loader.js:790:12)
    at Module.require (internal/modules/cjs/loader.js:974:19)
    at require (internal/modules/cjs/helpers.js:101:18)
    at Object.<anonymous> (/usr/lib/node_modules/homebridge-eufy/lib/index.js:2:23)
    at Module._compile (internal/modules/cjs/loader.js:1085:14)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1114:10)
[4/6/2022, 8:02:33 PM] ====================

I saw #20 and think this might be similar.

When I check node-eufy-api's package.json I see this:

  "_from": "node-eufy-api@^0.4.0",
  "_id": "[email protected]",
  "_inBundle": false,
  "_integrity": "sha512-m5Kg5USpK8r+rxEoF1fJtIZpt5Gb/DT+ze1T6b0h4tVc2skicdqxtRd0YB1j+pY6v/dqOzRUuMc1PQ+6BlXwMg==",
  "_location": "/homebridge-eufy/node-eufy-api",
  "_phantomChildren": {},
  "_requested": {
    "type": "range",
    "registry": true,
    "raw": "node-eufy-api@^0.4.0",
    "name": "node-eufy-api",
    "escapedName": "node-eufy-api",
    "rawSpec": "^0.4.0",
    "saveSpec": null,
    "fetchSpec": "^0.4.0"
  },

I don't know enough about node to tell if that means 0.4.1 or 0.4.0 is installed.

Either way, 0.3.5 works fine so I'll keep using that until I can get this resolved. Any ideas?

Other categories of devices

Hi there. Does your homebridge plug-in support the Eufy line of Wi-Fi enabled vacuum cleaners? Even if it did, would there be any merit in exposing them to Homekit as I'm not sure what level of functionality would then be displayed in a homekit app? Thanks.

Support for Robovax hoovers

I’m just wondering if there’s any way of integrating the The Robovax as a virtual switch this might be a way of integrating it into HomeKit

Homebridge Not Finding Bulbs

I installed homebridge and setup the config file like this:

{
  "bridge": {
    "name": "Homebridge",
    "username": "CC:22:3D:E3:CE:30",
    "port": 51826,
    "pin": "031-45-154"
  },

  "description": "This is an example configuration file with one fake accessory and one fake platform. You can use this as a template for creating your own configuration file containing devices you actually own.",
  "ports": {
    "start": 52100,
    "end": 52150,
    "comment": "This section is used to control the range of ports that separate accessory (like camera or television) should be bind to."
  },
  "accessories": [
  ],

  "platforms": [{
    "platform": "eufy",
    "name": "eufy",
    "email": "my email",
    "password": "my pass"
    }]
}

However, after adding Homebridge to my Homekit through scanning the code, my bulbs connected in the app are still not showing up. Am I doing something wrong and missing a step?

Socket Closed without sending response

Hi, I’m getting an error when booting up Homebridge. Both are Eufy white/color bulbs. As Homebridge starts, I see the plugin “Add Accessory” and identify each bulb. However, it then generates and error “connecting to accessory: Error: Socket closed without sending response.” It then removes the accessory (bulb). Any thoughts? Tried reinstalling the plugin.

socket closed - attempting restart - ERROR

hi,
i have recently installed your plugin, with some others.
I then started to get an error socket closed - attempting restart in my log. I couldn't work it out, so i deleted all of my plugins, one at a time, until this one was left. I deleted yours and the error stopped I re-added it and the errors came back again..
It appears to poll and then just keeps reporting the error.
Screenshot 2019-03-18 at 07 45 02

0.4.0 plugin fails to load, previous rev is fine.

ERROR LOADING PLUGIN homebridge-eufy:
[1/29/2022, 9:52:37 AM] Error [ERR_REQUIRE_ESM]: Must use import to load ES Module: /usr/lib/node_modules/homebridge-eufy/node_modules/node-eufy-api/lib/index.js
require() of ES modules is not supported.
require() of /usr/lib/node_modules/homebridge-eufy/node_modules/node-eufy-api/lib/index.js from /usr/lib/node_modules/homebridge-eufy/lib/index.js is an ES module file as it is a .js file whose nearest parent package.json contains "type": "module" which defines all .js files in that package scope as ES modules.
Instead rename /usr/lib/node_modules/homebridge-eufy/node_modules/node-eufy-api/lib/index.js to end in .cjs, change the requiring code to use import(), or remove "type": "module" from /usr/lib/node_modules/homebridge-eufy/node_modules/node-eufy-api/package.json.

at new NodeError (internal/errors.js:322:7)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1102:13)
at Module.load (internal/modules/cjs/loader.js:950:32)
at Function.Module._load (internal/modules/cjs/loader.js:790:12)
at Module.require (internal/modules/cjs/loader.js:974:19)
at require (internal/modules/cjs/helpers.js:93:18)
at Object.<anonymous> (/usr/lib/node_modules/homebridge-eufy/lib/index.js:2:23)
at Module._compile (internal/modules/cjs/loader.js:1085:14)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1114:10)
at Module.load (internal/modules/cjs/loader.js:950:32)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.