Git Product home page Git Product logo

cmdswitch2-ecovacs's Introduction

Cmdswitch2-Ecovacs

A Python script to integrate your Ecovacs vacuum to Homekit.

Requirements

This script assumes you have the following installed:

Installation

  1. Enter your Ecovacs credentials into the python script
  2. Run the script as state_cmd in your config.json file.

Example configuration

"platforms": [{
   "platform": "cmdSwitch2",
   "name": "CMD Switch",
   "switches": [{
       "name": "Vacuum",
       "on_cmd": "sucks clean 120",
       "off_cmd": "sucks charge",
       "state_cmd": "python3 /var/homebridge/vacstate.py",
       "polling": true,
       "interval": 120,
       "timeout": 20
   }]

License

MIT

cmdswitch2-ecovacs's People

Contributors

etiennemd avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

cmdswitch2-ecovacs's Issues

Setting up with Homebridge

This isn't an issue with your script, so apologies - but you seem like the best person to ask :)

I have sucks installed on my raspberry pi, and when I try to do sucks login, I get "-bash: sucks: command not found".

I've confirmed that sucks is installed using pip3 freeze. Any ideas?

Thanks,

Kyle

Vacuum State is Incorrect in Homekit

I went through all the steps and got this running; however, the vacuum state is incorrect. It's in the charging base turned off, but the Home App is showing it's on. When I go to turn off the robot in the Home App, it changes to "No Reponse" and I get this error in the Homebridge logs, "[CMD Switch] Failed to turn off Vacuum". What am I doing wrong? Any help would be greatly appreciated.

hoping someone with more experience could take a look

I am able to use sucks from the command line but when I try to integrate with CMDswitch I am getting some errors, My homebridge logs are showing some issues:

When I try turning on the vacuum using homekit on my phone I get the following message:

[Homebridge] [1/4/2020, 13:47:35] [CMD Switch] Failed to turn on Vacuum
[Homebridge] [1/4/2020, 13:47:35] [CMD Switch] /bin/sh: 1: sucks: not found

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.