Giter Club home page Giter Club logo

homebridge-nature-remo-cloud-aircon's Introduction

npm

homebridge-nature-remo-cloud-aircon

Homebridge Plug-in for Air Conditioner Managed by Nature Remo.

npm install -g homebridge-nature-remo-cloud-aircon

Example:

...

"accessories": [
  {
    "accessory": "NatureRemoAircon",
    "name": "Air Conditioner",
    "access_token": "xxxxxxxxx_xxxxxxxxxxxxxxx_x_xxxxxx_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
    "appliance_id": "",
    "skip_command_request_if_no_change": true
  }
]

...
  • Please get your access token at https://home.nature.global/ and set it to access_token.
  • appliance_id can be left blank if you only have one aircon.
  • skip_command_request_if_no_change can be omitted (Default: true). With this option enabled, command request (e.g. mode or temperature change) will not be sent to Nature Remo API if the request will change nothing by comparing it with the current AC state managed by Nature Remo. You may want to turn this false if you control your AC using both Nature Remo and factory hardware remotes in your Home since the latest AC state in the Nature Remo might be incorrect.

homebridge-nature-remo-cloud-aircon's People

Contributors

hirosan18 avatar kmaehashi avatar mash avatar yujinakayama 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

Watchers

 avatar  avatar  avatar  avatar  avatar

homebridge-nature-remo-cloud-aircon's Issues

TypeErrorが出てしまいます。

こんにちは。
homebridge-dyson-linkとの併用にて、下記のエラーが出てしまいました。
解決策をご教授いただけませんでしょうか?

[2020/4/16 13:58:23] TypeError: Cannot read property 'settings' of null
    at NatureRemoAircon.getHeatingCoolingState (/usr/local/lib/node_modules/homebridge-nature-remo-aircon/index.js:315:34)
    at Characteristic.CurrentHeatingCoolingState.emit (events.js:189:13)
    at Characteristic.CurrentHeatingCoolingState.Characteristic.getValue (/usr/local/lib/node_modules/homebridge/node_modules/hap-nodejs/lib/Characteristic.js:164:10)
    at Bridge.<anonymous> (/usr/local/lib/node_modules/homebridge/node_modules/hap-nodejs/lib/Accessory.js:771:20)
    at Array.forEach (<anonymous>)
    at Bridge.Accessory._handleGetCharacteristics (/usr/local/lib/node_modules/homebridge/node_modules/hap-nodejs/lib/Accessory.js:735:8)
    at HAPServer.emit (events.js:189:13)
    at HAPServer._handleCharacteristics (/usr/local/lib/node_modules/homebridge/node_modules/hap-nodejs/lib/HAPServer.js:928:10)
    at HAPServer.<anonymous> (/usr/local/lib/node_modules/homebridge/node_modules/hap-nodejs/lib/HAPServer.js:209:39)
    at IncomingMessage.emit (events.js:189:13)

なお、config.jsonは下記のとおりです。

{
	"bridge": {
		"name": "Homebridge",
		"username": "MACアドレス",
		"port": 51826,
		"pin": "031-45-154"
	},

	"accessories": [{
			"accessory": "NatureRemoAircon",
			"name": "エアコン",
			"access_token": トークン",
			"appliance_id": "",
			"debug": true,
			"skip_command_request_if_no_change": true
		}
		
	],


	"platforms": [
		{
		"platform": "DysonPlatform",
		"name": "DysonPlatform",
		"email": "DysonのEメールアドレス",
		"password": "Dysonのパスワード",
		"country": "JP",
		"accessories": [
			{
			"ip": "IPアドレス",
			"displayName": "Dyson Pure Cool",
			"serialNumber": "シリアル番号",
			"nightModeVisible": true,
			"focusModeVisible": true,
			"autoModeVisible": true
		}
		],
		"plugin_map": [{
			"plgin_name": "homebridge-nature-remo-aircon"
			},
			{
			"plugin_name": "homebridge-dyson-link"
			}]
		}
	]
}

あと一歩のところでつまづいています。
よろしくお願いします。

Can not control two air-cons

37923978-94CC-46AB-A69A-35835FB7F3F0
BE6D0072-61C6-4E73-9670-57641EE5C342
8D3E7479-F859-4ADC-A109-509CCFA4CA05

I have set two Remo sensor and two air conditioners in different room. Even though I have set two different ID for the both air conditioners, but only one set can be controlled. Why?
日本語でもいいようです。追加させていただきます。
独立で一台時には、どうちでもうまく行きますが、両台同時に設定すると最後に設定したもののみ効きます。アイコンや名前も同じにコピーされました。何にか設定に間違ったでしょうか?

1台のエアコンのみ、「応答なし」と出る

3台のnature remoを使用しています。
3台中2台は正しく動いているのですが、「リビング」と登録している1台だけ応答なしと表示されます。
Tokenも発行し直し、remo上で機器も削除→再登録とやったのですが、それでも応答なしとなります。
設定上、怪しいところなどありますでしょうか?

なお、エアコンは最近買い換えた2020年のモデルとなります。
よろしくお願いします。

config.json

       {
            "accessory": "NatureRemoAircon",
            "name": "リビング",
            "access_token": "xxxx",
            "appliance_id": "415ec810-2f8a-4ab9-a11b-5870d59691af",
            "skip_command_request_if_no_change": true
        },
        {
            "accessory": "NatureRemoAircon",
            "name": "子供部屋",
            "access_token": "xxxx",
            "appliance_id": "ede9477d-2961-492a-b4e7-c02256d6dfff",
            "skip_command_request_if_no_change": true
        },
        {
            "accessory": "NatureRemoAircon",
            "name": "寝室",
            "access_token": "xxxx",
            "appliance_id": "8474471e-2643-497e-badc-af7b84e79d80",
            "skip_command_request_if_no_change": true
        },

ログ

[2020/9/9 17:11:05] [リビング] Target aircon ID: 415ec810-2f8a-4ab9-a11b-5870d59691af
[2020/9/9 17:11:05] [リビング] refreshing temperature record
[2020/9/9 17:11:05] [リビング] notifying values: {"temp":"-0.5","temp_unit":"c","mode":"dry","vol":"auto","dir":"1","dirh":"","button":"","updated_at":"2020-09-09T06:57:13Z"}
[2020/9/9 17:11:06] [リビング] Temperature: 26
[2020/9/9 17:11:06] [リビング] notifying values: {"temp":"-0.5","temp_unit":"c","mode":"dry","vol":"auto","dir":"1","dirh":"","button":"","updated_at":"2020-09-09T06:57:13Z"}

温度調整スライダ

温度調節スライダの範囲が、暖房、冷房関係なく常に0度から32度になっているのですが、登録しているエアコンの設定可能温度にまで範囲を絞ることは可能でしょうか?
ソースコードを拝見したところ、
getMinTargetTemperature() {
const v = Math.min(...this._getAllTemperatures());
return isNaN(v) ? 10.0 : v;
}
getMaxTargetTemperature() {
const v = Math.max(...this._getAllTemperatures());
return isNaN(v) ? 122.0 : v;
の部分で取得しているようですが(違うかもしれませんが)、うまく動作していないので不具合なのでしょうか?当方、Node.js初心者のため、Pull Requestでの協力はできませんが、すみません・・・

Can the app do 0.5C steps instead of 1C for the aircon that support it

Hi good work.

Small issue,…
I have two aircon and I just replaced one with a new one. This one can do steps +-0.5C. The nature remo app can differentiate between the devices. The old one is in steps of 1C, while the new one does the steps as it should in 0.5C. However your app does both only in steps of 1C. While that would not bother me, there are times when the temperature is just a little too hot for one and a little to cold for the other.

DRY(除湿)モードについて

Nature Remoアプリで対応しているDryモードについては実装できないのでしょうか?CLOUD API上では、dry(除湿)とblow(送風)モードがありそうなので、もし可能なら実装できればと。

[ , cool, warm, dry, blow, auto ]

Siriへの命令

Siriに「暖房を/冷房を、〜度にして」というと、「すみません、できませんでした」と返ってきてしまいます。
しかし、エアコンは動き出し「自動モードで運転します」と自動音声が流れてきます。
修正可能でしょうか?

Error after setting

Dear users,

I got an error after install and I can't use my devices

Please help me, thanks in advance

[18/02/2021, 17:47:18] Homebridge is running on port 51243.
[18/02/2021, 17:47:18] [室温センサー] >>> [Error] "Error: 401"
[18/02/2021, 17:47:18] [エアコン] failed to parse response: {"code":401001,"message":"Unauthorized"}
[18/02/2021, 17:47:43] [Homebridge UI] Starting terminal session
[18/02/2021, 17:47:50] [Homebridge UI] Terminal session ended.
[18/02/2021, 17:48:00] [エアコン] refreshing target appliance record
[18/02/2021, 17:48:00] [エアコン] failed to parse response: {"code":401001,"message":"Unauthorized"}
[18/02/2021, 17:49:00] [エアコン] refreshing target appliance record
[18/02/2021, 17:49:00] [エアコン] failed to parse response: {"code":401001,"message":"Unauthorized"}
[18/02/2021, 17:49:03] [室温センサー] > [Getting] temperature
[18/02/2021, 17:49:03] [室温センサー] >> [request]
[18/02/2021, 17:49:04] TypeError: Cannot read property 'settings' of null
at NatureRemoAircon.getHeatingCoolingState (/usr/local/lib/node_modules/homebridge-nature-remo-cloud-aircon/index.js:315:34)
at CurrentHeatingCoolingState.emit (events.js:315:20)
at CurrentHeatingCoolingState.EventEmitter.emit (/usr/local/lib/node_modules/homebridge/node_modules/hap-nodejs/src/lib/EventEmitter.ts:42:22)
at CurrentHeatingCoolingState.Characteristic._this.getValue (/usr/local/lib/node_modules/homebridge/node_modules/hap-nodejs/src/lib/Characteristic.ts:489:12)
at /usr/local/lib/node_modules/homebridge/node_modules/hap-nodejs/src/lib/Accessory.ts:1217:22
at Array.forEach ()
at Bridge.Accessory._this._handleGetCharacteristics (/usr/local/lib/node_modules/homebridge/node_modules/hap-nodejs/src/lib/Accessory.ts:1145:10)
at HAPServer.emit (events.js:315:20)
at HAPServer.EventEmitter.emit (/usr/local/lib/node_modules/homebridge/node_modules/hap-nodejs/src/lib/EventEmitter.ts:42:22)
at HAPServer._this._handleCharacteristics (/usr/local/lib/node_modules/homebridge/node_modules/hap-nodejs/src/lib/HAPServer.ts:756:12

モード「自動」での温度スライダの挙動に関して

連投失礼致します。
NatureRemo公式アプリでは「自動モード」の時、温度調節スライダーは適温+ー○○度という表示となっているのですが、このプラグイン経由でのHomeアプリでは「○○度に設定」と表示され、スライダを変更しても「応答なし」と返ってきてしまいます。
修正は可能でしょうか?

複数台のNature Remo設定について

複数台のNature Remoの設定の場合はappliace_idを入れるようにとなっていますが、以下のように入れてみても、ログ上エラーとなってしまいました。
{
"accessory": "NatureRemoAircon",
"name": "Air Conditioner",
"access_token": "ACCESS_TOKEN",
"appliance_id":"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxxxx"
}

[2020-2-1 2:24:58 PM] [Air Conditioner] Target aircon could not be found. You can leave appliance_id blank to automatically use the first aircon.
.......
[2020-2-1 2:25:05 PM] TypeError: Cannot read property 'settings' of null
at NatureRemoAircon.getTargetTemperature (/home/pi/node_modules/homebridge-nature-remo-cloud-aircon/index.js:270:22)
at Characteristic.TargetTemperature.emit (events.js:198:13)
at Characteristic.TargetTemperature.Characteristic.getValue (/home/pi/.nvm/versions/node/v10.16.0/lib/node_modules/homebridge/node_modules/hap-nodejs/lib/Characteristic.js:164:10)
at Bridge. (/home/pi/.nvm/versions/node/v10.16.0/lib/node_modules/homebridge/node_modules/hap-nodejs/lib/Accessory.js:771:20)
at Array.forEach (:null:null)
at Bridge.Accessory._handleGetCharacteristics (/home/pi/.nvm/versions/node/v10.16.0/lib/node_modules/homebridge/node_modules/hap-nodejs/lib/Accessory.js:735:8)
at HAPServer.emit (events.js:198:13)
at HAPServer._handleCharacteristics (/home/pi/.nvm/versions/node/v10.16.0/lib/node_modules/homebridge/node_modules/hap-nodejs/lib/HAPServer.js:928:10)
at HAPServer. (/home/pi/.nvm/versions/node/v10.16.0/lib/node_modules/homebridge/node_modules/hap-nodejs/lib/HAPServer.js:209:39)
at IncomingMessage.emit (events.js:198:13)
at endReadableNT (_stream_readable.js:1129:12)
at process._tickCallback (internal/process/next_tick.js:63:19)

また複数台のNature Remo&エアコンをそれぞれに設定することは本プラグイン ではサポートしてないのでしょうか?もし設定できる場合、Config.jsonはどう書けばいいんでしょうか?

Use sensor value instead of target value

hap.Characteristic.CurrentTemperature.get of hap.Service.Thermostat should return the current temperature value from the sensor, not the target temperature value of the air conditioner.

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.