{"id":1584,"date":"2020-01-01T09:29:38","date_gmt":"2020-01-01T01:29:38","guid":{"rendered":"https:\/\/sumju.net\/?p=1584"},"modified":"2020-03-30T21:50:46","modified_gmt":"2020-03-30T13:50:46","slug":"home-assistant-%e5%88%a9%e7%94%a8bmp180%e8%8a%af%e7%89%87%e5%9c%a8esphome-%e6%98%be%e7%a4%ba%e5%a4%a7%e6%b0%94%e5%8e%8b%e5%8a%9b%e5%92%8c%e6%b8%a9%e5%ba%a6","status":"publish","type":"post","link":"https:\/\/sumju.net\/?p=1584","title":{"rendered":"Home Assistant \u5229\u7528bmp180\u82af\u7247\u5728ESPHome \u663e\u793a\u5927\u6c14\u538b\u529b\u548c\u6e29\u5ea6"},"content":{"rendered":"<p>BMP180 \u5927\u6c14\u538b\u529b\u4f20\u611f\u5668<\/p>\n<hr \/>\n<p><a href=\"https:\/\/youtu.be\/m3id7tOasbY\" target=\"_blank\" rel=\"noopener noreferrer\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-2370 size-large\" src=\"https:\/\/i0.wp.com\/sumju.net\/wp-content\/uploads\/2020\/01\/%E6%B0%94%E5%8E%8B%E6%B5%B7%E6%8B%94.jpg?resize=1024%2C576&#038;ssl=1\" alt=\"\" width=\"1024\" height=\"576\" srcset=\"https:\/\/i0.wp.com\/sumju.net\/wp-content\/uploads\/2020\/01\/%E6%B0%94%E5%8E%8B%E6%B5%B7%E6%8B%94.jpg?resize=1024%2C576&amp;ssl=1 1024w, https:\/\/i0.wp.com\/sumju.net\/wp-content\/uploads\/2020\/01\/%E6%B0%94%E5%8E%8B%E6%B5%B7%E6%8B%94.jpg?resize=300%2C169&amp;ssl=1 300w, https:\/\/i0.wp.com\/sumju.net\/wp-content\/uploads\/2020\/01\/%E6%B0%94%E5%8E%8B%E6%B5%B7%E6%8B%94.jpg?resize=768%2C432&amp;ssl=1 768w, https:\/\/i0.wp.com\/sumju.net\/wp-content\/uploads\/2020\/01\/%E6%B0%94%E5%8E%8B%E6%B5%B7%E6%8B%94.jpg?resize=1536%2C864&amp;ssl=1 1536w, https:\/\/i0.wp.com\/sumju.net\/wp-content\/uploads\/2020\/01\/%E6%B0%94%E5%8E%8B%E6%B5%B7%E6%8B%94.jpg?w=1920&amp;ssl=1 1920w\" sizes=\"auto, (max-width: 1000px) 100vw, 1000px\" \/><\/a><\/p>\n<p><a href=\"https:\/\/youtu.be\/m3id7tOasbY\" target=\"_blank\" rel=\"noopener noreferrer\">https:\/\/youtu.be\/m3id7tOasbY<\/a><br \/>\n&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<\/p>\n<p>\u589e\u52a0\u8fd9\u4e2a\u4f20\u611f\u5668\u5fc5\u987b\u8981\u7528USB\u65b9\u5f0f\u66f4\u65b0\u4e00\u6b21\u56fa\u4ef6\uff0c\u540e\u9762\u624d\u53ef\u4ee5OTA\u66f4\u65b0\u3002<br \/>\n\u6309\u7167\u4e0b\u56fe\u8bbe\u7f6e\u8fde\u63a5\u65b9\u5f0f\uff1a<br \/>\n<a href=\"https:\/\/sumju.net\/?attachment_id=1596\" rel=\"attachment wp-att-1596\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-1596\" src=\"https:\/\/i0.wp.com\/sumju.net\/wp-content\/uploads\/2019\/12\/timg.jpg?resize=883%2C735&#038;ssl=1\" alt=\"\" width=\"883\" height=\"735\" srcset=\"https:\/\/i0.wp.com\/sumju.net\/wp-content\/uploads\/2019\/12\/timg.jpg?w=883&amp;ssl=1 883w, https:\/\/i0.wp.com\/sumju.net\/wp-content\/uploads\/2019\/12\/timg.jpg?resize=300%2C250&amp;ssl=1 300w, https:\/\/i0.wp.com\/sumju.net\/wp-content\/uploads\/2019\/12\/timg.jpg?resize=768%2C639&amp;ssl=1 768w\" sizes=\"auto, (max-width: 883px) 100vw, 883px\" \/><\/a><\/p>\n<pre>\u8bbe\u7f6eSCL\uff0cSDA\uff0c\u4e3aI2C\u7aef\u53e3\r\n<code># Example configuration entry\r\ni2c:\r\n  - id: bus_bmp180\r\n    sda: 5\r\n    scl: 4\r\n    scan: True\r\n<\/code><\/pre>\n<pre>\u589e\u52a0I2C\u4f20\u611f\u5668\uff1a\r\n<code>sensor:\r\n  - platform: bmp085\r\n    temperature:\r\n      name: \"Outside Temperature\"\r\n    pressure:\r\n      name: \"Outside Pressure\"\r\n    update_interval: 60s<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>BMP180 \u5927\u6c14\u538b\u529b\u4f20\u611f\u5668 https:\/\/youtu.be\/m3id7tOasbY &#038;#8212&hellip; <a href=\"https:\/\/sumju.net\/?p=1584\" class=\"more-link read-more\" rel=\"bookmark\">\u7ee7\u7eed\u9605\u8bfb <span class=\"screen-reader-text\">Home Assistant \u5229\u7528bmp180\u82af\u7247\u5728ESPHome \u663e\u793a\u5927\u6c14\u538b\u529b\u548c\u6e29\u5ea6<\/span><i class=\"fa fa-arrow-right\"><\/i><\/a><\/p>\n","protected":false},"author":2,"featured_media":1596,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[1],"tags":[],"class_list":{"0":"post-1584","1":"post","2":"type-post","3":"status-publish","4":"format-standard","5":"has-post-thumbnail","6":"hentry","7":"category-uncategorized","8":"h-entry","10":"h-as-article"},"jetpack_publicize_connections":[],"jetpack_featured_media_url":"https:\/\/i0.wp.com\/sumju.net\/wp-content\/uploads\/2019\/12\/timg.jpg?fit=883%2C735&ssl=1","jetpack_sharing_enabled":true,"jetpack_likes_enabled":true,"_links":{"self":[{"href":"https:\/\/sumju.net\/index.php?rest_route=\/wp\/v2\/posts\/1584","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/sumju.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/sumju.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/sumju.net\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/sumju.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1584"}],"version-history":[{"count":13,"href":"https:\/\/sumju.net\/index.php?rest_route=\/wp\/v2\/posts\/1584\/revisions"}],"predecessor-version":[{"id":2374,"href":"https:\/\/sumju.net\/index.php?rest_route=\/wp\/v2\/posts\/1584\/revisions\/2374"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/sumju.net\/index.php?rest_route=\/wp\/v2\/media\/1596"}],"wp:attachment":[{"href":"https:\/\/sumju.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1584"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/sumju.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1584"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/sumju.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1584"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}