How to add new entity to an existing device? #5397
|
I added a new device and selected the device (dehumidifier) most fit my device. |
Replies: 1 comment 3 replies
|
Yes, this should be possible! tuya local uses YAML files to map DPs to home assistant entities, so you can add DP 107 by editing the device config directly.. there's no UI for this. Find the dehumidifier YAML file in - entity: sensor
name: Filter Life
category: diagnostic
dps:
- id: 107
type: integer
name: sensor
unit: "%"
class: measurementSave it in the same folder and restart Home Assistant (no need to remove and re add the device) One thing to be aware of: files in that directory get overwritten when the integration updates via HACS, so you'd need to reapply after updates. The long term fix would be submitting a PR to add it upstream. |
Yes, this should be possible! tuya local uses YAML files to map DPs to home assistant entities, so you can add DP 107 by editing the device config directly.. there's no UI for this.
Find the dehumidifier YAML file in
config/custom_components/tuya_local/devices/, copy it with a new name, and add something like this:Save it in the same folder and restart Home Assistant (no need to remove and re add the device)
One thing to be aware of: files in that directory get overwritten when the integration updates via HACS, so you'd need to r…