ha0y / xiaomi_miot_raw

All-in-one & Easy-to-use. Integrate all your Xiaomi Smart Home - with a single integration and NO YAML files - into Home Assistant.
Apache License 2.0
2.19k stars 232 forks source link

Add smart plug (wifi) support #64

Closed teo2peer closed 3 years ago

teo2peer commented 3 years ago

I have an mi smart plug (wifi) connected to mi home. In the integration it shows that I have 1 device in my account but it have 0 entities in this integration.

ha0y commented 3 years ago

Hello, Please tell me your device model (the one with two dots), and please check homeassistant logs if there are any errors about it.

teo2peer commented 3 years ago

Hello, Please tell me your device model (the one with two dots), and please check homeassistant logs if there are any errors about it.

I have the zncz05cm model with EU entry. In my debug seems all okay.

DEBUG (MainThread) [custom_components.xiaomi_miot_raw] Loaded from MiCloud 1 devices

ha0y commented 3 years ago

The device model with two dots can be found in your "device" page. And please add these to your configuration.yaml:

logger:
  default: warn
  logs:
    custom_components.xiaomi_miot_raw: debug

for a more detailed log.

teo2peer commented 3 years ago

Hi, thanks to reply. I checked all and I can't see nothing.

Screenshot_2021-03-05-07-15-19-366_io homeassistant companion android

Screenshot_2021-03-05-07-08-30-686_io homeassistant companion android Screenshot_2021-03-05-07-09-26-672_com sonelli juicessh Screenshot_2021-03-05-07-09-50-956_io homeassistant companion android Screenshot_2021-03-05-07-10-03-009_io homeassistant companion android Screenshot_2021-03-05-07-11-56-395_com foxdebug acodefree

ha0y commented 3 years ago

Looks like you haven't add your devices yet. Logging in your Xiaomi account won't add devices automatically. Your need to add the integration again, then you can select devices to add.

teo2peer commented 3 years ago

I got the token and tryied to add the device, but i'm unable to add it by lovelace integration or configuration.yaml

image

image

ha0y commented 3 years ago

Check both checkboxes and it should work. It requires internet to be controlled as MIoT LAN access is not supported by this device.

Please consider https://github.com/syssi/xiaomiplug . This component should be a better choice.

teo2peer commented 3 years ago

I tryed checking one and both checkboxes but no result. I will try xiaomiplug

teo2peer commented 3 years ago

I tryed xiaomiplug and worked perfectly, thanks for the help ☺️