Custom Component not showing as match when add Integration #4737
-
|
I'm trying to create a custom component for an Inkbird C236T Thermostat. I previously had some YAML syntax errors in the file and would get a System Log message in HA when trying to add a new integration. I'm now to the point where the log errors no longer show up so I believe my YAML is syntactically correct. However, when I try to create a new integration, HA does not show my device in the list of matches to select from. How does tuya-local go from a device query to selecting matching components. I guess I have something wrong in my device description, but I cannot figure out where that is. Here is my "simple" device YAML (I also have a complete YAML component where all of the DPs are implemented although there are a few related to the timers that are just string dumps until I figure ou thow they actually work). Does anyone see what might be keeping this from matching my device when I try to add the integration? Thanks, Tom |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
|
Found my problem with adding the component. DPs 101, 121, 132, 133, 145, 148, and 149 are not included in the device broadcast so I needed to mark them as optional. |
Beta Was this translation helpful? Give feedback.
-
|
I wanted to add a little clarification on the above for others looking to create their own device configuration files. If you have an unknown device, the System logs in Home Assistant will have a line with the DPs your device publishes. Something like this:
When adding a new device using the tuya-local integration the percentage match depends on the number of DPs in your device file matching the published list. You should implement at least all of the DPs in the HA log message in your custom YAML. This is mentioned in https://github.com/make-all/tuya-local/blob/main/custom_components/tuya_local/devices/README.md -
What is not specifically mentioned (at least not where I could find) is that if your device has additional DPs mentioned in the |
Beta Was this translation helpful? Give feedback.
Found my problem with adding the component. DPs 101, 121, 132, 133, 145, 148, and 149 are not included in the device broadcast so I needed to mark them as optional.