{"id":2012,"date":"2018-10-29T14:44:14","date_gmt":"2018-10-29T14:44:14","guid":{"rendered":"https:\/\/www.thenaylors.co.uk\/wordpress\/?p=2012"},"modified":"2019-04-27T17:25:09","modified_gmt":"2019-04-27T16:25:09","slug":"owl-intuition-logging-to-mosquitto-and-home-assistant","status":"publish","type":"post","link":"https:\/\/www.thenaylors.co.uk\/wordpress\/owl-intuition-logging-to-mosquitto-and-home-assistant\/","title":{"rendered":"Owl Intuition, logging to Mosquitto and Home Assistant"},"content":{"rendered":"\n<p>So thanks to Google again and the Home Assistant wiki I now have the Owl Intuition Solar readings being sent to Mosquitto and used as a series of sensors in Home Assistant.<\/p>\n\n\n\n<p>Starting point was this wiki entry and the entry by <a href=\"https:\/\/community.home-assistant.io\/t\/owl-intuition-pv-home-assistant\/18157\/3\">jchasey.&nbsp;https:\/\/community.home-assistant.io\/t\/owl-intuition-pv-home-assistant\/18157\/3<\/a>.<\/p>\n\n\n\n<p>The python script was amended to take solar reading and not hot_water and heating.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>import socket\nimport struct\nimport json\nfrom xml.etree import ElementTree as ET\n\nOWL_PORT = 22600\nOWL_GROUP = \"224.192.32.19\"\n\nsock = socket.socket(socket.AF_INET, socket.SOCK_DGRAM, socket.IPPROTO_UDP)\nsock.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR, 1)\nsock.bind((OWL_GROUP, OWL_PORT))\nmreq = struct.pack(\"=4sl\", socket.inet_aton(OWL_GROUP), socket.INADDR_ANY)\nsock.setsockopt(socket.IPPROTO_IP, socket.IP_ADD_MEMBERSHIP, mreq)\n\nwhile True:\n    # Collect the XML multicast message\n    xml, addr = sock.recvfrom(1024)\n    # Parse the XML string\n    root = ET.fromstring(xml)\n\n    # print (root)\n\n    # Only process those messages we are interested in\n\n    if root.tag == 'electricity':\n      timestamp_value = 0\n      timestamp = root.find('timestamp')\n      if timestamp is not None:\n           timestamp_value = int(timestamp.text)\n           #print (\"time\", timestamp_value)\n        \n      signal_rssi_value = 0\n      signal_lqi_value = 0\n      signal = root.find('signal')\n      if signal is not None:\n        signal_rssi_value = int(signal.attrib[\"rssi\"])\n        signal_lqi_value = int(signal.attrib[\"lqi\"])\n        #print (\"rssi\", signal_rssi_value)\n        #print (\"lqi\", signal_lqi_value)\n\n      battery_value = 0.0\n      battery = root.find('battery')\n      if battery is not None:\n        battery_value = float(battery.attrib[\"level\"].rstrip(\"%\"))\n        #print (\"battery value\", battery_value)\n\n      for chan in root.iter('chan'):\n        #print (chan.attrib)\n        \n        chanid = chan.get('id')\n        #print (\"chandid\", chanid)\n        if chanid == \"0\":\n          current_now = 0.0\n          current = chan.find('curr')\n          if current is not None:\n              current_now = float(current.text)\n              #print (\"current now\", current_now)\n          current_day = 0.0\n          current = chan.find('day')\n          if current is not None:\n              current_day = float(current.text)\n              #print (\"current day\", current_day)\n\n        if chanid == \"1\":\n          solar_now = 0.0\n          solar = chan.find('curr')\n          if solar is not None:\n              solar_now = float(solar.text)\n              #print (\"solar now\", solar_now)\n          solar_day = 0.0\n          solar = chan.find('day')\n          if solar is not None:\n              solar_day = float(solar.text)\n              #print (\"solar day\", solar_day)\n\n    if root.tag == 'solar':\n        solar_exported = 0.0\n        solar = root.find('day\/exported')\n        if solar is not None:\n            solar_exported = float(solar.text)\n            #print (\"solar export\", solar_exported)\n            print (json.dumps({'type': root.tag, \\\n                       'timestamp': timestamp_value, \\\n                       'battery_level': battery_value, \\\n                       'current_now': current_now, \\\n                       'current_day': current_day,\\\n                       'solar_now': solar_now,\\\n                       'solar_day': solar_day,\\\n                       'solar_exported': solar_exported}))\n            \n\n<\/code><\/pre>\n\n\n\n<p>I then added a shell script to run the python.&nbsp; This was placed into \/usr\/local\/bin with permission at 0400.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>#!\/bin\/sh\n#\n# owl_mcast2mqtt.sh\n#\n# Publish json output of the owl_mcast2json script to MQTT \n#\nexport LANG=C\nPATH=\"\/usr\/local\/bin:\/usr\/local\/sbin:\/usr\/bin:\/usr\/sbin:\/bin:\/sbin\"\n\nMQTT_HOST=\"ip.address.0.0\"\nMQTT_PORT=\"8883\"\nMQTT_USER=\"xxx\"\nMQTT_PASS=\"xxx\"\n\necho \"OWL Network Multicast 2 MQTT\"\n\npython3 -u \/usr\/owlintuition\/owl.py | while read line\ndo\n\tMQTT_TOPIC=\"tele\/home\/mcast\/$(echo $line | jq --raw-output '.type')\"\n\t# Publish the json to the appropriate topic\n\techo $line | mosquitto_pub -h $MQTT_HOST -p $MQTT_PORT -u $MQTT_USER -P $MQTT_PASS -i OWL_MCast -r -l -t $MQTT_TOPIC\ndone<\/code><\/pre>\n\n\n\n<p>A service was then created and enabled.<\/p>\n\n\n\n<p>[Unit]<br>\nDescription=OWL MQTT store<br>\nAfter=suspend.target<\/p>\n\n\n\n<p>[Service]<br>\nUser=root<br>\nType=oneshot<br>\nExecStart=\/usr\/local\/bin\/owl_mcast2mqtt.sh<br>\nTimeoutSec=0<br>\nStandardOutput=syslog<\/p>\n\n\n\n<p>[Install]<br> WantedBy=suspend.target<\/p>\n\n\n\n<p>Strangely after a power cut all the above &#8220;disappeared&#8221;.<\/p>\n\n\n\n<p>Mosquito needed reinstalling &#8211; link here <a href=\"https:\/\/www.switchdoc.com\/2018\/02\/tutorial-installing-and-testing-mosquitto-mqtt-on-raspberry-pi\/\">https:\/\/www.switchdoc.com\/2018\/02\/tutorial-installing-and-testing-mosquitto-mqtt-on-raspberry-pi\/<\/a><\/p>\n\n\n\n<p>jq needed installing &#8211; link here <a href=\"https:\/\/stedolan.github.io\/jq\/download\/\">https:\/\/stedolan.github.io\/jq\/download\/<\/a><\/p>\n\n\n\n<p>This is a useful reminder for getting scripts working &#8211; <a href=\"https:\/\/www.raspberrypi.org\/forums\/viewtopic.php?t=197513\">https:\/\/www.raspberrypi.org\/forums\/viewtopic.php?t=197513<\/a><\/p>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>So thanks to Google again and the Home Assistant wiki I now have the Owl Intuition Solar readings being sent to Mosquitto and used as a series of sensors in Home Assistant. Starting point was this wiki entry and the entry by jchasey.&nbsp;https:\/\/community.home-assistant.io\/t\/owl-intuition-pv-home-assistant\/18157\/3. The python script was amended to take solar reading and not hot_water &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/www.thenaylors.co.uk\/wordpress\/owl-intuition-logging-to-mosquitto-and-home-assistant\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;Owl Intuition, logging to Mosquitto and Home Assistant&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[169,175,174],"tags":[],"class_list":["post-2012","post","type-post","status-publish","format-standard","hentry","category-home-assistant","category-mosquitto","category-owl-intuition"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v24.4 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Owl Intuition, logging to Mosquitto and Home Assistant - Michael Naylor<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.thenaylors.co.uk\/wordpress\/owl-intuition-logging-to-mosquitto-and-home-assistant\/\" \/>\n<meta property=\"og:locale\" content=\"en_GB\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Owl Intuition, logging to Mosquitto and Home Assistant - Michael Naylor\" \/>\n<meta property=\"og:description\" content=\"So thanks to Google again and the Home Assistant wiki I now have the Owl Intuition Solar readings being sent to Mosquitto and used as a series of sensors in Home Assistant. Starting point was this wiki entry and the entry by jchasey.&nbsp;https:\/\/community.home-assistant.io\/t\/owl-intuition-pv-home-assistant\/18157\/3. The python script was amended to take solar reading and not hot_water &hellip; Continue reading &quot;Owl Intuition, logging to Mosquitto and Home Assistant&quot;\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.thenaylors.co.uk\/wordpress\/owl-intuition-logging-to-mosquitto-and-home-assistant\/\" \/>\n<meta property=\"og:site_name\" content=\"Michael Naylor\" \/>\n<meta property=\"article:published_time\" content=\"2018-10-29T14:44:14+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2019-04-27T16:25:09+00:00\" \/>\n<meta name=\"author\" content=\"admin\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@mjnaylor\" \/>\n<meta name=\"twitter:site\" content=\"@mjnaylor\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"admin\" \/>\n\t<meta name=\"twitter:label2\" content=\"Estimated reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"3 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/www.thenaylors.co.uk\/wordpress\/owl-intuition-logging-to-mosquitto-and-home-assistant\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/www.thenaylors.co.uk\/wordpress\/owl-intuition-logging-to-mosquitto-and-home-assistant\/\"},\"author\":{\"name\":\"admin\",\"@id\":\"https:\/\/www.thenaylors.co.uk\/wordpress\/#\/schema\/person\/af4669b3ebc6341a4c069ea3381181ad\"},\"headline\":\"Owl Intuition, logging to Mosquitto and Home Assistant\",\"datePublished\":\"2018-10-29T14:44:14+00:00\",\"dateModified\":\"2019-04-27T16:25:09+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/www.thenaylors.co.uk\/wordpress\/owl-intuition-logging-to-mosquitto-and-home-assistant\/\"},\"wordCount\":179,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/www.thenaylors.co.uk\/wordpress\/#\/schema\/person\/22e1ad271f44b7f71c8e1fbf982dcbe5\"},\"articleSection\":[\"home assistant\",\"Mosquitto\",\"Owl Intuition\"],\"inLanguage\":\"en-GB\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/www.thenaylors.co.uk\/wordpress\/owl-intuition-logging-to-mosquitto-and-home-assistant\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.thenaylors.co.uk\/wordpress\/owl-intuition-logging-to-mosquitto-and-home-assistant\/\",\"url\":\"https:\/\/www.thenaylors.co.uk\/wordpress\/owl-intuition-logging-to-mosquitto-and-home-assistant\/\",\"name\":\"Owl Intuition, logging to Mosquitto and Home Assistant - Michael Naylor\",\"isPartOf\":{\"@id\":\"https:\/\/www.thenaylors.co.uk\/wordpress\/#website\"},\"datePublished\":\"2018-10-29T14:44:14+00:00\",\"dateModified\":\"2019-04-27T16:25:09+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/www.thenaylors.co.uk\/wordpress\/owl-intuition-logging-to-mosquitto-and-home-assistant\/#breadcrumb\"},\"inLanguage\":\"en-GB\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.thenaylors.co.uk\/wordpress\/owl-intuition-logging-to-mosquitto-and-home-assistant\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.thenaylors.co.uk\/wordpress\/owl-intuition-logging-to-mosquitto-and-home-assistant\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.thenaylors.co.uk\/wordpress\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Owl Intuition, logging to Mosquitto and Home Assistant\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.thenaylors.co.uk\/wordpress\/#website\",\"url\":\"https:\/\/www.thenaylors.co.uk\/wordpress\/\",\"name\":\"Michael Naylor\",\"description\":\"Things which interest me.\",\"publisher\":{\"@id\":\"https:\/\/www.thenaylors.co.uk\/wordpress\/#\/schema\/person\/22e1ad271f44b7f71c8e1fbf982dcbe5\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.thenaylors.co.uk\/wordpress\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-GB\"},{\"@type\":[\"Person\",\"Organization\"],\"@id\":\"https:\/\/www.thenaylors.co.uk\/wordpress\/#\/schema\/person\/22e1ad271f44b7f71c8e1fbf982dcbe5\",\"name\":\"Michael Naylor\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-GB\",\"@id\":\"https:\/\/www.thenaylors.co.uk\/wordpress\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/2aa27338833977999b7baeb1ee9e723e?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/2aa27338833977999b7baeb1ee9e723e?s=96&d=mm&r=g\",\"caption\":\"Michael Naylor\"},\"logo\":{\"@id\":\"https:\/\/www.thenaylors.co.uk\/wordpress\/#\/schema\/person\/image\/\"},\"sameAs\":[\"http:\/\/www.thenaylors.co.uk\/wordpress\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.thenaylors.co.uk\/wordpress\/#\/schema\/person\/af4669b3ebc6341a4c069ea3381181ad\",\"name\":\"admin\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-GB\",\"@id\":\"https:\/\/www.thenaylors.co.uk\/wordpress\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/71e280edd2a51a46cd545022235cdf48?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/71e280edd2a51a46cd545022235cdf48?s=96&d=mm&r=g\",\"caption\":\"admin\"},\"url\":\"https:\/\/www.thenaylors.co.uk\/wordpress\/author\/admin\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Owl Intuition, logging to Mosquitto and Home Assistant - Michael Naylor","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.thenaylors.co.uk\/wordpress\/owl-intuition-logging-to-mosquitto-and-home-assistant\/","og_locale":"en_GB","og_type":"article","og_title":"Owl Intuition, logging to Mosquitto and Home Assistant - Michael Naylor","og_description":"So thanks to Google again and the Home Assistant wiki I now have the Owl Intuition Solar readings being sent to Mosquitto and used as a series of sensors in Home Assistant. Starting point was this wiki entry and the entry by jchasey.&nbsp;https:\/\/community.home-assistant.io\/t\/owl-intuition-pv-home-assistant\/18157\/3. The python script was amended to take solar reading and not hot_water &hellip; Continue reading \"Owl Intuition, logging to Mosquitto and Home Assistant\"","og_url":"https:\/\/www.thenaylors.co.uk\/wordpress\/owl-intuition-logging-to-mosquitto-and-home-assistant\/","og_site_name":"Michael Naylor","article_published_time":"2018-10-29T14:44:14+00:00","article_modified_time":"2019-04-27T16:25:09+00:00","author":"admin","twitter_card":"summary_large_image","twitter_creator":"@mjnaylor","twitter_site":"@mjnaylor","twitter_misc":{"Written by":"admin","Estimated reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.thenaylors.co.uk\/wordpress\/owl-intuition-logging-to-mosquitto-and-home-assistant\/#article","isPartOf":{"@id":"https:\/\/www.thenaylors.co.uk\/wordpress\/owl-intuition-logging-to-mosquitto-and-home-assistant\/"},"author":{"name":"admin","@id":"https:\/\/www.thenaylors.co.uk\/wordpress\/#\/schema\/person\/af4669b3ebc6341a4c069ea3381181ad"},"headline":"Owl Intuition, logging to Mosquitto and Home Assistant","datePublished":"2018-10-29T14:44:14+00:00","dateModified":"2019-04-27T16:25:09+00:00","mainEntityOfPage":{"@id":"https:\/\/www.thenaylors.co.uk\/wordpress\/owl-intuition-logging-to-mosquitto-and-home-assistant\/"},"wordCount":179,"commentCount":0,"publisher":{"@id":"https:\/\/www.thenaylors.co.uk\/wordpress\/#\/schema\/person\/22e1ad271f44b7f71c8e1fbf982dcbe5"},"articleSection":["home assistant","Mosquitto","Owl Intuition"],"inLanguage":"en-GB","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.thenaylors.co.uk\/wordpress\/owl-intuition-logging-to-mosquitto-and-home-assistant\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.thenaylors.co.uk\/wordpress\/owl-intuition-logging-to-mosquitto-and-home-assistant\/","url":"https:\/\/www.thenaylors.co.uk\/wordpress\/owl-intuition-logging-to-mosquitto-and-home-assistant\/","name":"Owl Intuition, logging to Mosquitto and Home Assistant - Michael Naylor","isPartOf":{"@id":"https:\/\/www.thenaylors.co.uk\/wordpress\/#website"},"datePublished":"2018-10-29T14:44:14+00:00","dateModified":"2019-04-27T16:25:09+00:00","breadcrumb":{"@id":"https:\/\/www.thenaylors.co.uk\/wordpress\/owl-intuition-logging-to-mosquitto-and-home-assistant\/#breadcrumb"},"inLanguage":"en-GB","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.thenaylors.co.uk\/wordpress\/owl-intuition-logging-to-mosquitto-and-home-assistant\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.thenaylors.co.uk\/wordpress\/owl-intuition-logging-to-mosquitto-and-home-assistant\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.thenaylors.co.uk\/wordpress\/"},{"@type":"ListItem","position":2,"name":"Owl Intuition, logging to Mosquitto and Home Assistant"}]},{"@type":"WebSite","@id":"https:\/\/www.thenaylors.co.uk\/wordpress\/#website","url":"https:\/\/www.thenaylors.co.uk\/wordpress\/","name":"Michael Naylor","description":"Things which interest me.","publisher":{"@id":"https:\/\/www.thenaylors.co.uk\/wordpress\/#\/schema\/person\/22e1ad271f44b7f71c8e1fbf982dcbe5"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.thenaylors.co.uk\/wordpress\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-GB"},{"@type":["Person","Organization"],"@id":"https:\/\/www.thenaylors.co.uk\/wordpress\/#\/schema\/person\/22e1ad271f44b7f71c8e1fbf982dcbe5","name":"Michael Naylor","image":{"@type":"ImageObject","inLanguage":"en-GB","@id":"https:\/\/www.thenaylors.co.uk\/wordpress\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/2aa27338833977999b7baeb1ee9e723e?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/2aa27338833977999b7baeb1ee9e723e?s=96&d=mm&r=g","caption":"Michael Naylor"},"logo":{"@id":"https:\/\/www.thenaylors.co.uk\/wordpress\/#\/schema\/person\/image\/"},"sameAs":["http:\/\/www.thenaylors.co.uk\/wordpress"]},{"@type":"Person","@id":"https:\/\/www.thenaylors.co.uk\/wordpress\/#\/schema\/person\/af4669b3ebc6341a4c069ea3381181ad","name":"admin","image":{"@type":"ImageObject","inLanguage":"en-GB","@id":"https:\/\/www.thenaylors.co.uk\/wordpress\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/71e280edd2a51a46cd545022235cdf48?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/71e280edd2a51a46cd545022235cdf48?s=96&d=mm&r=g","caption":"admin"},"url":"https:\/\/www.thenaylors.co.uk\/wordpress\/author\/admin\/"}]}},"_links":{"self":[{"href":"https:\/\/www.thenaylors.co.uk\/wordpress\/wp-json\/wp\/v2\/posts\/2012","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.thenaylors.co.uk\/wordpress\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.thenaylors.co.uk\/wordpress\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.thenaylors.co.uk\/wordpress\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.thenaylors.co.uk\/wordpress\/wp-json\/wp\/v2\/comments?post=2012"}],"version-history":[{"count":4,"href":"https:\/\/www.thenaylors.co.uk\/wordpress\/wp-json\/wp\/v2\/posts\/2012\/revisions"}],"predecessor-version":[{"id":2045,"href":"https:\/\/www.thenaylors.co.uk\/wordpress\/wp-json\/wp\/v2\/posts\/2012\/revisions\/2045"}],"wp:attachment":[{"href":"https:\/\/www.thenaylors.co.uk\/wordpress\/wp-json\/wp\/v2\/media?parent=2012"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.thenaylors.co.uk\/wordpress\/wp-json\/wp\/v2\/categories?post=2012"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.thenaylors.co.uk\/wordpress\/wp-json\/wp\/v2\/tags?post=2012"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}