NEWS
Lichtschalter und iobroker und manuelles auslösen
-
@Ente mit strg+leertaste kannst du rechts ein menü ein und ausblenden. das muss eingeblendet werden
-
Das Menü ist da. Es erschien ganz kurz: Erfolgreich implemntiert. Bei "g" passierte nichts.
-
@Ente Damit hätten wir jetzt die device id vom Bad. Soll der Wert nur in VIS angezeigt werden oder schaltbar sein?
-
@Ente OK das müssen wir ausprobieren, da ich leider meine Sonoff geräte geflasht hab und das so nich nachmachen kann. Kannst du im IOB Objekt Browser unter userdata.0 ein neuen Datenpunkt anlegen als Logikwert
-
@Ente OK importier mal diesen Flow:
[ { "id": "95fe1d43.5b40e", "type": "ioBroker in", "z": "816d1036.bc2a78", "name": "", "topic": "0_userdata.0.example_state.test", "payloadType": "value", "onlyack": "", "func": "rbe", "gap": "", "fireOnStart": "false", "x": 370, "y": 340, "wires": [ [ "33ce8287.5bc756" ] ] }, { "id": "32a2cf7a.f26bd", "type": "ioBroker out", "z": "816d1036.bc2a78", "name": "", "topic": "0_userdata.0.example_state.test", "ack": "false", "autoCreate": "false", "stateName": "", "role": "", "payloadType": "", "readonly": "", "stateUnit": "", "stateMin": "", "stateMax": "", "x": 1010, "y": 400, "wires": [] }, { "id": "11450bfd.8107c4", "type": "ewelink-power-state-read", "z": "816d1036.bc2a78", "name": "", "deviceId": "1000519e49", "channel": 1, "auth": "", "x": 500, "y": 400, "wires": [ [ "c1a8c003.a50b8" ] ] }, { "id": "dc47e9fb.4654", "type": "ewelink-power-state-write", "z": "816d1036.bc2a78", "name": "", "deviceId": "1000519e49", "channel": 1, "auth": "", "x": 960, "y": 340, "wires": [ [] ] }, { "id": "18482006.cffd8", "type": "inject", "z": "816d1036.bc2a78", "name": "", "topic": "", "payload": " ", "payloadType": "str", "repeat": "1", "crontab": "", "once": false, "onceDelay": 0.1, "x": 310, "y": 400, "wires": [ [ "11450bfd.8107c4" ] ] }, { "id": "33ce8287.5bc756", "type": "change", "z": "816d1036.bc2a78", "name": "", "rules": [ { "t": "change", "p": "payload", "pt": "msg", "from": "true", "fromt": "str", "to": "on", "tot": "str" }, { "t": "change", "p": "payload", "pt": "msg", "from": "false", "fromt": "str", "to": "off", "tot": "str" } ], "action": "", "property": "", "from": "", "to": "", "reg": false, "x": 640, "y": 340, "wires": [ [ "dc47e9fb.4654" ] ] }, { "id": "c1a8c003.a50b8", "type": "change", "z": "816d1036.bc2a78", "name": "", "rules": [ { "t": "change", "p": "payload", "pt": "msg", "from": "on", "fromt": "str", "to": "true", "tot": "str" }, { "t": "change", "p": "payload", "pt": "msg", "from": "off", "fromt": "str", "to": "false", "tot": "str" } ], "action": "", "property": "", "from": "", "to": "", "reg": false, "x": 740, "y": 400, "wires": [ [ "32a2cf7a.f26bd" ] ] } ]In den beiden userdata nodes muss test groß geschrieben werden also "Test"
-
@Ente OK importier mal diesen Flow:
[ { "id": "95fe1d43.5b40e", "type": "ioBroker in", "z": "816d1036.bc2a78", "name": "", "topic": "0_userdata.0.example_state.test", "payloadType": "value", "onlyack": "", "func": "rbe", "gap": "", "fireOnStart": "false", "x": 370, "y": 340, "wires": [ [ "33ce8287.5bc756" ] ] }, { "id": "32a2cf7a.f26bd", "type": "ioBroker out", "z": "816d1036.bc2a78", "name": "", "topic": "0_userdata.0.example_state.test", "ack": "false", "autoCreate": "false", "stateName": "", "role": "", "payloadType": "", "readonly": "", "stateUnit": "", "stateMin": "", "stateMax": "", "x": 1010, "y": 400, "wires": [] }, { "id": "11450bfd.8107c4", "type": "ewelink-power-state-read", "z": "816d1036.bc2a78", "name": "", "deviceId": "1000519e49", "channel": 1, "auth": "", "x": 500, "y": 400, "wires": [ [ "c1a8c003.a50b8" ] ] }, { "id": "dc47e9fb.4654", "type": "ewelink-power-state-write", "z": "816d1036.bc2a78", "name": "", "deviceId": "1000519e49", "channel": 1, "auth": "", "x": 960, "y": 340, "wires": [ [] ] }, { "id": "18482006.cffd8", "type": "inject", "z": "816d1036.bc2a78", "name": "", "topic": "", "payload": " ", "payloadType": "str", "repeat": "1", "crontab": "", "once": false, "onceDelay": 0.1, "x": 310, "y": 400, "wires": [ [ "11450bfd.8107c4" ] ] }, { "id": "33ce8287.5bc756", "type": "change", "z": "816d1036.bc2a78", "name": "", "rules": [ { "t": "change", "p": "payload", "pt": "msg", "from": "true", "fromt": "str", "to": "on", "tot": "str" }, { "t": "change", "p": "payload", "pt": "msg", "from": "false", "fromt": "str", "to": "off", "tot": "str" } ], "action": "", "property": "", "from": "", "to": "", "reg": false, "x": 640, "y": 340, "wires": [ [ "dc47e9fb.4654" ] ] }, { "id": "c1a8c003.a50b8", "type": "change", "z": "816d1036.bc2a78", "name": "", "rules": [ { "t": "change", "p": "payload", "pt": "msg", "from": "on", "fromt": "str", "to": "true", "tot": "str" }, { "t": "change", "p": "payload", "pt": "msg", "from": "off", "fromt": "str", "to": "false", "tot": "str" } ], "action": "", "property": "", "from": "", "to": "", "reg": false, "x": 740, "y": 400, "wires": [ [ "32a2cf7a.f26bd" ] ] } ]In den beiden userdata nodes muss test groß geschrieben werden also "Test"
-
@Ente Wenn du test gegen Test getauscht hast kannst du das ja mal testen. Werte auslesen und schalten in einem Datenpunkt ist in Nodered sehr kompliziert. evtl. lösen wir das gleich anders
-
@Ente Also nachmal:
[{"id":"eeaafec1.64e1c8","type":"ioBroker in","z":"816d1036.bc2a78","name":"","topic":"0_userdata.0.example_state.Test","payloadType":"value","onlyack":"","func":"rbe","gap":"","fireOnStart":"false","x":550,"y":260,"wires":[["a0eca12f.40b61"]]},{"id":"1ee747f3.f1012","type":"ioBroker out","z":"816d1036.bc2a78","name":"","topic":"0_userdata.0.example_state.Test","ack":"false","autoCreate":"false","stateName":"","role":"","payloadType":"","readonly":"","stateUnit":"","stateMin":"","stateMax":"","x":1320,"y":320,"wires":[]},{"id":"8ee7ecff.83d5a8","type":"ewelink-power-state-read","z":"816d1036.bc2a78","name":"","deviceId":"1000519e49","channel":1,"auth":"","x":680,"y":320,"wires":[["884e67c2.8507a8"]]},{"id":"75ded6ec.b0fc7","type":"ewelink-power-state-write","z":"816d1036.bc2a78","name":"","deviceId":"1000519e49","channel":1,"auth":"","x":1300,"y":260,"wires":[[]]},{"id":"6789feab.7e625","type":"inject","z":"816d1036.bc2a78","name":"","topic":"","payload":" ","payloadType":"str","repeat":"1","crontab":"","once":false,"onceDelay":0.1,"x":490,"y":320,"wires":[["8ee7ecff.83d5a8"]]},{"id":"884e67c2.8507a8","type":"switch","z":"816d1036.bc2a78","name":"","property":"payload","propertyType":"msg","rules":[{"t":"cont","v":"on","vt":"str"},{"t":"cont","v":"off","vt":"str"}],"checkall":"true","repair":false,"outputs":2,"x":870,"y":320,"wires":[["60c17500.006144"],["c79b99e8.9954a"]]},{"id":"60c17500.006144","type":"change","z":"816d1036.bc2a78","name":"","rules":[{"t":"set","p":"payload","pt":"msg","to":"true","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":1050,"y":300,"wires":[["1ee747f3.f1012"]]},{"id":"c79b99e8.9954a","type":"change","z":"816d1036.bc2a78","name":"","rules":[{"t":"set","p":"payload","pt":"msg","to":"false","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":1050,"y":340,"wires":[["1ee747f3.f1012"]]},{"id":"a0eca12f.40b61","type":"change","z":"816d1036.bc2a78","name":"","rules":[{"t":"change","p":"payload","pt":"msg","from":"true","fromt":"str","to":"on","tot":"str"},{"t":"change","p":"payload","pt":"msg","from":"false","fromt":"str","to":"off","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":920,"y":260,"wires":[["75ded6ec.b0fc7"]]}]



dann array öffnen 



