Closed jsetton closed 11 months ago
Wouldn't this also be possible with the INVERT profile?
As far as I can see (using the latest OH 4.2-SNAPSHOT
), I don't see any INVERT profile available. However, I am aware that a MAP or a SCRIPT profile can achieve this. But I think this is added complexity especially since the channel definitions for the Tuya addon are already generic, I figured it wouldn't hurt to have that option at that level.
I could make the case that the addon should actually invert the temp_value
data point by default to keep the consistency across the OH ecosystem. If you rather hardcode that use case, I don't have any issue with that.
I made the changes based on your comments.
Looks good. the only thing missing is the documentation. Can you add the parameter to the channel documentation in README.md?
I updated the documentation.
Unfortunately there is now a merge conflict after I merged your other PR. Can you fix that? Thanks.
Done.
Some dimmer type channel should have the ability to support inverted values. This is useful for the
temp_value
channel which is generally implemented, compared to similar light control addons, from colder (0%) to warmer (100%).