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

Avoid battery sensor creation for plant entities #31

Open
ThomDietrich opened this issue Mar 23, 2021 · 0 comments
Open

Avoid battery sensor creation for plant entities #31

ThomDietrich opened this issue Mar 23, 2021 · 0 comments

Comments

@ThomDietrich
Copy link

A plant (https://www.home-assistant.io/integrations/plant/) entity will falsely trigger the creation of a battery entity from attribute. Please exclude, by design a battery entity must exist that feeds into the plant entity.
Would have created a PR but wasn't sure how to check for entity type.

Example:

"plant.gruenlilie":

problem: 'moisture low, conductivity low'
sensors:
  moisture: sensor.gruenlilie_moisture
  battery: sensor.gruenlilie_battery
  temperature: sensor.gruenlilie_temperature
  conductivity: sensor.gruenlilie_conductivity
  brightness: sensor.gruenlilie_light
unit_of_measurement_dict:
  brightness: lux
  temperature: °C
  moisture: '%'
  conductivity: µS/cm
  battery: '%'
moisture: 3
battery: 95
temperature: 20.9
conductivity: 11
brightness: 76
max_brightness: 76
friendly_name: Grünlilie
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

1 participant