Ich hatte das Problem auch. Ich habe die Fibaro Dimmer 2.
Beim Fibaro Dimmer muss ich noch den Dimmer-Wert von 0 bis 254 auf 0 bis 100 umrechnen.
Der Dimmerwert wird dann mit 10 ms Versatz nach dem Anschalten hinterher geschrieben.
Nicht besonders schön, aber funktioniert. Hier der code:
[
{
"id": "e5e551d5.9d365",
"type": "amazon-echo-device",
"z": "55f55167.7114a",
"name": "Gang oben",
"topic": "",
"x": 350,
"y": 600,
"wires": [
[
"8195d147.c62f1"
]
]
},
{
"id": "2b3c1ae2.80f3f6",
"type": "function",
"z": "55f55167.7114a",
"name": "message-->bri",
"func": "var newMsg = {payload: msg.bri} ;\nreturn newMsg;",
"outputs": 1,
"noerr": 0,
"x": 380,
"y": 660,
"wires": [
[
"47afd88c.e08168"
]
]
},
{
"id": "47afd88c.e08168",
"type": "calculator",
"z": "55f55167.7114a",
"name": "",
"inputMsgField": "payload",
"outputMsgField": "payload",
"operation": "div",
"constant": "254",
"x": 510,
"y": 660,
"wires": [
[
"88b5e064.3f64e"
]
]
},
{
"id": "1af242ed.a87b6d",
"type": "calculator",
"z": "55f55167.7114a",
"name": "",
"inputMsgField": "payload",
"outputMsgField": "payload",
"operation": "trunc",
"constant": "",
"x": 750,
"y": 660,
"wires": [
[
"b8d47d55.305a4"
]
]
},
{
"id": "38c460cb.fae3a",
"type": "change",
"z": "55f55167.7114a",
"name": "off",
"rules": [
{
"t": "change",
"p": "payload",
"pt": "msg",
"from": "off",
"fromt": "str",
"to": "0",
"tot": "num"
}
],
"action": "",
"property": "",
"from": "",
"to": "",
"reg": false,
"x": 730,
"y": 580,
"wires": [
[
"b5247c55.4ba74"
]
]
},
{
"id": "8195d147.c62f1",
"type": "switch",
"z": "55f55167.7114a",
"name": "off?",
"property": "on",
"propertyType": "msg",
"rules": [
{
"t": "false"
},
{
"t": "true"
}
],
"checkall": "true",
"repair": false,
"outputs": 2,
"x": 490,
"y": 600,
"wires": [
[
"38c460cb.fae3a"
],
[
"2b3c1ae2.80f3f6",
"9a150326.d0586"
]
]
},
{
"id": "88b5e064.3f64e",
"type": "calculator",
"z": "55f55167.7114a",
"name": "",
"inputMsgField": "payload",
"outputMsgField": "payload",
"operation": "mult",
"constant": "99",
"x": 620,
"y": 660,
"wires": [
[
"1af242ed.a87b6d"
]
]
},
{
"id": "9a150326.d0586",
"type": "change",
"z": "55f55167.7114a",
"name": "on --> 255",
"rules": [
{
"t": "change",
"p": "payload",
"pt": "msg",
"from": "on",
"fromt": "str",
"to": "255",
"tot": "num"
}
],
"action": "",
"property": "",
"from": "",
"to": "",
"reg": false,
"x": 750,
"y": 620,
"wires": [
[
"b5247c55.4ba74"
]
]
},
{
"id": "b8d47d55.305a4",
"type": "delay",
"z": "55f55167.7114a",
"name": "",
"pauseType": "delay",
"timeout": "10",
"timeoutUnits": "milliseconds",
"rate": "1",
"nbRateUnits": "1",
"rateUnits": "second",
"randomFirst": "1",
"randomLast": "5",
"randomUnits": "seconds",
"drop": false,
"x": 950,
"y": 660,
"wires": [
[
"b5247c55.4ba74"
]
]
},
{
"id": "b5247c55.4ba74",
"type": "ioBroker out",
"z": "55f55167.7114a",
"name": "Gang oben",
"topic": "zwave2.0.Node_015.Multilevel_Switch.targetValue_001",
"ack": "false",
"autoCreate": "false",
"x": 1130,
"y": 620,
"wires": []
}
]