-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
Tuya Dimmer not fading properly #4909
Comments
Please, could you try latest version from today? Thanks |
@ascillato2 I upgraded to 6.4.1.8 today via OTA form the URL (http://thehackbox.org/tasmota/sonoff.bin) but still no luck
|
@chaosmaster Joel, any idea on this? |
I remember having looked at this before and wasn't able to get fading to work properly. |
@chaosmaster Should I post the logs from the MCU here? |
Is it possible to use the wake function instead? |
@AalianKhan I suppose logs could help, as I said, i don't have that particular hardware.
Give it a try and let us know ;-) |
Which dimmer is this? Maybe I missed it but didn't see a name at a quick glance. |
|
Will check it out on mine in a bit. Using a slightly modified fork to fix the dimming and power state reporting to home Assistant with various scenarios of turning on or off, but it should be the same with the base of things pertaining to fading. |
looks like mine does some sort of random number at times, I tried this on a PWM based dimmer as well and while the number doesn't jump I'm not really seeing a difference with fade on or off in the light turning on or off. I also tried the fade on another Tuya based dimmer with a segmented number display and it does the same thing. |
Yup, the same thing is happening to me. |
So not being familiar with the fade command what is it supposed to do? Slowly fade in or out? |
Yeah.....at least I think so |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
From #4961, @michael-bartmann When changing dimmer value explicitly (e.g. command "Dimmer 42"), the result message is:
When changing the power only (e.,g. "Power ON", the same topic is used for the result, but there is no dimmer tag in the Json message:
This is inconsistent and confuses binding the dimmer value to that topic in openHAB, because independent from the specific transformation the result message without the dimmer value triggers an update of the dimmer, but does not have a value, which results in a WARN-logging in the best case. (Worst case would be to overwrite the last dimmer value). My expectation is that there was a Dimmer tag with the current dimmer value in every message on that topic. Used hardware: Tuya-compatible EU clone (works more or less, fading issues are already mentioned in another thread). Used firmware: 6.3.0/2.3.0, 6.4.1/2.3.0, 6.4.1/2.4.x, 6.4.1.8/2.5.0beta2 |
@ascillato2 As I understood this was on purpose? |
I am a bit confused as well. I still believe we have two different issues, both related to tuya dimmer. |
There was this question of @digiblur in that closed thread #4961 about setOption. My opinion is that it would be desirable to always have a message formatted consistently, i.e. with the same Json content/tags. But what I would understand as a reasonable option: Introducing a specific non-Json topic for dimmer status updates, like it is done for power, e.g. stat/tuya-1/DIMMER = 42 This would make parsing easy, but not everybody would like to see two messages on each update. So it could be configurable. As far as my request goes: My openHAB binding would profit from either approach, but consistence message formatting is less confusing, doesn't need configuration and may be a low hanging fruit when it comes to implementation efforts. |
@michael-bartmann Theo answered in this link: #4961 (comment) While I don't have a dimmer state topic like you suggested but for my small fork I use for my dimmers I have it report the power relay state and dimmer state anytime anything changes with the light to work around the issue I have in Home Assistant. It made things super simple on implementation for me as well with no crazy templates. |
I actually have the EU hardware version and experiencing the same issue with dimming. I think the MCU is messing things up with the reply's it's sending. Did some checking on weblog 4:
So it looks like maybe the second and third really are canceling the fade operation?
some version info: I wonder if this is fixable with the MCU still running the stock firmware. |
@flavorplus that's exactly the issue I was having trying to get fading to work on the Touch EU. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
This issue will be auto-closed because there hasn't been any activity for a few months. Feel free to open a new one if you still experience this problem. |
Hello, I just flashed a tuya dimmer and everything works fine. I was just wondering if the dimmer can fade to a value. is this possible?
So Startedto search and saw the fade function but it is not working for me. it seems like it sets the value dimmer to random numbers.
status 0
:(Please, remember to close the issue when the problem has been addressed)
The text was updated successfully, but these errors were encountered: