Giter Site home page Giter Site logo

midea-air-condition's Introduction

midea-air-condition's People

Contributors

prozsolt avatar yitsushi 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  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

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

midea-air-condition's Issues

This is using the cloud?

Just found your project here on GitHub.

Is this implementation using the cloud?

Is there anyway to not use the cloud (using it locally only)?

Local mode

Hi!

Thank you very much for this api, it works very well.

Do you know how to change it to use on local network (connect to device directly) instead of using cloud?

Best regards,
Jacek

temperature MODE (heat or cool)

Its not possible turn on AC in mode Heat. I possible add command like this:

command.mode heat
command.mode cool

Thanks, for good joob done

Temperature units

First off, kudos! This library is awesome and is working well with Mr Cool DIY 12k mini-split (whitelabel midea). However, any set command changes the temperature unit from F to C.

Is it possible to retain the current setting or at least for me to hard code it somewhere (in the data I presume)?

builder.finalize generates all zeroes on ruby 2.4.0

i don't know if it's just me or ruby version, but i'm getting (i've just added printing args and results in send_api_request to your example code from readme):

# ./midea.rb 
{"appId":1017,"format":2,"clientType":1,"language":"en_US","src":17,"stamp":"20180828180446","loginAccount":"[email protected]","sign":"xxx"}
{"msg":"","result":{"loginId":"416aab29-3160-4ea9-a478-2684d6802c8e"},"errorCode":"0"}
{"loginId"=>"416aab29-3160-4ea9-a478-2684d6802c8e"}
{"appId":1017,"format":2,"clientType":1,"language":"en_US","src":17,"stamp":"20180828180447","loginAccount":"[email protected]","password":"xxx","sign":"xxx"}
{"msg":"","result":{"originPrivateVersion":"","nickname":"[email protected]","sessionId":"xxx","accessToken":"xxx","userId":"703005","versionCode":"","leftCount":""},"errorCode":"0"}
{"originPrivateVersion"=>"", "nickname"=>"[email protected]", "sessionId"=>"xxx", "accessToken"=>"xxx", "userId"=>"703005", "versionCode"=>"", "leftCount"=>""}
{"appId":1017,"format":2,"clientType":1,"language":"en_US","src":17,"stamp":"20180828180448","sessionId":"xxx","sign":"xxx"}
{"msg":"","result":{"list":[{"number":"703005","isDefault":"1","createUserId":"703005","des":"","address":"","coordinate":"","createTime":"2018-08-27 17:56:59","roleId":"1001","name":"","nickname":"","id":"703005"}]},"errorCode":"0"}
{"list"=>[{"number"=>"703005", "isDefault"=>"1", "createUserId"=>"703005", "des"=>"", "address"=>"", "coordinate"=>"", "createTime"=>"2018-08-27 17:56:59", "roleId"=>"1001", "name"=>"", "nickname"=>"", "id"=>"703005"}]}
{"appId":1017,"format":2,"clientType":1,"language":"en_US","src":17,"stamp":"20180828180450","homegroupId":"703005","sessionId":"xxx","sign":"xxx"}
{"msg":"","result":{"list":[{"des":"","activeStatus":"1","onlineStatus":"1","name":"Kondycjoner","modelNumber":"0","id":"17592186059380","sn":"4438b04aa5eb780f2fafb2e2eba48474ec4eb27af92cfe4d580953370fb8a137fa04a2251c9b08b7f85672154b3391be","type":"0xAC"}]},"errorCode":"0"}
{"list"=>[{"des"=>"", "activeStatus"=>"1", "onlineStatus"=>"1", "name"=>"Kondycjoner", "modelNumber"=>"0", "id"=>"17592186059380", "sn"=>"4438b04aa5eb780f2fafb2e2eba48474ec4eb27af92cfe4d580953370fb8a137fa04a2251c9b08b7f85672154b3391be", "type"=>"0xAC"}]}
[id=17592186059380 type=0xAC] Kondycjoner is online and active.
{"appId":1017,"format":2,"clientType":1,"language":"en_US","src":17,"stamp":"20180828180450","order":"\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000","funId":"0000","applianceId":"17592186059380","sessionId":"xxx","sign":"xxx"}
{"msg":"system error","errorCode":"9999"}
/root/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/midea-air-condition-0.0.2/lib/client.rb:103:in `block in send_api_request': system error (RuntimeError)
	from /root/.rbenv/versions/2.4.0/lib/ruby/2.4.0/net/http.rb:877:in `start'
	from /root/.rbenv/versions/2.4.0/lib/ruby/2.4.0/net/http.rb:608:in `start'
	from /root/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/midea-air-condition-0.0.2/lib/client.rb:96:in `send_api_request'
	from /root/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/midea-air-condition-0.0.2/lib/client.rb:90:in `api_request'
	from /root/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/midea-air-condition-0.0.2/lib/client.rb:52:in `appliance_transparent_send'
	from ./midea.rb:33:in `<main>'

ruby 2.4.0p0 (2016-12-24 revision 57164) [armv7l-linux-eabihf] running on Raspbian GNU/Linux 9.4 (stretch)

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.