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

MQTT: Home assistant discovery - analog sensor invalid dev section #1516

Closed
arturzx opened this issue Dec 19, 2023 · 3 comments
Closed

MQTT: Home assistant discovery - analog sensor invalid dev section #1516

arturzx opened this issue Dec 19, 2023 · 3 comments
Assignees
Milestone

Comments

@arturzx
Copy link

arturzx commented Dec 19, 2023

PROBLEM DESCRIPTION

Invalid dev section for analog sensor in HA discovery leads to HA displaying all sensors prefixed with analog sensor name.

TO REPRODUCE

Add analog sensor.

EXPECTED BEHAVIOUR

Added analog sensor have separated device ids like others and not leads to change other entities names.

SCREENSHOTS

image
image

ADDITIONAL CONTEXT

Discovery topic value for this sensor
{ "stat_t": "ems-esp/analogsensor_data", "val_tpl": "{{value_json['05'].value if value_json['05'] is defined and value_json['05'].value is defined else wyłączono}}", "obj_id": "analogsensor_05", "uniq_id": "analogsensor_05", "name": "CWU potrzeba grzania", "pl_on": "włączono", "pl_off": "wyłączono", "dev": { "name": "CWU potrzeba grzania", "ids": [ "ems-esp" ] }, "avty": [ { "t": "ems-esp/status", "val_tpl": "{{'online' if value == 'online' else 'offline'}}" }, { "t": "ems-esp/analogsensor_data", "val_tpl": "{{'online' if value_json['05'] is defined and value_json['05'].value is defined else 'offline'}}" } ], "avty_mode": "all" }

@arturzx
Copy link
Author

arturzx commented Dec 19, 2023

Screenshot from HA devices list:
image

@proddy
Copy link
Contributor

proddy commented Dec 28, 2023

See #1528

@proddy
Copy link
Contributor

proddy commented Jan 3, 2024

will fix with 1528

@proddy proddy closed this as completed Jan 3, 2024
@proddy proddy added this to the v3.6.5 milestone Jan 3, 2024
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

2 participants