{"id":171,"date":"2020-07-08T23:09:03","date_gmt":"2020-07-08T21:09:03","guid":{"rendered":"https:\/\/jbsoft.nl\/site\/?p=171"},"modified":"2021-06-04T09:31:53","modified_gmt":"2021-06-04T07:31:53","slug":"omnik-data-logger-dsmr-p1-support","status":"publish","type":"post","link":"https:\/\/jbsoft.nl\/site\/omnik-data-logger-dsmr-p1-support\/","title":{"rendered":"Omnik data logger DSMR P1 support"},"content":{"rendered":"\n<p>With the new brand new release of Omnik data logger I have included support for the Dutch Smart Meter Requirements compliant Electricity meter. With a simple FTDI  P1 to USB serial adapter Omnik datalogger now also publish your smart meter data including gas. With PVoutput this means we can also upload the consumed energy and calculate the netto energy used\/delivered.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"365\" src=\"https:\/\/jbsoft.nl\/site\/wp-content\/uploads\/2020\/07\/image-1024x365.png\" alt=\"\" class=\"wp-image-172\" srcset=\"https:\/\/jbsoft.nl\/site\/wp-content\/uploads\/2020\/07\/image-1024x365.png 1024w, https:\/\/jbsoft.nl\/site\/wp-content\/uploads\/2020\/07\/image-300x107.png 300w, https:\/\/jbsoft.nl\/site\/wp-content\/uploads\/2020\/07\/image-768x273.png 768w, https:\/\/jbsoft.nl\/site\/wp-content\/uploads\/2020\/07\/image.png 1413w\" sizes=\"auto, (max-width: 709px) 85vw, (max-width: 909px) 67vw, (max-width: 1362px) 62vw, 840px\" \/><\/figure>\n\n\n\n<p>The P1 adapter can be either connected directly to your device or using TCP. I used ser2net to be able to connect multiple sessions to my P1 meter. To make this possible you will need at least ser2net v3.5. I have used a docker container installing ser2net (<a href=\"https:\/\/lightson.jbsoft.nl\/api\/hassio_ingress\/GdfH9f7WMTEBSQEbL3y8JOhJSS_hNI4KXqDPTKgqgYM\/#\/images\/jsurf~2Frpi-ser2net%3Abuster\">jsurf\/rpi-<\/a><a rel=\"noreferrer noopener\" href=\"https:\/\/hub.docker.com\/r\/jsurf\/rpi-ser2net\/builds\" target=\"_blank\">ser2net:buster<\/a>). Adding the max-connections option will enable me to do some debugging and in the mean will logging my data.<\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\"><p>3333:raw:600:\/dev\/ttyUSB0:115200 NONE 1STOPBIT 8DATABITS -XONXOFF RTSCTS max-connections=3<\/p><cite>\/etc\/ser2net.conf<\/cite><\/blockquote>\n\n\n\n<p>If you publish your smart meter to Home Assistant this can replace the native dsmr integration include with Home Assistant. Over MQTT auto discovery Home Assistant will discover automatically. In the config file you can rename the entities for your smart meter. Addition direct use, direct consumption and the real calculated consumption data will be published over MQTT and InfluxDB.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">HACS Default<\/h3>\n\n\n\n<p>Omnik data logger now has been added to the default store. This means there is no need to add a custom repository any more. You can find Omnik data logger at the Automation section.<\/p>\n\n\n\n<p>Make sure you have installed the AppDaemon Add-on from the official Home Assistant Add-on store.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"552\" height=\"353\" src=\"https:\/\/jbsoft.nl\/site\/wp-content\/uploads\/2020\/07\/image-1.png\" alt=\"\" class=\"wp-image-173\" srcset=\"https:\/\/jbsoft.nl\/site\/wp-content\/uploads\/2020\/07\/image-1.png 552w, https:\/\/jbsoft.nl\/site\/wp-content\/uploads\/2020\/07\/image-1-300x192.png 300w\" sizes=\"auto, (max-width: 552px) 85vw, 552px\" \/><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\">TCPclient tested and working now<\/h3>\n\n\n\n<p>Thanks to Han Lubach the <strong>tcpclient<\/strong> could be tested and corrected. It seems this client, based on Wouter van der Zwan&#8217;s logger is now usable with Omnik data logger as well.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>With the new brand new release of Omnik data logger I have included support for the Dutch Smart Meter Requirements compliant Electricity meter. With a simple FTDI P1 to USB serial adapter Omnik datalogger now also publish your smart meter data including gas. With PVoutput this means we can also upload the consumed energy and &hellip; <a href=\"https:\/\/jbsoft.nl\/site\/omnik-data-logger-dsmr-p1-support\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;Omnik data logger DSMR P1 support&#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":[2,19,5,6,14],"tags":[],"class_list":["post-171","post","type-post","status-publish","format-standard","hentry","category-anouncements","category-docker","category-home-assistant","category-home-automation","category-omnik-datalogger"],"_links":{"self":[{"href":"https:\/\/jbsoft.nl\/site\/wp-json\/wp\/v2\/posts\/171","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/jbsoft.nl\/site\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/jbsoft.nl\/site\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/jbsoft.nl\/site\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/jbsoft.nl\/site\/wp-json\/wp\/v2\/comments?post=171"}],"version-history":[{"count":3,"href":"https:\/\/jbsoft.nl\/site\/wp-json\/wp\/v2\/posts\/171\/revisions"}],"predecessor-version":[{"id":329,"href":"https:\/\/jbsoft.nl\/site\/wp-json\/wp\/v2\/posts\/171\/revisions\/329"}],"wp:attachment":[{"href":"https:\/\/jbsoft.nl\/site\/wp-json\/wp\/v2\/media?parent=171"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/jbsoft.nl\/site\/wp-json\/wp\/v2\/categories?post=171"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/jbsoft.nl\/site\/wp-json\/wp\/v2\/tags?post=171"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}