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

[feature request] Possibility to remove auto-created sensors #3541

Closed
to4ko opened this issue May 12, 2020 · 9 comments
Closed

[feature request] Possibility to remove auto-created sensors #3541

to4ko opened this issue May 12, 2020 · 9 comments

Comments

@to4ko
Copy link

to4ko commented May 12, 2020

Feature request

What happened

It' will be good to have possibility to switch off additional entitys auto-created in Home Assistant - for Xiaomi Plug there is 3 entities created - switch, power and link quality. But last 2 of them are available as attributes in switch. It leads to additional DB recordings etc.
Yes they can be excluded from being recorded. But this is easy when 2 plug...and not so easy when 130+ devices .... simple option in config might solve this one very easily.

What did you expect to happen

How to reproduce it (minimal and precise)

Debug Info

Zigbee2mqtt version: 1.13
Adapter hardware: CC2538

@Morphy99
Copy link

+1

@to4ko
Copy link
Author

to4ko commented May 12, 2020

as of now kinda solved by disabling un-needed entities from Configuration-Entities menu

@Koenkk
Copy link
Owner

Koenkk commented May 13, 2020

You can skip the discovery of a sensor with the device specific options. E.g. to prevent a temperature sensor from being discovered:

devices:
  '0x00158d0001d82999':
    friendly_name: 'my_occupancy_sensor'
    retain: true
    homeassistant:
      temperature: null

@to4ko
Copy link
Author

to4ko commented May 13, 2020

You can skip the discovery of a sensor with the device specific options. E.g. to prevent a temperature sensor from being discovered:

devices:
  '0x00158d0001d82999':
    friendly_name: 'my_occupancy_sensor'
    retain: true
    homeassistant:
      temperature: null

Thanks!!! need to do some changes in my config :)

@to4ko
Copy link
Author

to4ko commented May 13, 2020

You can skip the discovery of a sensor with the device specific options. E.g. to prevent a temperature sensor from being discovered:

devices:
  '0x00158d0001d82999':
    friendly_name: 'my_occupancy_sensor'
    retain: true
    homeassistant:
      temperature: null

is it possible to make this kind of settings for all the devices simultaneously? i have like 132 devices at the moment and it would be good to have possibility to list unwanted type of sensors.

@Koenkk
Copy link
Owner

Koenkk commented May 14, 2020

In the latest dev branch this is now possibly by adding the following to your configuration.yaml.

device_options:
  homeassistant:
    temperature: null

https://www.zigbee2mqtt.io/how_tos/how-to-switch-to-dev-branch.html

@to4ko
Copy link
Author

to4ko commented Jun 5, 2020

@Koenkk am i doing something wrong?
here is devices.yaml
image

and i'm still having battery and linkquality in HA
image

@Koenkk
Copy link
Owner

Koenkk commented Jun 6, 2020

After this you probably need to clear the retained MQTT discovery message.

@vitoralvimb
Copy link

How can I do that with the "cover"?
I have my Curtain completely closed, position = 100, and the Home Assistant have the Up Arrow disabled and Down Arrow avaliable. If I open the curtain putting position = 0, the Down arrow stay disabled.

I'd like to invert it.

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

4 participants