So, jetzt läuft alles!
[
{
"id": "5df1cdf9.12a114",
"type": "amazon-echo-hub",
"z": "485361c3.89313",
"port": "8080",
"enableinput": false,
"x": 130,
"y": 160,
"wires": [
[
"d85d3a2c.2a4718"
]
]
},
{
"id": "d85d3a2c.2a4718",
"type": "amazon-echo-device",
"z": "485361c3.89313",
"name": "Bürolicht",
"topic": "",
"x": 320,
"y": 160,
"wires": [
[
"4ee1947d.ea686c"
]
]
},
{
"id": "97d67de7.6ebf1",
"type": "ioBroker out",
"z": "485361c3.89313",
"name": "Brightness",
"topic": "zigbee.0.0017880102a2d093.brightness",
"ack": "false",
"autoCreate": "false",
"x": 790,
"y": 120,
"wires": []
},
{
"id": "780047d.93fc5b8",
"type": "function",
"z": "485361c3.89313",
"name": "Dimmer",
"func": "var newMsg = { payload: Math.round (msg.bri*100/254) } ;\nreturn newMsg;",
"outputs": 1,
"noerr": 0,
"x": 620,
"y": 120,
"wires": [
[
"97d67de7.6ebf1"
]
]
},
{
"id": "ab21ca8a.670b88",
"type": "ioBroker out",
"z": "485361c3.89313",
"name": "Switch state",
"topic": "zigbee.0.0017880102a2d093.state",
"ack": "false",
"autoCreate": "false",
"x": 850,
"y": 200,
"wires": []
},
{
"id": "6bc055cb.09d2cc",
"type": "change",
"z": "485361c3.89313",
"name": "on/off -> true/false",
"rules": [
{
"t": "change",
"p": "payload",
"pt": "msg",
"from": "on",
"fromt": "str",
"to": "true",
"tot": "bool"
},
{
"t": "change",
"p": "payload",
"pt": "msg",
"from": "off",
"fromt": "str",
"to": "false",
"tot": "bool"
}
],
"action": "",
"property": "",
"from": "",
"to": "",
"reg": false,
"x": 650,
"y": 200,
"wires": [
[
"ab21ca8a.670b88"
]
]
},
{
"id": "4ee1947d.ea686c",
"type": "switch",
"z": "485361c3.89313",
"name": "on/off",
"property": "payload",
"propertyType": "msg",
"rules": [
{
"t": "eq",
"v": "on",
"vt": "str"
},
{
"t": "eq",
"v": "off",
"vt": "str"
}
],
"checkall": "true",
"repair": false,
"outputs": 2,
"x": 470,
"y": 160,
"wires": [
[
"780047d.93fc5b8",
"6bc055cb.09d2cc"
],
[
"6bc055cb.09d2cc"
]
]
}
]