Hello,
I’m trying to control a water boiler electrical heating from OpenHAB (3.4.2 openhabian) according to my actual photovoltaic output.
Since I did not find a smart power dimmer, I use a Sonoff D1 (equipped with a more powerful triac) running Tasmota. The controlling uses a mosquitto broker on my raspi.
Probably, my problem is not in the Tasmota device but within OpenHAB, because it also happens, when the thing is offline.
When I step the dimmer up, everything works fine, as long as I don’t reach values with a 5 as last digit. Then the actor suddenly jumps up to the next decade.
So I start with 1,2,3,4 and the dimmer steps up normally. Entering the “5” causes him to jump immediately to 10. In the Tasmota console, I see the 5, immediately followed by the 10. At 15, the jump goes to 20. The similar problem happens at 25, 35, 45 etc.
Stepping down, the jumping occurs at 4 as last digit (from 25 to 20 instead of 24).
Resending the desired value (with delay) helps to overcome the problem, but I believe that a good bugfix is the better solution.
Here is the Dimmer channel code:
UID: mqtt:topic:mosquitto_on_pi:Dimmer1
label: Dimmer1
thingTypeUID: mqtt:topic
configuration: {}
bridgeUID: mqtt:broker:mosquitto_on_pi
channels:
- id: Dimmer1
channelTypeUID: mqtt:dimmer
label: Dimmer1
description: “”
configuration:
commandTopic: cmnd/D1/DIMMER
min: 0
stateTopic: stat/D1/RESULT
transformationPattern: JSONPATH:$.Dimmer
max: 100 - id: DimmerSw1
channelTypeUID: mqtt:switch
label: DimmerSw1
description: “”
configuration:
commandTopic: cmnd/D1/POWER
stateTopic: stat/D1/RESULT
transformationPattern: JSONPATH:$.POWER