Connect S7 TIA Siemens Simatic PLC Apple Homekit Hey Siri LIGHTBULB

Connect your Siemens Simatic S7 PLC to Apple Homekit Here is an example of a LIGHTBULB

[{"id":"024cb2f128227379","type":"homekit-service","z":"645643c.efbd3bc","isParent":true,"hostType":"0","bridge":"e315f460.4979d8","accessoryId":"","parentService":"","name":"Test Lightbulb","serviceName":"Lightbulb","topic":"","filter":false,"manufacturer":"Default Manufacturer","model":"Default Model","serialNo":"Default Serial Number","firmwareRev":"1.0.0","hardwareRev":"1.0.0","softwareRev":"1.0.0","cameraConfigVideoProcessor":"ffmpeg","cameraConfigSource":"","cameraConfigStillImageSource":"","cameraConfigMaxStreams":2,"cameraConfigMaxWidth":1280,"cameraConfigMaxHeight":720,"cameraConfigMaxFPS":10,"cameraConfigMaxBitrate":300,"cameraConfigVideoCodec":"libx264","cameraConfigAudioCodec":"libfdk_aac","cameraConfigAudio":false,"cameraConfigPacketSize":1316,"cameraConfigVerticalFlip":false,"cameraConfigHorizontalFlip":false,"cameraConfigMapVideo":"0:0","cameraConfigMapAudio":"0:1","cameraConfigVideoFilter":"scale=1280:720","cameraConfigAdditionalCommandLine":"-tune zerolatency","cameraConfigDebug":false,"cameraConfigSnapshotOutput":"disabled","cameraConfigInterfaceName":"","characteristicProperties":"{}","waitForSetupMsg":false,"outputs":2,"x":900,"y":220,"wires":[["c14ffe6b41b070bd"],[]]},{"id":"02fbd6553d7bafa6","type":"s7 out","z":"645643c.efbd3bc","endpoint":"ba4f422c5ebd94e8","variable":"M10.0 ","name":"","x":1190,"y":220,"wires":[]},{"id":"c14ffe6b41b070bd","type":"function","z":"645643c.efbd3bc","name":"func","func":"\n\nreturn {payload: msg.payload.On};","outputs":1,"noerr":0,"x":1050,"y":220,"wires":[["02fbd6553d7bafa6"]]},{"id":"dddf37e706866ef0","type":"s7 in","z":"645643c.efbd3bc","endpoint":"ba4f422c5ebd94e8","mode":"single","variable":"M10.0 ","diff":true,"name":"","x":150,"y":220,"wires":[["7ce9b9f80f228e43"]]},{"id":"f5f590f875772fe0","type":"change","z":"645643c.efbd3bc","name":"","rules":[{"t":"set","p":"payload","pt":"msg","to":"{\"On\":1,\"OutletInUse\":1}","tot":"json"}],"action":"","property":"","from":"","to":"","reg":false,"x":610,"y":180,"wires":[["024cb2f128227379"]]},{"id":"7ce9b9f80f228e43","type":"switch","z":"645643c.efbd3bc","name":"","property":"payload","propertyType":"msg","rules":[{"t":"true"},{"t":"false"}],"checkall":"true","repair":false,"outputs":2,"x":370,"y":220,"wires":[["f5f590f875772fe0"],["c6256ccda76fc5d1"]]},{"id":"c6256ccda76fc5d1","type":"change","z":"645643c.efbd3bc","name":"","rules":[{"t":"set","p":"payload","pt":"msg","to":"{\"On\":0,\"OutletInUse\":0}","tot":"json"}],"action":"","property":"","from":"","to":"","reg":false,"x":590,"y":240,"wires":[["024cb2f128227379"]]},{"id":"e315f460.4979d8","type":"homekit-bridge","bridgeName":"Zuhause","pinCode":"111-11-111","port":"","allowInsecureRequest":false,"manufacturer":"Default Manufacturer","model":"Default Model","serialNo":"Default Serial Number","firmwareRev":"","hardwareRev":"","softwareRev":"","customMdnsConfig":false,"mdnsMulticast":true,"mdnsInterface":"","mdnsPort":"","mdnsIp":"","mdnsTtl":"","mdnsLoopback":true,"mdnsReuseAddr":true,"allowMessagePassthrough":true},{"id":"ba4f422c5ebd94e8","type":"s7 endpoint","transport":"iso-on-tcp","address":"192.168.123.1","port":"102","rack":"0","slot":"2","localtsaphi":"01","localtsaplo":"00","remotetsaphi":"01","remotetsaplo":"00","connmode":"rack-slot","adapter":"","busaddr":"2","cycletime":"200","timeout":"2000","name":"Test","vartable":[{"addr":"M10.0","name":"M10.0 "}]}]

Flow Info

Created 2 years, 6 months ago
Rating: 5 1

Owner

Actions

Rate:

Node Types

Core
  • change (x2)
  • function (x1)
  • switch (x1)
Other
  • homekit-bridge (x1)
  • homekit-service (x1)
  • s7 endpoint (x1)
  • s7 in (x1)
  • s7 out (x1)

Tags

  • SIEMENS
  • PLC
  • SPS
  • APPLE
  • HOMEKIT
  • SIMATIC
  • SIRI
  • TIA
  • HOMEAUTOMATION
  • HEYSIRI
  • HOMEPOD
  • S7
Copy this flow JSON to your clipboard and then import into Node-RED using the Import From > Clipboard (Ctrl-I) menu option