maq1017 wrote:Yep, I've got the same issue with LWRF dimmers, it only dims up to 32%.
I think there is a bug with the MadDimLevel variables in domoticz.js, I've overwritten it to 100% and it works fine for me, but I'm not a javascript guy so I've not worked out the implications.
I did some research: if I use the JSON command (as is used by Homebridge platformshim) to retrieve all devices from Domoticz with:
http://ip-address-of-domoticz:8080/json ... order=Name
This is the output for one of the lamps:
Code: Select all
{
"AddjMulti" : 1.0,
"AddjMulti2" : 1.0,
"AddjValue" : 0.0,
"AddjValue2" : 0.0,
"BatteryLevel" : 255,
"CustomImage" : 0,
"Data" : "Set Level: 93 %, Level: 93 %",
"Description" : "",
"Favorite" : 1,
"HardwareID" : 2,
"HardwareName" : "RFXCOM",
"HardwareType" : "RFXCOM - RFXtrx433 USB 433.92MHz Transceiver",
"HardwareTypeVal" : 1,
"HaveDimmer" : true,
"HaveGroupCmd" : true,
"HaveTimeout" : false,
"ID" : "0907196",
"Image" : "Light",
"IsSubDevice" : false,
"LastUpdate" : "2015-10-18 22:26:29",
"Level" : 93,
"LevelInt" : 14,
"MaxDimLevel" : 15,
"Name" : "DimmableLamp",
"Notifications" : "false",
"PlanID" : "2",
"PlanIDs" : [ 2, 16 ],
"Protected" : false,
"ShowNotifications" : true,
"SignalLevel" : 7,
"Status" : "Set Level: 93 %",
"StrParam1" : "",
"StrParam2" : "",
"SubType" : "AC",
"SwitchType" : "Dimmer",
"SwitchTypeVal" : 7,
"Timers" : "false",
"Type" : "Lighting 2",
"TypeImg" : "dimmer",
"Unit" : 4,
"Used" : 1,
"UsedByCamera" : false,
"XOffset" : "66",
"YOffset" : "54",
"idx" : "25"
},
As you can see it has a "MaxDimLevel" : 15, so that explains perhaps why in Homebridge/Siri this translates (at least to the Eve App) as a maximum of 15%.
However this MaxDimLevel should have been calculated to 100%.
Also you can see that this lamp currently has a "Level" : 93 which corresponds to the actual setting of 93% which scales to the indicated "LevelInt" : 14 (on the scale of 0-15).
This is what should be done in the Domoticz.js code as well. I can see some code doing this, but I'm not a programmer so I can't figure out where the bug is. I hope someone else can?
maq1017 wrote:There's also something weird in that Siri doesn't recognise any dimmer commands, but they work from within the app. Strange!
Mmm, for me it does recognize dimmer commands; eg. I can say "set the diner table lamp at 20%" With my Philps Hue lights that works perfectly.