wvissers / openhab2-addons-tuya

tuya device properties
25 stars 13 forks source link

Dimmer off = 6%?? #6

Open palsbo opened 4 years ago

palsbo commented 4 years ago

Thanks for a great addon! I am using a dimmer switch and it works fine BUT! When switching OFF it set light to 6% - not 0% ?? When setting to a value. it will often jump 6% higher less than a second later ??

This is my .items file (extract)

Dimmer tuya1 "Spisebord Dæmper" (persist) {channel="tuya:filamentled:f6b83cf1:brightness"} Switch tuya1sw "Spisebord" (persist) {channel="tuya:filamentled:f6b83cf1:power"} Dimmer tuya2 "Tuya2 dæmper" {channel="tuya:filamentled:63c8efea:brightness"} Switch tuya2sw "Tuya2" (persist) {channel="tuya:filamentled:63c8efea:power"}

and this is my .sitemap file (extract):

Switch item=tuya1sw label="Spisebord []" mappings=[OFF="Slukket",ON="Tændt"] icon="poweroutlet" Slider item=tuya1 label="Spisebord - dæmper [%.0f %%]" Switch item=tuya2sw label="Tuya2 []" mappings=[OFF="Slukket",ON="Tændt"] icon="poweroutlet" Slider item=tuya2 label="Tuya2 dæmper [%.0f %%]"

Any explanation for this behavior? Erik