Coder Social home page Coder Social logo

homebridge-platform-smartac's Introduction

homebridge-platform-smartac

A homebridge plug-in for ThinkEco SmartAC thermostats. Allows you to use your SmartAC thermostats with Siri / HomeKit.

If you live in NYC, you can get these units for free as part of ConEd's coolNYC / Smart AC program.

Installation

  1. Ensure that you are running Node.js v7.6 or higher. As of this writing, that means you should be running the 8.x LTS version. If you're unsure what version you've got installed, you can check using: node --version
  2. Install homebridge using: npm install -g homebridge
  3. Install this plugin using: npm install -g homebridge-platform-smartac
  4. Update your configuration file. See config-sample.json in this repository for an example.

That's it! All thermostats configured in your mymodlet.com account should now be available in the Home app on iOS.

Configuration

You just need to provide the username and password that you use to log in to mymodlet.com in your homebridge configuration. For example:

"platforms": [
    {
      "platform": "SmartAC",
      "name": "ThinkEco SmartAC Platform",
      "username": "[email protected]",
      "password": "XXXX"
    }
]

platform must be "SmartAC". You can use any value for name that you'd like.

homebridge-platform-smartac's People

Contributors

dave-atx avatar dfurnes avatar

Stargazers

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

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

homebridge-platform-smartac's Issues

Modlet/SmartAC went down this morning and now AC is stuck updating

This morning the Modlet service went down. I contacted tech support to confirm it was down. The app did not work nor the website. Now it is back online but my Modlet is stuck "updating" in the Home app. Any idea what the issue is? Please let me know if you need additional info to troubleshoot.

Unresponsive due to characteristic issues

Homebridge becomes unresponsive at least once a day, log stuff below with link to https://github.com/homebridge/homebridge/wiki/Characteristic-Warnings.

[6/27/2021, 12:38:47 PM] [homebridge-platform-smartac] This plugin slows down Homebridge. The read handler for the characteristic 'Active' didn't respond at all!. Please check that you properly call the callback! See https://git.io/JtMGR for more info.

In HB debug mode, trying to set the temp to 80°:
[6/27/2021, 12:42:47 PM] [SmartAC] Bedroom AC set target temp: 80 / 26.700000000000003
[6/27/2021, 12:42:47 PM] [homebridge-platform-smartac] Characteristic 'Cooling Threshold Temperature': SET handler returned write response value, though the characteristic doesn't support write response. See https://git.io/JtMGR for more info.
[6/27/2021, 12:42:47 PM] [homebridge-platform-smartac] Error: at CoolingThresholdTemperature.Characteristic.characteristicWarning (/usr/lib/node_modules/homebridge/node_modules/hap-nodejs/src/lib/Characteristic.ts:2038:105) at /usr/lib/node_modules/homebridge/node_modules/hap-nodejs/src/lib/Characteristic.ts:1663:22 at /usr/lib/node_modules/homebridge/node_modules/hap-nodejs/src/lib/util/once.ts:9:18 at /usr/lib/node_modules/homebridge-platform-smartac/index.js:272:30 at processTicksAndRejections (internal/process/task_queues.js:95:5)

Extended Support

I use a Honeywell WiFi thermostat. Is there a way to extend support Homebridge for Honeywell too?

Plugin not loading on OS X Mavericks

This plugin isn't loading on my home bridge installation running on OS X 10.9.5 Any help you can give would be greatly appreciated. Here's the error it gives:

====================
[7/10/2017, 4:38:18 PM] ERROR LOADING PLUGIN homebridge-platform-smartac:
[7/10/2017, 4:38:18 PM] /usr/local/lib/node_modules/homebridge-platform-smartac/index.js:82
async auth() {
^^^^
SyntaxError: Unexpected identifier
at createScript (vm.js:56:10)
at Object.runInThisContext (vm.js:97:10)
at Module._compile (module.js:542:28)
at Object.Module._extensions..js (module.js:579:10)
at Module.load (module.js:487:32)
at tryModuleLoad (module.js:446:12)
at Function.Module._load (module.js:438:3)
at Module.require (module.js:497:17)
at require (internal/module.js:20:19)
at Plugin.load (/usr/local/lib/node_modules/homebridge/lib/plugin.js:65:22)
at Server. (/usr/local/lib/node_modules/homebridge/lib/server.js:132:14)
at Array.forEach (native)
at Server._loadPlugins (/usr/local/lib/node_modules/homebridge/lib/server.js:128:22)
at new Server (/usr/local/lib/node_modules/homebridge/lib/server.js:51:24)
at module.exports (/usr/local/lib/node_modules/homebridge/lib/cli.js:26:16)
at Object. (/usr/local/lib/node_modules/homebridge/bin/homebridge:17:22)
at Module._compile (module.js:570:32)
at Object.Module._extensions..js (module.js:579:10)
at Module.load (module.js:487:32)
at tryModuleLoad (module.js:446:12)
at Function.Module._load (module.js:438:3)
at Module.runMain (module.js:604:10)
[7/10/2017, 4:38:18 PM] ====================

No response from smartac plugs, restart does not fix issue

My smartac plugs have stopped working after a week or two of working. I have restarted my home bridge docker container and that did not fix the issue. I also restarted my server running the container to see if that would fix the issue. I am happy to help you troubleshoot this.

No longer working with new Homebridge, Node.js v12.16.3

Hello! And thanks for this, it has been working great for me, up until a few days ago.

Currently running a Pi 3 with the newer "Homebridge Raspberry Pi Image"

I have installed the plugin through the new Homebridge.local control center, input the code lines with my email and password, and nothing is showing up anymore.
I had this running successfully up until a few days ago.
Any idea what could be causing this issue?

Config file is this:

{
"bridge": {
"name": "Homebridge DAC1",
"username": "0E:A4:77:F5:B9:9C",
"port": 51401,
"pin": "227-63-668"
},
"accessories": [],
"platforms": [
{
"name": "Config",
"port": 8581,
"auth": "form",
"theme": "auto",
"tempUnits": "c",
"lang": "auto",
"accessoryControl": {
"debug": true
},
"platform": "config"
},
{
"platform": "SmartAC",
"name": "ThinkEco SmartAC Platform",
"username": "[email protected]",
"password": "XXXX"
}
]
}

Is there something I'm missing?

Much appreciated

Unhandled promise rejection

Hi,

This plugin has been working great for months, but today it stopped and I noticed that I'm getting an unhandled promise rejection warning when I try to run homebridge. Seems like ThinkEco has updated their website...maybe this has something to do with it?

plugin won't load

I can't get the plugin to load. Here's the relevant error log:

[7/20/2017, 10:10:43 PM] ====================
[7/20/2017, 10:10:43 PM] ERROR LOADING PLUGIN homebridge-platform-smartac:
[7/20/2017, 10:10:43 PM] /usr/local/lib/node_modules/homebridge-platform-smartac/index.js:82
  async auth() {
        ^^^^
SyntaxError: Unexpected identifier
    at createScript (vm.js:56:10)
    at Object.runInThisContext (vm.js:97:10)
    at Module._compile (module.js:542:28)
    at Object.Module._extensions..js (module.js:579:10)
    at Module.load (module.js:487:32)
    at tryModuleLoad (module.js:446:12)
    at Function.Module._load (module.js:438:3)
    at Module.require (module.js:497:17)
    at require (internal/module.js:20:19)
    at Plugin.load (/usr/local/lib/node_modules/homebridge/lib/plugin.js:65:22)
[7/20/2017, 10:10:43 PM] ====================
[7/20/2017, 10:10:44 PM] Loaded plugin: homebridge-platform-wemo
[7/20/2017, 10:10:44 PM] Registering platform 'homebridge-platform-wemo.BelkinWeMo'
[7/20/2017, 10:10:44 PM] ---
[7/20/2017, 10:10:44 PM] Loaded config.json with 2 accessories and 2 platforms.
[7/20/2017, 10:10:44 PM] ---
[7/20/2017, 10:10:44 PM] Loading 2 platforms...
[7/20/2017, 10:10:44 PM] [WeMo Platform] Initializing BelkinWeMo platform...
/usr/local/lib/node_modules/homebridge/lib/api.js:122
      throw new Error("The requested platform '" + name + "' was not registered by any plugin.");
      ^

Error: The requested platform 'SmartAC' was not registered by any plugin.
    at API.platform (/usr/local/lib/node_modules/homebridge/lib/api.js:122:13)
    at Server._loadPlatforms (/usr/local/lib/node_modules/homebridge/lib/server.js:284:45)
    at Server.run (/usr/local/lib/node_modules/homebridge/lib/server.js:80:36)
    at module.exports (/usr/local/lib/node_modules/homebridge/lib/cli.js:40:10)
    at Object.<anonymous> (/usr/local/lib/node_modules/homebridge/bin/homebridge:17:22)
    at Module._compile (module.js:570:32)
    at Object.Module._extensions..js (module.js:579:10)
    at Module.load (module.js:487:32)
    at tryModuleLoad (module.js:446:12)
    at Function.Module._load (module.js:438:3)
    at Module.runMain (module.js:604:10)
    at run (bootstrap_node.js:389:7)
    at startup (bootstrap_node.js:149:9)
    at bootstrap_node.js:504:3

I verified my config.json on jsonlint.com. Also, I've successfully gotten Homebridge to work with other accessories, so I know my setup is sound.

Any ideas?

AC doesn't show up in iOS control center

Hi Dave,

I am not sure if this is an issue with homebridge or the plugin (unlikely) but my ACs do not show up in the iOS control center, which is unfortunate. I do have the 'Include in Favorites' setting on, and they show up on the favorite page in the Apple Home app, but not in control center :( I wonder if it's because the accessories are not 'homekit certified' ?

Do they show up in control center on your iphone?

Any chance of a http API?

I came to your plugin because it's the only option for outside control of these ThinkEco SmartAC units - so thanks for the great work.

Unfortunately, I don't use any iOS devices and so I can't actually use this in homekit. However, I do use Home Assistant. Ideally, I'd like to have Home Assistant send http API calls to your plugin to poll the current temperature, set the temperature, and of course turn the AC on/off.

I don't know the first thing about the work it took to get this up and running, so perhaps this would be a nightmare for you. But if it's possible, I think it would extend the functionality greatly (at least for me!)

SmartAC program end!

Hey guys, like you all, I’ve been loving this. Just got an email that smart ac program is ending, we can keep the hardwAre, but I assume the site will close down, has anyone got ideas as to how we can keep this project running?

Feature request: Temperature sensor

The SmartAC app provides the current temperature in the room. The Homebridge plugin only provides the temperature to which you have set the thermostat to. I am cognizant that this plugin has not been updated in a while, but it would be cool if you could add a temperature sensor that appears in the home app.

Getting a 302 on login

I continue to get this error:

StatusCodeError: 302 - "<html><head><title>Object moved</title></head><body>\r\n<h2>Object moved to <a href=\"/Account/Login\">here</a>.</h2>\r\n</body></html>\r\n"

I've double checked that login credentials are right. Any ideas?

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.