What I would like to change is the amount of time that when it is to be turned off not have a delay.
It seems that there is a 1-3 second delay before the light turns off.
I am unsure which part of the code to fiddle with, because I usually mess it up.
substitutions:
device_name: hall-light
friendly_name: Hall Light
pwm_min_power: 15% # keep dimming functional at lowest levels
no_delay: 0s # transition when changing dimmer_lvl & relay delay
transition_length: .5s # transition when turning on/off
long_press_min: .4s # minimum time to activate long-press action
long_press_max: 2s # maximum time to activate long-press action
long_press_up: 100% # long press brightness
long_press_down: 33% # long press brightness
long_press_main: 50% # long press brightness
My thinking that it is the transition length. But if I set it to “0” what other affects it might have.
Did you ever find an answer to this?
I have a bunch of MJ-SD01 switches and still have them all on tasmota because of this issue.
Setting the transition to 0 makes no difference, it still pauses for a second before it actually shuts off.
I have found some other threads on this, some people say it may be because of the power supply, but none have found a solution.
Since it shuts off immediately using tasmota/mqtt I don’t think it is a hardware issue.
@carltonb I actually found the solution to this while looking at other threads.
There is a setting in my config “pwm_min_power” which was set at 15% by default.
I set this to 5% and I no longer have the delay. I guess it has something to do with how it does the dim down cycle before powering off.
device_name: office-lights # hostname & entity_id
friendly_name: Office Lights # Displayed in HA frontend
pwm_min_power: 5% # keep dimming functional at lowest levels
no_delay: 0s # transition when changing dimmer_lvl & relay delay
transition_length: 0s # transition when turning on/off
long_press_min: .4s # minimum time to activate long-press action
long_press_max: 2s # maximum time to activate long-press action
long_press_up: 100% # long press brightness
long_press_down: 20% # long press brightness
long_press_main: 50% # long press brightness