-
Notifications
You must be signed in to change notification settings - Fork 941
Create inkbird_ivc001w_fan.yaml #4206
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
Conversation
Device is unusual in that it does not follow the normal design of either a thermostat or HVAC device and is much more similar to a fan. Also does a very non standard base64 encoded string to show current sensor readings that needs a set of template sensors to expose. Would be amazing to have the ability to do "virtual" DP's and base64 decoding easily. I left the comments in for the bits that really need explaining as the device is weird - most people using this in HA will purely be looking to easily control the fan speed rather than using all of the capabilities of the device.
Fixed device class issue for target temp
fixed comment not starting with a space on line 12 and boolean quote issue
| mapping: | ||
| - dps_val: true | ||
| value: off | ||
| value: "off" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is incorrect, a switch should have boolean values
| value: "c" | ||
| - dps_val: "f" | ||
| value: "f" | ||
| - entity: number |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This would be better as a light entity, with translation_key: display instead of name and icon.
| min: 0 | ||
| max: 100 | ||
| - entity: number | ||
| name: Temperature Calibration |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Use translation_key: temperature_calibration instead of this name and icon
|
I don't know why you conclude that this does not follow the normal design of a thermostat, as the basic features of a switch, a temperature setting and temperature reading are all there. |
|
Looking to rework at the moment - getting the mask extract to work has been a bit of a nightmare but I am almost there. |
|
Scale works on masked values. It does need to be inside a mapping |
|
Working through it, having a hard time getting the temperature/humidity high and low points working as they are both packed values for both high and low. I just can't get the config to work right and would appreciate any guidance you have. the values appear to function like this using the humidity one as an example: ┌───────────────────────────────┐┌───────────────────────────────┐ Is there an example you have on how values like this can be dealt with?
|
|
I don't have any example of the raw data received in dp 102, but generally masked values will come through as either hex or base64 from the device. |
|
Just to make sure I am not going insane - this is the returned feedback from the tuya API explorer for that humidity value: |
Updated entity names and added new entities for temperature and humidity alarms. Adjusted mapping values and improved overall structure.
- big endian is default
|
The dp 102 decoding can be added in a subsequent PR |
Device is unusual in that it does not follow the normal design of either a thermostat or HVAC device and is much more similar to a fan with a bunch of extra settings.
Also does a very non standard base64 encoded string to show current sensor readings that needs a set of template sensors to expose sadly - would be amazing to have the ability to do "virtual" DP's and base64 decoding/encoding natively.
I left the comments in for the bits that really need explaining as the device is weird - most people using this in HA will purely be looking to easily control the fan and speed rather than using all of the capabilities of the device.