Code Monkey home page Code Monkey logo

hass-nature-remo's Introduction

Home Assistant integration for Nature Remo

Yet another Home Assistant component for Nature Remo.

⚠️This integration is neither Nature Remo official nor Home Assistant official. Use at your own risk. ⚠️

Supported features

  • Air Conditionar
    • Set mode (e.g. cool, warm, blow etc.)
    • Set temperature
    • Set fan mode
    • Set swing mode
    • Show current temperature
    • Remember previous target temperatures when switching modes back and forth
  • Energy Sensor (Nature Remo E/E Lite)
    • Fetch current power usage
  • Switch
  • Light
  • TV
  • Others
    • Fetch sensor data

Tested on Home Assistant Core 2021.3.3 on Docker

Installation

Manual Install

  1. Download this repository
  2. Create custom_components/nature_remo folder at your config directory
  3. Copy files into it (Just drag&drop whole files would be fine)
{path_to_your_config}
├── configuration.yaml
└── custom_components
    └── nature_remo
        ├── __init__.py
        ├── climate.py
        ├── manifest.json
        └── sensor.py

Install via git submodule

If you have set up git, you can also install this component by adding submodule to your git repository.

git submodule add https://github.com/yutoyazaki/hass-nature-remo.git {path_to_custom_component}/nature_remo

Configuration

  1. Go to https://home.nature.global and sign in/up
  2. Generate access token
  3. Add following codes to your configuration.yaml file
nature_remo:
  access_token: YOUR_ACCESS_TOKEN

hass-nature-remo's People

Contributors

yutoyazaki 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  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

hass-nature-remo's Issues

No 'version' key in the manifest file

Home Assistant 2021.4 has began to raise the following warning message.
Home Assistant 2021.4 から以下の警告が出るようになりました。

WARNING (MainThread) [homeassistant.loader] No 'version' key in the manifest file for custom integration 'nature_remo'. As of Home Assistant 2021.6, this integration will no longer be loaded. Please report this to the maintainer of 'nature_remo'

This is one of the breaking changes which is mentioned at https://www.home-assistant.io/blog/2021/04/07/release-20214/#breaking-changes .
これは https://www.home-assistant.io/blog/2021/04/07/release-20214/#breaking-changes で言及されている Breaking Changes の一つです。

カスタムコンポーネントのディレクトリ名

はじめまして。
HAへのNatureRemoの統合とても嬉しいです。Remoのエアコンのオートメーションを構成できるのはすごく便利です。

さて、私の環境だけかどうかわかりませんが、Readmeでは/config/custom_components/nature_remoとなってますが、/config/custom_components/nature-remo でないとエラーになりました。
細かいところですが、ちょっと焦ったので一応。

今後のこのコンポーネントの発展すごく期待しています。

climate.set_temperature の中で hvac_mode でモードを変更するとエラーとなります。

Remoのカスタムコンポーネント開発、本当にありがとうございます。
見出しの件につきまして、冷房のエアコンを除湿に変更しようとすると下記のエラーが発生しました。

Log Details (ERROR)
Logger: homeassistant.components.websocket_api.http.connection.1691797840
Source: custom_components/nature_remo/climate.py:210
Integration: Home Assistant WebSocket API (documentation, issues)
First occurred: 12:07:17 (1 occurrences)
Last logged: 12:07:17

'mode'
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/components/websocket_api/commands.py", line 130, in handle_call_service
connection.context(msg),
File "/usr/src/homeassistant/homeassistant/core.py", line 1260, in async_call
task.result()
File "/usr/src/homeassistant/homeassistant/core.py", line 1295, in _execute_service
await handler.func(service_call)
File "/usr/src/homeassistant/homeassistant/helpers/entity_component.py", line 209, in handle_service
self._platforms.values(), func, call, required_features
File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 454, in entity_service_call
future.result() # pop exception if have
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 595, in async_request_call
await coro
File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 485, in _handle_entity_call
await result
File "/usr/src/homeassistant/homeassistant/components/climate/init.py", line 544, in async_service_temperature_set
await entity.async_set_temperature(**kwargs)
File "/config/custom_components/nature_remo/climate.py", line 169, in async_set_temperature
await self._post({"temperature": f"{target_temp}"})
File "/config/custom_components/nature_remo/climate.py", line 240, in _post
self._update(response)
File "/config/custom_components/nature_remo/climate.py", line 210, in _update
self._remo_mode = ac_settings["mode"]
KeyError: 'mode'

climate.set_hvac_mode でモードを変換したあと climate.set_temperatureで温度だけ指定すると正常に制御できます。

とりあえず報告まで。

Repository is not HASS compatible

Currently, when trying to install the Add On by adding https://github.com/yutoyazaki/hass-nature-remo as a new Repo, it doesn't work because the repo is not compatible yet.
Is it possible to make it easy to install? That would be very helpful, especially for the Raspberry HA Docker distribution.

Thank you

現在の温度が取得できない

はじめまして、
アドオン開発ありがとうございます。本当に助かります。
1点、HASS上では見えないかも知れないですが、
HOMEKITに追加し携帯で確認する際に、ターゲット温度と別で現在の温度が表示されます(小さい円状のパネル)。
そこは実際の温度取得されず、ずっと21度で表示されるようで、ご確認頂けますでしょうか。

0.5度単位で温度設定ができるエアコンでは動作しない

おそらく0.5度単位で温度設定ができるエアコンを登録していると「ValueError: invalid literal for int() with base 10: '16.5'」といったエラーが出てintegrationそのものが動かないようです。

ちなみに自分がこのエラーに遭遇したmodelは

    "model": {
      "id": "これを晒していいのかどうかわからないのでとりあえず隠します",
      "country": "JP",
      "manufacturer": "mitsubishi",
      "remote_name": "pg095",
      "series": "",
      "name": "Mitsubishi AC 022",
      "image": "ico_ac_1"
    },

です。

具体的には https://api.nature.global/1/appliances で取得したJSONのaircon.range.modes.warmまたはcoolのtempに16.5などの小数点付きの文字列が格納されるものが該当すると思われます。

climate.pyの_current_mode_temp_range関数でlist作成時にint関数でmapしているのが原因のようです。intをfloatに変えてみたら動作しました。

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.