This is what I have so far but Iâm getting this error code.
msg : string[1128]
âresponse error '{âstatusCodeâ:400,âbodyâ:â\n\n<meta http-equiv=âContent-Typeâ content=âtext/html;charset=utf-8â/>\nError 400 Bad Request\n\n
HTTP ERROR 400
\n
Problem accessing /rest/items/Living_Room_TV. Reason:\n
Bad Request
<a href=âhttp://eclipse.org/jettyâ>Powered by Jetty:// 9.4.12.v20180830
\n\n\n\n",âheadersâ:{âconnectionâ:âcloseâ,âcache-controlâ:âmust-revalidate,no-cache,no-storeâ,âcontent-typeâ:âtext/html;charset=iso-8859-1â,âcontent-lengthâ:â346â,âserverâ:âJetty(9.4.12.v20180830)â},ârequestâ:{âuriâ:{âprotocolâ:âhttp:â,âslashesâ:true,âauthâ:âopenhabian:openhabianâ,âhostâ:â192.168.86.27:8080â,âportâ:â8080â,âhostnameâ:â192.168.86.27â,âhashâ:null,âsearchâ:null,âqueryâ:null,âpathnameâ:"/rest/items/Living_Room_TV",âpathâ:"/rest/items/Living_Room_TV",âhrefâ:â
http://openhabian:openhabian@192.168.86.27:8080/rest/items/Living_Room_TV"},âmethodâ:âPOSTâ,âheadersâ:{âauthorizationâ:"Basic b3BâŠâ
[{"id":"6c070a7.71ca174","type":"debug","z":"2534cf2f.5cfa28","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"payload","targetType":"msg","x":1050,"y":160,"wires":[]},{"id":"625578c4.99863","type":"homekit-service","z":"2534cf2f.5cfa28","isParent":true,"bridge":"90af8346.e9d348","parentService":"","name":"TTV","serviceName":"Television","topic":"","filter":false,"manufacturer":"Default Manufacturer","model":"Default Model","serialNo":"Default Serial Number","characteristicProperties":"","x":470,"y":160,"wires":[["b6958fbe.3d93d"]]},{"id":"71d57b31.18c80c","type":"function","z":"2534cf2f.5cfa28","name":"","func":"if (msg.payload===false){\n msg.payload={\"Active\":0}\n// nrSource:true\n} else {\n msg.payload={\"Active\":1}\n// nrSource:true\n}\nreturn msg","outputs":1,"noerr":0,"x":310,"y":160,"wires":[["625578c4.99863"]]},{"id":"b6958fbe.3d93d","type":"function","z":"2534cf2f.5cfa28","name":"","func":"switch (msg.payload.Active){\n case 0:\n msg1 = {payload:\"Off\"};\n break;\n case 1:\n msg1 = {payload:\"On\"};\n break;\n default:\n msg1 = {};\n return;\n}\nreturn msg1;","outputs":1,"noerr":0,"x":630,"y":160,"wires":[["8690b13c.d8f6"]]},{"id":"8690b13c.d8f6","type":"openhab2-out","z":"2534cf2f.5cfa28","name":"TV","controller":"9650ccbc.234be","itemname":"Living_Room_TV","topic":"ItemCommand","payload":"","x":830,"y":160,"wires":[["6c070a7.71ca174"]]},{"id":"bed8ea6e.5a22d","type":"openhab2-in","z":"2534cf2f.5cfa28","name":"TV","controller":"9650ccbc.234be","itemname":"Living_Room_TV","x":110,"y":160,"wires":[["71d57b31.18c80c"],[]]},{"id":"90af8346.e9d348","type":"homekit-bridge","z":"","bridgeName":"Pi3B+","pinCode":"031-45-138","port":"","allowInsecureRequest":true,"manufacturer":"Rasberry Pi3 B+","model":"Pi3 B+","serialNo":"Default Serial Number","customMdnsConfig":false,"mdnsMulticast":true,"mdnsInterface":"","mdnsPort":"","mdnsIp":"","mdnsTtl":"","mdnsLoopback":true,"mdnsReuseAddr":true},{"id":"9650ccbc.234be","type":"openhab2-controller","z":"","name":"OpenHab","protocol":"http","host":"192.168.86.27","port":"8080","path":"","username":"openhabian","password":"openhabian"}]