Giter Site home page Giter Site logo

qqaatw / jcihitachiha Goto Github PK

View Code? Open in Web Editor NEW
107.0 10.0 31.0 363 KB

A home assistant integration for controlling Jci-Hitachi devices, using LibJciHitachi backend. 台灣日立雲端模組

License: Apache License 2.0

Python 100.00%
home-assistant home-automation homeassistant hitachi homekit

jcihitachiha's Introduction

Jci-Hitachi Home Assistant Integration

System Status

If you find the project useful and want to support it, you can buy me a chocolate cake via Jkopay(街口) or ko-fi. Your name will be listed on Chocolate Cake Buyers.

Feature

A home assistant integration for controlling Jci Hitachi devices, using LibJciHitachi backend.

Installation

Configuring via UI

  1. Create config/custom_components folder if not existing.
  2. Copy jcihitachi_tw into custom_components folder.
  3. Click Configuration button on the left side of Home Assistant panel, and then click Integrations tab.
  4. Click ADD INTEGRATION button at the bottom right corner and follow the UI.

Configuring via configuration.yaml

  1. Create config/custom_components folder if not existing.
  2. Copy jcihitachi_tw into custom_components folder.
  3. Configure your email address, password, and device names, in config/configuration.yaml. If device names are not provided, they will be fetched from the API automatically. (not recommended.)
  4. Restart Home Assistant.

An example of configuration.yaml can be found here.

Supported devices

支援以下使用日立雲端模組(雲端智慧控)的機種與功能

  • Hitachi Air Conditioner 日立冷氣
    • Power 電源
    • Mode 運轉模式
    • Air speed 風速
    • Vertical wind swingable 導風板垂直擺動
    • Vertical wind direction 導風板垂直方向
    • Horizontal wind direction 導風板水平方向
    • Target temperature 目標溫度
    • Indoor temperature 室內溫度
    • Mold prevention 機體防霉
    • Energy saving 節電
    • Fast operation 快速運轉
    • Power consumption 用電統計 (supports HA core v2021.9.0+)
    • Monthly power consumption 月用電統計
    • Sleep timer 睡眠計時器 (Only supported by LibJciHitachi)
    • Freeze clean 凍結洗淨 (Only supported by LibJciHitachi)
  • Hitachi Dehumidifier 日立除濕機
    • Power 電源
    • Mode 運轉模式
    • Air speed 風速
    • Wind swingable 導風板擺動
    • Target humidity 目標濕度
    • Indoor humidity 室內溼度
    • Water full warning 滿水警示
    • Error warning 錯誤警示
    • Clean filter notify 濾網清潔通知
    • Mold prevention 機體防霉
    • PM2.5 value PM2.5數值
    • Odor level 異味等級
    • Air cleaning filter setting 空氣清淨濾網設定
    • Power consumption 用電統計 (supports HA core v2021.9.0+)
    • Monthly power consumption 月用電統計
    • Display brightness 顯示器亮度
    • Sound control 聲音控制 (Only supported by LibJciHitachi)
    • Side vent 側吹 (Only supported by LibJciHitachi)
  • Hitachi Heat Exchanger 日立全熱交換機
    • Power 電源
    • Breath mode 換氣模式
    • Air speed 風速
    • Indoor temperature 室內溫度
    • Mode 運轉模式 (Only supported by LibJciHitachi)
    • Error code 錯誤代碼 (Only supported by LibJciHitachi)
    • Air cleaning filter notification 空氣清淨濾網清潔通知 (Only supported by LibJciHitachi)
    • Front filter notification 前置濾網清潔通知 (Only supported by LibJciHitachi)
    • PM25 filter notification PM25濾網清潔通知 (Only supported by LibJciHitachi)

Tested devices

Below models have been tested on my side or reported by someone whose device works normally. Unlisted models DO NOT MEAN they are not supported.

Air conditioner

  • Window
    • RA-36NV1
    • RA-28NV1
  • Single-split and multi-split
    • RAD-90NJF / RAC-90NK1
    • RAS-81NJF
    • RAS-81NK
    • RAC-63NK
    • RAS-50NJF / RAC-50NK
    • RAS-40NK
    • RAS-40NT / RAC-40NP
    • RAS-36NJF / RAC-36NK
    • RAS-36NK / RAC-36NK1
    • RAS-32NJF
    • RAS-28NJF / RAC-28NK
    • RAS-28NB / RAC-28NB
    • RAS-22NJF
  • Business
    • RPI-90FK
    • RPI-36FR
    • RPI-28FT
    • RPI-22FC

Dehumidifier

  • RD-360HH
  • RD-240HH
  • RD-200HH
  • RDI-640HH
  • RDI-360DX

Heat exchanger

  • KPI-H

Frequently asked questions

  1. Is the integration usable (does the Hitachi cloud work) ?
    • If the system status badge on the top is green, the Hitachi cloud worked normally at the last nightly check. Please do not open an issue asking the usability of the integration.
  2. I cannot install the integration, the log indicates Requirements for jcihitachi_tw not found: ['LibJciHitachi==x.x.x'], where x is an arbitrary version number.
    • Ensure the OS in which your Home Assistant is installed is of the following types: Windows, macOS, manylinux, and musllinux, on x86 or ARM platforms. Only 64bit OSes on ARM are supported. Other platforms such as PowerPC and MIPS are not supported.
    • If you still want to run the integration on unsupported platforms, you will need to build(compile) it on your own.
  3. When auto mode or fan mode is set, the target temperature stays at the target set in cool/dry/heat mode.
    • If this entity didn't get a valid target temperature before, the target temperature will indicate the minimum temperature.
    • Technically, because the target temperature is not intended to be adjusted by users and changes automatically under auto mode or fan mode, the value is set 2-complement -1 in 16 bit data type (a.k.a. 65535) by the Hitachi cloud. We have modified the displayed value to avoid the Home Assistant history plot scales to 65535.
    • If it is still showing a huge number, please refer to PR #36, you may add extra edge conditions by yourself.

Known issues

  1. Clean filter notification of the dehumidifier doesn't work now.

License

Apache License 2.0

jcihitachiha's People

Contributors

amigcamel avatar cloudrainstar avatar crutchlow avatar kirintwn avatar qqaatw avatar r08ertliu avatar rianol avatar stu85010 avatar sykuang 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  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  avatar  avatar  avatar

jcihitachiha's Issues

安裝整合產生錯誤

安裝平台:Pi4
Home Assistant Core 2022.6.6

您好:
今天看日誌發現出現以下錯誤,有時重新開機,整合會啟動失敗,需關閉重啟,特此回報。

感謝!

自行安裝整合產生錯誤。

Logger: homeassistant.config_entries
Source: custom_components/jcihitachi_tw/init.py:168
Integration: JciHitachi TW (documentation, issues)
First occurred: 07:28:51 (1 occurrences)
Last logged: 07:28:51

Error setting up entry JciHitachi TW for jcihitachi_tw
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/config_entries.py", line 339, in async_setup
result = await component.async_setup_entry(hass, self)
File "/config/custom_components/jcihitachi_tw/init.py", line 168, in async_setup_entry
f"Thing info: {[thing for thing in api.things.values()]}")
File "/usr/local/lib/python3.9/site-packages/JciHitachi/api.py", line 629, in repr
f"brand: {self.brand}\n"
File "/usr/local/lib/python3.9/site-packages/JciHitachi/api.py", line 705, in brand
return getattr(self._support_code, "Brand")
AttributeError: 'NoneType' object has no attribute 'Brand'

/usr/local/lib/python3.10/site-packages/JciHitachi/aws_connection.py:520

I have a problem as listed below,

Mqtt topic ap-northeast-1:156cf1fc-d617-4b44-aa2a-588be4b441ba/ap-northeast-1:156cf1fc-d617-4b44-aa2a-588be4b441ba_66428598536783/registration/response published with payload b'{\n\t"FirmwareId":\t3,\n\t"DeviceType":\t1,\n\t"Model":\t"RAD-\xff\u0006",\n\t"FindMe":\t10,\n\t"Switch":\t3,\n\t"Mode":\t31,\n\t"FanSpeed":\t31,\n\t"TemperatureSetting":\t4128,\n\t"IndoorTemperature":\t40,\n\t"SleepModeRemainingTime":\t1440,\n\t"MildewProof":\t3,\n\t"QuickMode":\t3,\n\t"PowerSaving":\t3,\n\t"ControlTone":\t3,\n\t"PowerConsumption":\t65535,\n\t"TaiseiaError":\t85,\n\t"FilterElapsedHour":\t800,\n\t"CleanSwitch":\t3,\n\t"CleanNotification":\t3,\n\t"CleanStatus":\t7,\n\t"Error":\t0,\n\t"FirmwareVersion":\t"6.0.018",\n\t"FirmwareCode":\t39,\n\t"SystemTimestamp":\t80455,\n\t"RequestTimestamp":\t1680363392,\n\t"Timestamp":\t1680363392\n}' cannot be decoded: 'utf-8' codec can't decode byte 0xff in position 53: invalid start byte

abnormal connection

Home Assistant 2022.8.2
Supervisor 2022.07.0
Operating System 8.4
Frontend 20220802.0 - latest

2022-08-09 08:43:09.824 WARNING (MainThread) [homeassistant.components.number] custom_components.jcihitachi_tw.number::JciHitachiMonthlyDataSelectorNumberEntity is overriding deprecated methods on an instance of NumberEntity, this is not valid and will be unsupported from Home Assistant 2022.10. Please report it to the custom integration author.
2022-08-09 08:43:14.569 ERROR (Dummy-2) [JciHitachi.aws_connection] An unknown shadow response is received. Client token: 66428598702835

Unable to login

最新版本,無法登入

Failed to login API: An error occurred when refreshing Living room support code.
2:01:21 PM – (ERROR) JciHitachi TW (custom integration) - message first occurred at 1:53:29 PM and shows up 2 times

image

空調溫度顯示與實際不同步

空調溫度顯示與實際不同步,需 reboot ha core 讓他強制更新,但放一段時間又會不同步

RAS-22NJF
RAS-25NJF
RAS-28NJF
RAS-71NJF

無法建立UI

你好,
請問下面提到的UI 我要怎麼運行?
感謝

  • Configuring via UI
    Create config/custom_components folder if not existing.
    Copy jcihitachi_tw into custom_components folder.
    Click Configuration button on the left side of Home Assistant panel, and then click Integrations tab.
    Click ADD INTEGRATION button at the bottom right corner and follow the UI.

HA unable to set target humidity %

For the dehumidifier changing target humidity doesn’t seem to change anything. Other functions work but changing the humidity does not.

設定整合的時候出現錯誤 Requirements for jcihitachi_tw not found: ['LibJciHitachi==x.x.x'].

我的環境是使用樹莓派4安裝 Hassio,
安裝好整合,在登入的過程中,出現了以下的錯誤
請問能夠怎麼解決呢? 謝謝

環境:
版本 | core-2022.3.1
安裝類型 | Home Assistant OS
開發版 | false
Supervisor | true
Docker | true
使用者 | root
虛擬環境 | false
Python 版本 | 3.9.9
作業系統家族 | Linux
作業系統版本 | 5.10.103-v7l
CPU 架構 | armv7l
時區 | Asia/Taipei

錯誤訊息:
2022-04-09 21:47:26 ERROR (MainThread) [homeassistant.util.package] Unable to install package LibJciHitachi==0.5.0: error: subprocess-exited-with-error

× python setup.py bdist_wheel did not run successfully.
│ exit code: 1
╰─> [38 lines of output]
running bdist_wheel
running build
running build_py
running build_ext
Traceback (most recent call last):
File "", line 2, in
File "", line 34, in
File "/tmp/pip-install-fjn52pbs/awscrt_b83358bc98424627ba69b6e1c4b71c38/setup.py", line 294, in
setuptools.setup(
File "/usr/local/lib/python3.9/site-packages/setuptools/init.py", line 155, in setup
return distutils.core.setup(**attrs)
File "/usr/local/lib/python3.9/site-packages/setuptools/_distutils/core.py", line 148, in setup
return run_commands(dist)
File "/usr/local/lib/python3.9/site-packages/setuptools/_distutils/core.py", line 163, in run_commands
dist.run_commands()
File "/usr/local/lib/python3.9/site-packages/setuptools/_distutils/dist.py", line 967, in run_commands
self.run_command(cmd)
File "/usr/local/lib/python3.9/site-packages/setuptools/_distutils/dist.py", line 986, in run_command
cmd_obj.run()
File "/usr/local/lib/python3.9/site-packages/wheel/bdist_wheel.py", line 299, in run
self.run_command('build')
File "/usr/local/lib/python3.9/site-packages/setuptools/_distutils/cmd.py", line 313, in run_command
self.distribution.run_command(command)
File "/usr/local/lib/python3.9/site-packages/setuptools/_distutils/dist.py", line 986, in run_command
cmd_obj.run()
File "/usr/local/lib/python3.9/site-packages/setuptools/_distutils/command/build.py", line 135, in run
self.run_command(cmd_name)
File "/usr/local/lib/python3.9/site-packages/setuptools/_distutils/cmd.py", line 313, in run_command
self.distribution.run_command(command)
File "/usr/local/lib/python3.9/site-packages/setuptools/_distutils/dist.py", line 986, in run_command
cmd_obj.run()
File "/tmp/pip-install-fjn52pbs/awscrt_b83358bc98424627ba69b6e1c4b71c38/setup.py", line 212, in run
self._build_dependency(lib)
File "/tmp/pip-install-fjn52pbs/awscrt_b83358bc98424627ba69b6e1c4b71c38/setup.py", line 154, in _build_dependency
cmake = get_cmake_path()
File "/tmp/pip-install-fjn52pbs/awscrt_b83358bc98424627ba69b6e1c4b71c38/setup.py", line 94, in get_cmake_path
raise Exception("CMake must be installed to build from source.")
Exception: CMake must be installed to build from source.
[end of output]

note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for awscrt
error: subprocess-exited-with-error

× Running setup.py install for awscrt did not run successfully.
│ exit code: 1
╰─> [42 lines of output]
running install
/usr/local/lib/python3.9/site-packages/setuptools/command/install.py:34: SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and other standards-based tools.
warnings.warn(
running build
running build_py
running build_ext
Traceback (most recent call last):
File "", line 2, in
File "", line 34, in
File "/tmp/pip-install-fjn52pbs/awscrt_b83358bc98424627ba69b6e1c4b71c38/setup.py", line 294, in
setuptools.setup(
File "/usr/local/lib/python3.9/site-packages/setuptools/init.py", line 155, in setup
return distutils.core.setup(**attrs)
File "/usr/local/lib/python3.9/site-packages/setuptools/_distutils/core.py", line 148, in setup
return run_commands(dist)
File "/usr/local/lib/python3.9/site-packages/setuptools/_distutils/core.py", line 163, in run_commands
dist.run_commands()
File "/usr/local/lib/python3.9/site-packages/setuptools/_distutils/dist.py", line 967, in run_commands
self.run_command(cmd)
File "/usr/local/lib/python3.9/site-packages/setuptools/_distutils/dist.py", line 986, in run_command
cmd_obj.run()
File "/usr/local/lib/python3.9/site-packages/setuptools/command/install.py", line 68, in run
return orig.install.run(self)
File "/usr/local/lib/python3.9/site-packages/setuptools/_distutils/command/install.py", line 670, in run
self.run_command('build')
File "/usr/local/lib/python3.9/site-packages/setuptools/_distutils/cmd.py", line 313, in run_command
self.distribution.run_command(command)
File "/usr/local/lib/python3.9/site-packages/setuptools/_distutils/dist.py", line 986, in run_command
cmd_obj.run()
File "/usr/local/lib/python3.9/site-packages/setuptools/_distutils/command/build.py", line 135, in run
self.run_command(cmd_name)
File "/usr/local/lib/python3.9/site-packages/setuptools/_distutils/cmd.py", line 313, in run_command
self.distribution.run_command(command)
File "/usr/local/lib/python3.9/site-packages/setuptools/_distutils/dist.py", line 986, in run_command
cmd_obj.run()
File "/tmp/pip-install-fjn52pbs/awscrt_b83358bc98424627ba69b6e1c4b71c38/setup.py", line 212, in run
self._build_dependency(lib)
File "/tmp/pip-install-fjn52pbs/awscrt_b83358bc98424627ba69b6e1c4b71c38/setup.py", line 154, in _build_dependency
cmake = get_cmake_path()
File "/tmp/pip-install-fjn52pbs/awscrt_b83358bc98424627ba69b6e1c4b71c38/setup.py", line 94, in get_cmake_path
raise Exception("CMake must be installed to build from source.")
Exception: CMake must be installed to build from source.
[end of output]

note: This error originates from a subprocess, and is likely not a problem with pip.
error: legacy-install-failure
× Encountered error while trying to install package.
╰─> awscrt
note: This is an issue with the package mentioned above, not pip.
hint: See above for output from the failure.
WARNING: You are using pip version 22.0.3; however, version 22.0.4 is available.
You should consider upgrading via the '/usr/local/bin/python3 -m pip install --upgrade pip' command.
2022-04-09 21:47:26 ERROR (MainThread) [custom_components.jcihitachi_tw.config_flow] Failed to login API: Requirements for jcihitachi_tw not found: ['LibJciHitachi==0.5.0'].
ConnectedD

無法成功

請問依照您寫的方式做,無法成功,跟HA版本有關嗎?
Configuring via configuration.yaml
Create config/custom_components folder if not existing.
Copy jcihitachi_tw into custom_components folder.
Configure your email address, password, and device names, in config/configuration.yaml. If device names are not provided, they will be fetched from the API automatically. (not recommended.)
Restart Home Assistant.

Unable to load integration

For the last two days, been getting an error, indicating the Integration plug-in did not start.
Tried to restart, then reload & restart but did not work at all. The issue is persistent.

Any thoughts on how to fix?

Logger: homeassistant.setup
Source: setup.py:155
First occurred: 21:37:06 (1 occurrences)
Last logged: 21:37:06
Setup failed for jcihitachi_tw: Requirements for jcihitachi_tw not found: ['LibJciHitachi==0.4.6'].

Logger: homeassistant.util.package
Source: util/package.py:99
First occurred: 21:36:44 (3 occurrences)
Last logged: 21:37:06
Unable to install package LibJciHitachi==0.4.6: ERROR: Cannot install libjcihitachi==0.4.6 because these package versions have conflicting dependencies. ERROR: ResolutionImpossible: for help visit https://pip.pypa.io/en/latest/topics/dependency-resolution/#dealing-with-dependency-conflicts

Errors:
image
image
image

System config:
image

one of my air conditioner shows unavaible

🐛 Describe the bug

Hi
one of my air conditioner shows unavaible, and I can control this air conditioner by my Hitachi app on my phone.
could you help to check?
image

below is error log
Logger: JciHitachi.aws_connection
Source: /usr/local/lib/python3.11/site-packages/JciHitachi/aws_connection.py:567
First occurred: August 6, 2023 at 7:04:23 AM (22 occurrences)
Last logged: 9:54:48 PM

An unknown shadow response is received. Client token: None

Logger: JciHitachi.aws_connection
Source: /usr/local/lib/python3.11/site-packages/JciHitachi/aws_connection.py:603
First occurred: August 7, 2023 at 3:25:06 AM (3 occurrences)
Last logged: 3:25:52 AM

Environment Information

use release V1.4.0
Home Assistant 2023.8.1
Supervisor 2023.08.1
Operating System 10.4

JciHitachiMonthlyPowerConsumptionSensorEntity is using wrong state class.

Get the warning from logs.

(<class 'custom_components.jcihitachi_tw.sensor.JciHitachiMonthlyPowerConsumptionSensorEntity'>) is using state class 'measurement' which is impossible considering device class ('energy') it is using; expected None or one of 'total_increasing', 'total';

Wondering if there is suitable solution for monthly power comsumption?
Maybe it could only return the current month value to avoid month selection?

冷氣控制錯誤

截圖 2022-06-03 上午1 25 37

您好 :

最近在使用此整合時會出現上圖之錯誤
而在控制冷氣開關和調溫度時需要過5秒以上才會有反應
冷氣型號為:RA-50QV1
透過HACS安裝

Can't put into integration

🐛 Describe the bug

Cannot quick reload all YAML configurations because the configuration is not valid: Integration error: jcihitachi_tw - Integration 'jcihitachi_tw' not found.

Logger: homeassistant.components.websocket_api.http.connection
Source: components/homeassistant/init.py:316
Integration: Home Assistant WebSocket API (documentation, issues)
First occurred: 01:01:38 (1 occurrences)
Last logged: 01:01:38

[547489919808] Cannot quick reload all YAML configurations because the configuration is not valid: Integration error: jcihitachi_tw - Integration 'jcihitachi_tw' not found.
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/components/websocket_api/commands.py", line 199, in handle_call_service
await hass.services.async_call(
File "/usr/src/homeassistant/homeassistant/core.py", line 1849, in async_call
task.result()
File "/usr/src/homeassistant/homeassistant/core.py", line 1889, in _execute_service
await cast(Callable[[ServiceCall], Awaitable[None]], handler.job.target)(
File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 874, in admin_handler
await result
File "/usr/src/homeassistant/homeassistant/components/homeassistant/init.py", line 316, in async_handle_reload_all
raise HomeAssistantError(
homeassistant.exceptions.HomeAssistantError: Cannot quick reload all YAML configurations because the configuration is not valid: Integration error: jcihitachi_tw - Integration 'jcihitachi_tw' not found.

Logger: homeassistant.components.homeassistant
Source: components/homeassistant/init.py:312
Integration: Home Assistant Core Integration (documentation, issues)
First occurred: 01:01:38 (1 occurrences)
Last logged: 01:01:38

The system cannot reload because the configuration is not valid: Integration error: jcihitachi_tw - Integration 'jcihitachi_tw' not found.

Environment Information

RAC-50YK2/RAS-50YSK
Home Assistant 2023.5.3
Pi 4

NotAuthorizedException

An error occurred when signing into AWS Cognito Service: NotAuthorizedException Incorrect username or password.

Power consumption 用電統計的數據不正確

最近使用冷氣才發現用電統計與實際用電差了約5倍,目前4月的累積用電量是5.5kwh,但查詢昨天晚上10點到早上6點的用電量統計卻顯示10kwh且數值一段時間後會歸零。
去年剛新增用電量統計功能時是正常的。 謝謝!
HA版本2022.4.4
JciHitachiHA V0.3.0
擷取-1

調整month_selector會讓其他冷氣的month_indicator, monthly_power_consumption變為調整的那台冷氣的數值

你好, 我發現只要調整其中一台冷氣的month_selector後, 其他台month_indicator, monthly_power_consumption數值會變成調整的那台冷氣的數值.
再麻煩幫忙確認, 謝謝.

環境: 使用Synology Docker架設
安裝方式: 使用HACS
版本: 0.3.2

複製步驟:

  1. 將RAS-81NK的month_selector從0.0調整為1.0. 此時所有冷氣的month_indicator變為2022-06, monthly_power_consumption變為30.3.
    1
  2. 將RAS-40NK的month_selector從0.0調整為2.0. 此時所有冷氣的month_indicator變為2022-05, monthly_power_consumption變為17.3.
    2

請問冷氣室外機溫度一直顯示0度

室外機溫度實體顯示可用,但是一直都是0度,試著更新您發布的新版本,好像沒改善,可以幫忙看看嗎?謝謝!
log如下:
2022-01-18 22:33:25 DEBUG (MainThread) [custom_components.jcihitachi_tw] Thing info: [name: 主臥室
brand: HITACHI
model: RAS-50NJF
type: AC
available: True
status_code: {'DeviceType': 'AC', 'Switch': 0, 'Mode': 0, 'FanSpeed': 1, 'TemperatureSetting': 27, 'IndoorTemperature': 22, 'SleepModeRemainingTime': 0, 'VerticalWindDirectionSwitch': 0, 'HorizontalWindDirectionSetting': 3, 'MildewProof': 1, 'QuickMode': 0, 'PowerSaving': 0, 'ControlTone': 0, 'Panel': 2, 'Moisturizing': 0, 'PowerConsumption': 0, 'TaiseiaError': 0, 'FilterElapsedHour': 800, 'CleanSwitch': 0, 'CleanNotification': 0, 'CleanStatus': 0, 'Error': 0, 'RequestTimestamp': 1642516403, 'Timestamp': 1642516404, 'OutdoorTemperature': 0}
support_code: {'FirmwareId': 3, 'DeviceType': 'AC', 'Model': 'RAS-50NJF', 'FindMe': 10, 'Switch': 3, 'Mode': 31, 'FanSpeed': 31, 'TemperatureSetting': 4128, 'IndoorTemperature': 40, 'SleepModeRemainingTime': 1440, 'VerticalWindDirectionSwitch': 3, 'HorizontalWindDirectionSetting': 63, 'MildewProof': 3, 'QuickMode': 3, 'PowerSaving': 3, 'ControlTone': 3, 'Panel': 15, 'Moisturizing': 7, 'PowerConsumption': 65535, 'TaiseiaError': 85, 'FilterElapsedHour': 800, 'CleanSwitch': 3, 'CleanNotification': 3, 'CleanStatus': 7, 'Error': 0, 'FirmwareVersion': '6.0.010', 'FirmwareCode': 10, 'RequestTimestamp': 1642516402, 'Timestamp': 1642516402, 'OutdoorTemperature': 0, 'Brand': 'HITACHI'}

image

設定錯誤:Failed to login API: An error occurred when refreshing 客廳 support code.

請問這個錯誤是源自於什麼問題,我重新安裝幾次,沒辦法使用

以下是錯誤的訊息:

2023-03-26 13:56:20.052 WARNING (SyncWorker_1) [homeassistant.loader] We found a custom integration jcihitachi_tw which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant
2023-03-26 14:26:55.268 ERROR (MainThread) [custom_components.jcihitachi_tw] Failed to login API: An error occurred when refreshing 客廳 support code.

自動化找不到判斷冷氣開關

🐛 Describe the bug

image
如圖,我想要自己設計一個舒眠模式,晚上02:00時判斷冷氣是不是開啟,如果是開啟的狀態則設定溫度到27度,04:00一樣,但我找不到判斷電源是否為開啟的部分?我該如何設定
image

Environment Information

JciHitachiHA 1.3.1
RAS-50YSK
廠牌:HITACHI
韌體:6.0.037

用UI安裝無法登入,用yaml安裝顯示錯誤

您好:

我上一篇寫看不到UI顯示文字,您提供了正確的文字,但我輸入email和密碼後,UI上顯示一條紅色的,應該是有什麼問題
截圖 2022-07-13 上午7 50 33

後來用yaml方式新增,一樣會有錯誤log

2022-07-14 20:26:09 WARNING (SyncWorker_2) [homeassistant.loader] We found a custom integration jcihitachi_tw which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant
2022-07-14 20:26:18 INFO (MainThread) [homeassistant.bootstrap] Setting up stage 2: {'tag', 'media_source', 'hacs', 'met', 'energy', 'input_text', 'input_datetime', 'input_number', 'application_credentials', 'sun', 'automation', 'trace', 'mobile_app', 'group', 'default_config', 'mqtt', 'jcihitachi_tw', 'blueprint', 'system_health', 'xiaomi_miot_raw', 'input_select', 'logbook', 'scene', 'map', 'input_button', 'zone', 'timer', 'history', 'homekit', 'counter', 'tts', 'input_boolean', 'ffmpeg', 'script', 'xiaomi_miio', 'persistent_notification', 'my'}
2022-07-14 20:26:18 INFO (MainThread) [homeassistant.setup] Setting up jcihitachi_tw
2022-07-14 20:27:11 ERROR (MainThread) [homeassistant.setup] Error during setup of component jcihitachi_tw
File "/config/custom_components/jcihitachi_tw/init.py", line 53, in async_setup
File "/config/custom_components/jcihitachi_tw/init.py", line 34, in _lazy_install
homeassistant.requirements.RequirementsNotFound: Requirements for jcihitachi_tw not found: ['LibJciHitachi==0.5.2'].

室內機是RAS-28NT 是否此室內機不支援?

帳號密碼都有用app登出再登入確認過

以下是我的Hassio環境

版本 core-2022.7.4
安裝類別 Home Assistant Supervised
開發版 false
Supervisor true
Docker true
使用者 root
虛擬環境 false
Python 版本 3.10.5
作業系統家族 Linux
作業系統版本 5.10.11-v7l+
CPU 架構 armv7l
時區 Asia/Taipei
Configuration Directory /config

再麻煩解惑,感激

Could not install 0.26 above revision

Logger: homeassistant.setup
Source: setup.py:162
First occurred: 16:50:36 (1 occurrences)
Last logged: 16:50:36

Setup failed for custom integration jcihitachi_tw: Unable to import component: cannot import name 'MONTHLY_DATA' from 'custom_components.jcihitachi_tw.const' (/config/custom_components/jcihitachi_tw/const.py)

system: 2022.6.6 synology VMM Home Assistant OS

As title, the system stop on loading custom components and could not restart the system. Need replace 0.26 revision files than system can be normal.

No 'Action' options showing in Automation

On fresh install, unable to select 'Actions' for automation routines.
The pull down tab is greyed out and has no option to select.
Running Rspberry OS64bit, running Home Assistant 2022.2.9

安裝問題

您好:
請問選擇UI之後,跑出來4行需要填寫的空格,看不到需要填寫什麼,第一二行我猜是email和密碼(hitachi app帳號的嗎?) 下面還有一個框框可以打勾,請問是安裝時哪裡設定錯誤嗎?
截圖 2022-07-13 上午7 50 33

Assertion check error: Some of device_names are not available from the API

Hi,
I have below error and can't be initialized in HA. there is no problem in my hitachi app on my smartphone (with same account/password). could you help to check?

Logger: custom_components.jcihitachi_tw
Source: custom_components/jcihitachi_tw/init.py:73
Integration: JciHitachi TW (documentation, issues)
First occurred: 1:46:48 PM (1 occurrences)
Last logged: 1:46:48 PM

Assertion check error: Some of device_names are not available from the API.

here are my environment.
RAS-22NJF/RAS-32NJF/RAS-81NJF

Home Assistant 2022.10.1
Supervisor 2022.09.1
Operating System 8.1

Configuring via configuration.yaml

thanks
Ken

Failed to login

System status is also failing. I still can control them through the control panel, but can’t find them from the entity list.
CC45087C-7F2A-4ECF-B087-17A51AE35EE4

Requirements for jcihitachi_tw not found: ['LibJciHitachi==0.5.1']

Hi,
I got below error when installing the package. could you help to advice how to install LibJciHitachi under HA?

Logger: custom_components.jcihitachi_tw.config_flow
Source: custom_components/jcihitachi_tw/config_flow.py:69
Integration: jcihitachi_tw (documentation, issues)
First occurred: 9:20:30 PM (1 occurrences)
Last logged: 9:20:30 PM

Failed to login API: Requirements for jcihitachi_tw not found: ['LibJciHitachi==0.5.1'].

Unexpected target temp in fan and auto mode

環境

  1. HA版本: 2022.11.4
  2. JciHitachiHA版本: 1.0.0 (2326c8)
  3. 整合裝置: 日立冷暖氣 RAS-40NT
  4. 裝置韌體: 6.0.037

現象

  1. 冷氣關機

  2. 由遙控器設定為「僅送風」模式,並按遙控器上的「運轉」

  3. HA控制面板的「設定溫度」會變成65535
    image

  4. HA控制面板的歷史紀錄也會記錄此數值,變得無法觀察目前溫度
    image

期望行為

由遙控器開啟冷氣的送風模式時,JciHitachiHA不應顯示目標溫度為65535,應該保持先前從API上獲得的設定

BTW, 「自控」模式應該也不能設定溫度

May one power off device cause all device offline

🐛 Describe the bug

自行安裝整合產生錯誤。

Logger: custom_components.jcihitachi_tw
Source: custom_components/jcihitachi_tw/init.py:165
Integration: JciHitachi TW (documentation, issues)
First occurred: 12:55:57 (1 occurrences)
Last logged: 12:55:57

Failed to login API: Timed out refreshing 書房冷氣 support code. Please ensure the device is online and avoid opening the official app.

Environment Information

其中一台冷氣斷電後會帶出以上訊息,且所有整合內的冷氣都會顯示不可用, 打開其電源或把這台冷氣從日立APP中移除除,就可以使用了

Failed to login API: An error occurred when refreshing support code

您好
設定整合完成後顯示【設定失敗】
錯誤日誌如下

Logger: custom_components.jcihitachi_tw
Source: custom_components/jcihitachi_tw/__init__.py:157
Integration: JciHitachi TW (documentation, issues)
First occurred: 20:51:16 (3 occurrences)
Last logged: 20:59:05

Failed to login API: An error occurred when refreshing support code.

希望新增"電離淨化"開關

如題,目前使用空調機種為RAS-28NT
但空調並不會記憶此功能。
如果需要其他相關訊息歡迎提出
謝謝。

Entity not available

新增了三台裝置,除濕機可以透過HA控制。 但二台冷氣都顯示錯誤訊息,無法使用HA進行操作
Entity not available:
number.ke_ting_leng_qu_month_selector

想請問一下這個有什麼方式可以處理嗎?
image

HA version: 2022.3.3
JciHitachiHA version: 1.2.0
Python Version | 3.9.9
CPU Architecture: x86_64

新增設備api login登入時出現 RuntimeError

This error originated from a custom integration.

Logger: custom_components.jcihitachi_tw
Source: custom_components/jcihitachi_tw/init.py:168
Integration: JciHitachi TW (documentation, issues)
First occurred: September 16, 2022, 6:46:05 PM (2 occurrences)
Last logged: 2:34:59 AM

Failed to login API: An error occurred when refreshing support code.

HA版本如下
Home Assistant 2022.9.4
Supervisor 2022.08.6
Operating System 9.0
Frontend 20220907.2 - latest

請問devices中的name 是有規定打英文嗎?

🐛 Describe the bug

首先先謝謝華人之光開發了讓大家能hacs日立冷氣,
透過雲端智控的app ,因冷氣取名是中文的,
我在以下的device_a_name 直接key中文好像都無法建立冷氣。
但如果以下指令都不打, 透過hacs設定, 輸入帳號密碼, 取得雲端資訊建立的就沒有問題。

但它很聰明會自己將中文字取出拼音, 例如客廳變 ke_ting.
那我又把以下的device_name, 改成ke_ting, 但一樣不行。。。

難道使用config設定, 一定要把app的機子名稱都設定英數字才行嗎??
我有實驗過, ,確實改成英文字後, 再config輸入相關字, 就可以了.

可以說明這個部份嗎?
thank you

jcihitachi_tw:
email: [email protected]
password: password
devices:
- DEVICE_A_NAME
- DEVICE_B_NAME

Environment Information

Home Assistant 2023.8.3
Supervisor 2023.08.1
Operating System 10.5
JciHitachiHA版本 - 1.4

Incorrect username

Hello, i have a trouble.

I try to setup integration. I use the same login details as in the app (airCloud Home). But i've got this massage:

Failed to login API: An error occurred when signing into AWS Cognito Service: NotAuthorizedException Incorrect username or password.

PC with x86 cpu
Home Assistant 2023.3.6
Supervisor 2023.03.2
Operating System 9.5

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.