Hi @sr1,
kein Problem:
[{"id":"f9ff3918.a1ea58","type":"change","z":"2cc975df.7f8f7a","name":"","rules":[{"t":"move","p":"payload.On","pt":"msg","to":"payload","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":350,"y":700,"wires":[["3362a2cd.b6086e"]]},{"id":"3362a2cd.b6086e","type":"change","z":"2cc975df.7f8f7a","name":"","rules":[{"t":"change","p":"payload","pt":"msg","from":"true","fromt":"bool","to":"{\"meta\":{\"eep\":\"a5-07-01\",\"channel\":6,\"type\":\"data\"},\"data\":{\"PIRS\":250}}","tot":"json"},{"t":"change","p":"payload","pt":"msg","from":"false","fromt":"bool","to":"{\"meta\":{\"eep\":\"a5-07-01\",\"channel\":6,\"type\":\"data\"},\"data\":{\"PIRS\":0}}","tot":"json"}],"action":"","property":"","from":"","to":"","reg":false,"x":580,"y":700,"wires":[["294ea16b.879a0e"]]},{"id":"ed264b56.9f3218","type":"homekit-service","z":"2cc975df.7f8f7a","accessory":"910224ab.bd05b8","name":"Michael Precense","serviceName":"Switch","x":110,"y":700,"wires":[["f9ff3918.a1ea58"]]},{"id":"20aaf3c6.0371cc","type":"enocean-out","z":"2cc975df.7f8f7a","serialport":"36056171.b343b6","name":"","logOutput":false,"x":930,"y":700,"wires":[[]]},{"id":"294ea16b.879a0e","type":"msg-resend","z":"2cc975df.7f8f7a","interval":"2","intervalUnit":"hours","maximum":"0","bytopic":false,"clone":false,"firstDelayed":false,"addCounters":false,"highRate":true,"outputCountField":"","outputMaxField":"","name":"","x":770,"y":700,"wires":[["20aaf3c6.0371cc"]]},{"id":"610fdead.4ab978","type":"inject","z":"2cc975df.7f8f7a","name":"Präsenzmelder CH6","topic":"","payload":"{\"meta\":{\"eep\":\"a5-07-01\",\"channel\":6,\"type\":\"teach-in\"},\"teach-in\":{\"type\":\"4BS\"},\"data\":{\"LRN\":1}}","payloadType":"json","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":130,"y":660,"wires":[["f87738b.87feac8"]]},{"id":"f87738b.87feac8","type":"enocean-out","z":"2cc975df.7f8f7a","serialport":"36056171.b343b6","name":"","logOutput":true,"x":330,"y":660,"wires":[[]]},{"id":"910224ab.bd05b8","type":"homekit-accessory","z":"","accessoryName":"Michael Precense","pinCode":"455-66-139","port":"","manufacturer":"Default Manufacturer","model":"Default Model","serialNo":"Default Serial Number","accessoryType":"8"},{"id":"36056171.b343b6","type":"enocean-config-node","z":"","serialport":"/dev/ttyUSB0"}]
Zuerst den Präsenzmelder (im Beispiel CH6) in homie anlernen.
Den HomeKit-Switch in HomeKit hinzufügen und eine Automation erstellen: Wenn Bereich von Person A betreten wird, dann Switch einschalten. Wenn Bereich von Person A verlassen wird, dann Switch ausschalten.
Das wars.
VG
Michael