Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

confusing installation guide #8

Open
NapalmCandy opened this issue Mar 6, 2020 · 2 comments
Open

confusing installation guide #8

NapalmCandy opened this issue Mar 6, 2020 · 2 comments

Comments

@NapalmCandy
Copy link

NapalmCandy commented Mar 6, 2020

Hi,

I am trying to install this component but the installation guide is confusing. It say:

1: Copy custom_components/sensor/mi_water_purifier.py to .homeassistant/custom_components/sensor

But the folders and .py files are:

custom_components/mi_water_purifier/sensor.py

I am not sure where to put __init__.py and sensor.py. or if I need to rename the sensor.py to mi_water_purifier.py

Also I have a problem on configuration.yaml and the group configuration, it don't pass the verification and give me the error:

Invalid config for [group]: expected a dictionary for dictionary value @ data['group']. Got [OrderedDict([('xiaomi_water_purifier', OrderedDict([('name', 'Xiaomi Water Purifier'), ('icon', 'mdi:water'), ('entities', ['sensor.tap_water', 'sensor.filtered_water', 'sensor.pp_cotton_filter', 'sensor.front_active_carbon_filter', 'sensor.ro_filter', 'sensor.rear_active_carbon_filter'])]))])]. (See /config/configuration.yaml, line 13).

Can you help me please?

Thanks

@thomashooo
Copy link

thomashooo commented Dec 7, 2020

Hi,

I am trying to install this component but the installation guide is confusing. It say:

1: Copy custom_components/sensor/mi_water_purifier.py to .homeassistant/custom_components/sensor

But the folders and .py files are:

custom_components/mi_water_purifier/sensor.py

I am not sure where to put __init__.py and sensor.py. or if I need to rename the sensor.py to mi_water_purifier.py

Also I have a problem on configuration.yaml and the group configuration, it don't pass the verification and give me the error:

Invalid config for [group]: expected a dictionary for dictionary value @ data['group']. Got [OrderedDict([('xiaomi_water_purifier', OrderedDict([('name', 'Xiaomi Water Purifier'), ('icon', 'mdi:water'), ('entities', ['sensor.tap_water', 'sensor.filtered_water', 'sensor.pp_cotton_filter', 'sensor.front_active_carbon_filter', 'sensor.ro_filter', 'sensor.rear_active_carbon_filter'])]))])]. (See /config/configuration.yaml, line 13).

Can you help me please?

Thanks
1、项目文件夹才是对的,请复制mi_water_purifier整个含__init__.py,sensor.py
custom_components/mi_water_purifier/sensor.py
2、groups.yaml
xiaomiwater:
name: WaterPurifier
icon: mdi:water
entities:
- sensor.tap_water
- sensor.filtered_water
- sensor.pp_cotton_filter
- sensor.front_active_carbon_filter
- sensor.ro_filter
- sensor.rear_active_carbon_filter

@auntispam
Copy link

try

cp custom_components/mi_water_purifier/sensor.py to .homeassistant/custom_components/mi_water_purifier/sensor.py

I have successfully added the script and configuration.yml for Xiaomi Water Purifier. However, it still shows some error after restarted.

Fail to get_prop from Xiaomi water purifier

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants