<form role="search" method="get" id="searchform" class="searchform" action="https://www.teigfam.net/oyvind/home/">
				<div>
					<label class="screen-reader-text" for="s">Søk etter:</label>
					<input type="text" value="" name="s" id="s" />
					<input type="submit" id="searchsubmit" value="Søk" />
				</div>
			</form>{"id":31377,"date":"2024-04-20T09:13:23","date_gmt":"2024-04-20T08:13:23","guid":{"rendered":"https:\/\/www.teigfam.net\/oyvind\/home\/?page_id=31377"},"modified":"2025-07-31T17:14:03","modified_gmt":"2025-07-31T15:14:03","slug":"255-my-missing-smart-home-connection","status":"publish","type":"page","link":"https:\/\/www.teigfam.net\/oyvind\/home\/technology\/255-my-missing-smart-home-connection\/","title":{"rendered":"My missing smart home connection"},"content":{"rendered":"<p><br \/>\n<small>Blog note new 20Apr2024. Updated 31Jul2025 (<a href=\"#home_automation\">Home Automation<\/a>)<\/small><\/p>\n<p>This note is in group <a href=\"https:\/\/www.teigfam.net\/oyvind\/home\/technology\/\">Technology<\/a>,\u00a0sub-group\u00a0<a href=\"https:\/\/www.teigfam.net\/oyvind\/home\/my-beep-brrr-pages\/\">My Beep-BRRR pages<\/a>. It is followed up by <a href=\"https:\/\/www.teigfam.net\/oyvind\/home\/technology\/261-beep-brrr-using-smart-home-to-extend-its-functionality\/\">Beep-BRRR using smart home to extend its functionality<\/a>. Observe my <a href=\"https:\/\/www.teigfam.net\/oyvind\/home\/oyvind-teig\/#standard_disclaimer\">Standard disclaimer<\/a>.<\/p>\n<p class=\"p_vline_left_red\">This note shows how it is possible to use smart home devices and a home built unit to make something not so smart. The total result is functional enough, but I feel like I had to wade across the stream for water. It has also turned out to be a report about some (missing?) behaviour of <span style=\"color: #ff0000;\">Plejd<\/span> units.<\/p>\n<h2>The missing link<\/h2>\n<p>Moved to\u00a0<a href=\"https:\/\/www.teigfam.net\/oyvind\/home\/technology\/261-beep-brrr-using-smart-home-to-extend-its-functionality\/#architecture_b\">261:[Architecture B]<\/a> on 14Oct2024.<\/p>\n<h2>Aside: feedback from Smart Home IoT devices<\/h2>\n<p>The fact that <span style=\"color: #ff0000;\">Plejd<\/span> and <span style=\"color: #ff0000;\">futurehome<\/span> are mentioned here is by pure coincidence. Plejd because the user of my Beep-BRRR happened to have it. Futurehome because a friend that dropped by happened to have it.<\/p>\n<p class=\"p_vline_left_red\"><span style=\"color: #ff0000;\"> Disclaimer<\/span>. If the standards do not define any requirement of error handling of the sort I go through in this chapter, for the these systems, this chapter is only <em>interesting<\/em>. But in my opinion, still <em>very<\/em> interesting.<\/p>\n<h3>Plejd<\/h3>\n<p>I bought a Plejd GWY-01 since the &laquo;must have&raquo; factor was too high. This is cabled to the internet router and it then talks with the other units for me over Bluetooth <span style=\"color: #0000ff;\">radio<\/span> when I&#8217;m away, instead of Bluetooth directly from the phone. It even has a softblinking LED, just like Apple started with on their iBook (I think) and I personally added to some AVR \/ ATMega based units at work in the early two thousands.<\/p>\n<p>With my background I was after some testing.<\/p>\n<p><strong>(1)<\/strong> I placed an <span style=\"color: #ff0000;\">SPR-01 and lamp pair<\/span> in one window, close to the GWY-01and went outside the house. When the app told it was connected over the gateway I switched the lamp on and off. Worked, no failures. On and off and on again, many times. <span style=\"color: #ff0000;\">On meant on and off meant off.<\/span><\/p>\n<p><strong>(2)<\/strong> When I moved the pair to the other side of the wooden house, far from the gateway, but close enough, the lamp went on and off. The data sheet says 10m for Bluetooth, it was about that. Still <span style=\"color: #ff0000;\">on meant on and off meant off<\/span>. But probably since this was on the range limit, sometimes it quietly failed. So I wanted to test more.<\/p>\n<p><strong>(3)<\/strong> I then shielded the SPR-01 with a kettle (simulating a <em>Faraday cage)<\/em>, the switch in the app went on, but the pair did not. <span style=\"color: #ff0000;\">On meant staying off<\/span>. After three minutes there was <strong><span style=\"color: #ff0000;\">no error message<\/span><\/strong> in the app. When I removed the kettle it didn&#8217;t come on, either. <span style=\"color: #ff0000;\">On meant not even trying<\/span>.<\/p>\n<p>This is surprising, if you ask me. I who have worked with safety critical applications for a full professional life, and related to <a href=\"https:\/\/www.teigfam.net\/oyvind\/home\/?s=IEC+61508\">IEC 61508<\/a> for so many years. Plejd hasn&#8217;t said that this is a safety critical product, so they have their word. But not my confidence. <span style=\"color: #ff0000;\">Adding an error message<\/span> should be possible. Especially if the protocol between the app and the gateway has error handling already. If not, they absolutely need to add it. <a href=\"#Ref03\">[3]<\/a> states that &laquo;<em>BLE mesh supports transmission of unacknowledged and acknowledged messages at the model related layer.<\/em>&raquo; So I have queried Plejd about this. To perhaps have my confidence restored. Their products are simply too nice to have &laquo;features&raquo; like this. The good thing for them is that the GWY-01 has wired remote update functionality. (If the <em>units<\/em> have over-the-air (OTA) update, then I assume that <a href=\"#Ref02\">[2]<\/a> is never able to happen.)<\/p>\n<p><strong>(4)<\/strong> Then I tested another situation where the App is connected via Bluetooth since the push button WPH-01 is on. No, that doesn&#8217;t matter, if I put the WPH-01 inside a double metallic box (so that even 2.4 GHz won&#8217;t slide out), same behaviour &#8211; the app still says that it&#8217;s connected via Bluetooth. The gateway is on, but the SPR-01 is not powered and WPH-01 is not seen. Also this gives no error info nor does it take the slider indicating button back again, when I try to switch the SPR-01 on. There is a short-lived checkbox appearing. Nice, but with misleading info. Even if the excuse may be that since I <em>know<\/em> that the SPR-01 is unpowered then there correctly is no visual feedback, since the lamp is still off. But still <span style=\"color: #ff0000;\">on means off<\/span>.<\/p>\n<p><strong>(5)<\/strong> If all my three units are off the app correctly says that it cannot reach the gateway. In that case trying to switch SPR-01 is not possible, an &#8216;x&#8217; appears for some time, and the slider stays off. In that case <span style=\"color: #ff0000;\">not on means off<\/span> (correct).<\/p>\n<p>Plejd certainly have filled in some of the cells in the error matrix, but there seems to be quite some white land left.<\/p>\n<p class=\"p_vline_left_gray\">I do recognise (but with a &laquo;hmm..&raquo;) the conflicting behaviour or the push button being the master (with visual feedback only) and the app being the master. But where the push button would not care about acknowledgements the gateway and the app should. In my opinion.<\/p>\n<p>(I may here have taken the role of some odd(?) classification approval person, as I would remember them from work. Sorry, Plejd, but it was too tempting.)<\/p>\n<p>As of 24Apr2024: GWY-01 version 4.9.7 (latest). SPR-01 version 1.0.15. The app version iOS, 5.3.0.0.20. (WPH-1 version 0.5.0).<\/p>\n<h3>futurehome<\/h3>\n<p>I have <em>not<\/em> bought or tested the products from <span style=\"color: #ff0000;\">futurehome<\/span>\u00a0<a href=\"#Ref04\">[4]<\/a>. These are based on <span style=\"color: #ff0000;\">Zigbee<\/span> or <span style=\"color: #ff0000;\">Z-Wave<\/span> <span style=\"color: #0000ff;\">radio<\/span>, ie. non-Bluetooth to put it that way. Both handle mesh topology. Zigbee works on &laquo;Bluetooth and Wi-Fi bands&raquo; around 2.4 GHz, while Z-wave does around 900 MHz. Speed vs. range make up some of the differences.<\/p>\n<p>Disclaimer: this <strong><span style=\"color: #ff0000;\">[<\/span><\/strong>paragraph<span style=\"color: #ff0000;\"><strong>]<\/strong><\/span> is rather rudimentary. Don&#8217;t depend on it for evaluation purposes! Futurehome <em>EH<\/em> support has been super and patient, but blame <em>me<\/em> for the inaccuracies or perhaps even errors! <strong><span style=\"color: #ff0000;\">[<\/span><\/strong>They use a protocol called <span style=\"color: #ff0000;\">FIMP <\/span>&#8211; <em>Futurehome IoT Messaging Protocol<\/em> (Well documented <a href=\"https:\/\/futurehomeno.github.io\/fimp-api\/#\/\">here<\/a>. It is based on <span style=\"color: #ff0000;\">MQTT<\/span>) to communicate between the internal tasks, both on the <span style=\"color: #ff0000;\">Smarthub<\/span> and on the IoT devices. Zigbee or Z-Wave takes care of the radio, which then carries FIMP contents in some way. So there indeed <em>is<\/em> two-way contact with the IoT devices. However, to which degree failed actions extend to error messages or status updates depend on the usage. From the app, when doing individual actions, yes. Doing actions in automation groups or modus changes however: kind of. There is a retry function and a work pool to pick not done actions for the time when the connections may be up again, which may end in a final &laquo;signal problem&raquo; should this fail. One <em>might<\/em> have to be there to observe which of the actions that happen. &laquo;Hmm..&raquo; However, there is some kind of scripting possibility for individual users to extend this functionality, even into full reporting. Connection with the cloud server both from the Smarthub and the mobile app probably are over <span style=\"color: #ff0000;\">TCP\/IP<\/span>, carrying some proprietary protocol. Smarthub runs <span style=\"color: #ff0000;\">linux<\/span>, and the units use some proprietary runtime.<span style=\"color: #ff0000;\"><strong>]\u00a0<\/strong><\/span><\/p>\n<h3>Home Automation<\/h3>\n<p><span style=\"color: #ff0000;\">Pimoroni<\/span>\u00a0seems to support this system <a href=\"#Ref05\">[5]<\/a>. The units would also do Zigbee and one may install a smart hub server at home, on embedded boards. It is open source. The development system looks rather nice. I have not tested this.<\/p>\n<h3>Others<\/h3>\n<p>I have not studied whether these are usable or whether they would do the missing error reporting, missing from Plejd. The links are just for some, but not full references:<\/p>\n<ol>\n<li><a href=\"https:\/\/www.clasohlson.com\/no\/Nexa-MYC-4-fjernstrombryter-3-pakning\/p\/41-2484\">Nexa Bridge<\/a> (Clas Ohlson)<\/li>\n<li><a href=\"https:\/\/eplehuset.no\/eve-energy-wireless-strombryter-m-matter?_gl=1*1oq8rmq*_up*MQ..*_ga*MzgzMjEzMzgxLjE3MzE3ODA2Mzk.*_ga_7QRJN4R8JQ*MTczMTc4MDYzOC4xLjAuMTczMTc4MDYzOC4wLjAuMA..\">eve<\/a> (Eplehuset)<\/li>\n<li>TellStick \/ <a href=\"https:\/\/telldus.com\">Telldus<\/a><\/li>\n<li>Proove<\/li>\n<\/ol>\n<h2>References<\/h2>\n<p><a name=\"Wiki-refs\"><\/a><strong>Wiki-refs<\/strong>: <a href=\"https:\/\/en.wikipedia.org\/wiki\/AVR_microcontrollers\">AVR microcontrollers<\/a>, <a href=\"https:\/\/en.wikipedia.org\/wiki\/Bluetooth_mesh_networking\">Bluetooth mesh networking<\/a> BLE mesh, <a href=\"https:\/\/en.wikipedia.org\/wiki\/Faraday_cage\">Faraday cage<\/a> (Faraday bag). <a href=\"https:\/\/en.wikipedia.org\/wiki\/Galvanic_isolation\">Galvanic isolation<\/a>, <a href=\"https:\/\/en.wikipedia.org\/wiki\/IEC_61508\">IEC 61508<\/a>, <a href=\"https:\/\/en.wikipedia.org\/wiki\/International_Association_of_Classification_Societies#Membership\">International Association of Classification Societies<\/a>, <a href=\"https:\/\/en.wikipedia.org\/wiki\/IP_code\">IP code<\/a>, <a href=\"https:\/\/en.wikipedia.org\/wiki\/MQTT\">MQTT<\/a>,\u00a0<a href=\"https:\/\/en.wikipedia.org\/wiki\/Over-the-air_update\">Over-the-air update<\/a> OTA, <a href=\"https:\/\/en.wikipedia.org\/wiki\/Internet_protocol_suite\">TCP\/IP<\/a>, <a href=\"https:\/\/en.wikipedia.org\/wiki\/Zigbee\">Zigbee<\/a>, <a href=\"https:\/\/en.wikipedia.org\/wiki\/Z-Wave\">Z-Wave<\/a><\/p>\n<p><a name=\"Ref01\"><\/a><span style=\"color: #ff0000;\"><strong>[1]<\/strong><\/span> <strong>Plejd<\/strong>, see\u00a0<a href=\"https:\/\/www.plejd.com\">https:\/\/www.plejd.com<\/a><\/p>\n<p><a name=\"Ref02\"><\/a><span style=\"color: #ff0000;\"><strong>[2]<\/strong><\/span> <strong>IoT Goes Nuclear: Creating a ZigBee Chain Reaction<\/strong> by <em>Eyal Ronen<\/em>, <em>Colin O\u2019Flynn<\/em>, <em>Adi Shamir<\/em> and <em>Achi-Or Weingarten<\/em>, 2017 IEEE Symposium on Security and Privacy. Read at <a href=\"https:\/\/ieeexplore.ieee.org\/document\/7958578\">https:\/\/ieeexplore.ieee.org\/document\/7958578<\/a> (Early <em>Philips Hue<\/em> smart lamps)<\/p>\n<p><a name=\"Ref03\"><\/a><span style=\"color: #ff0000;\"><strong>[3]<\/strong><\/span> <strong>Bluetooth Mesh Analysis, Issues, and Challenges<\/strong> by \u00c1<em>NGELA HERN\u00c1NDEZ-SOLANA, DAVID P\u00c9REZ-D\u00cdAZ-DE-CERIO, MARIO GARC\u00cdA-LOZANO, ANTONIO VALDOVINOS BARDAJ\u00cd, <\/em>and<em> JOS\u00c9-LUIS VALENZUELA.<\/em> In <em>IEEE Access<\/em> (2020). Reead at <a href=\"https:\/\/ieeexplore.ieee.org\/document\/9035389\">https:\/\/ieeexplore.ieee.org\/document\/9035389<\/a><\/p>\n<p><a name=\"Ref04\"><\/a><span style=\"color: #ff0000;\"><strong>[4]<\/strong><\/span> <strong>Futurehome<\/strong>, see\u00a0<a href=\"https:\/\/www.futurehome.io\/en\/technology\">https:\/\/www.futurehome.io\/en\/technology<\/a>, (<a href=\"https:\/\/forum.futurehome.io\">Forum<\/a>)<\/p>\n<p><a name=\"Ref05\"><\/a><span style=\"color: #ff0000;\"><strong>[5]<\/strong><\/span> <strong>Getting Started with Home Automation<\/strong>, see\u00a0<a href=\"https:\/\/learn.pimoroni.com\/article\/getting-started-with-home-automation\">https:\/\/learn.pimoroni.com\/article\/getting-started-with-home-automation<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Blog note new 20Apr2024. Updated 31Jul2025 (Home Automation) This note is in group Technology,\u00a0sub-group\u00a0My Beep-BRRR pages. It is followed up by Beep-BRRR using smart home to extend its functionality. Observe my Standard disclaimer. This note shows how it is possible to use smart home devices and a home built unit to make something not so [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":438,"menu_order":0,"comment_status":"open","ping_status":"closed","template":"page-templates\/full-width.php","meta":{"advanced_seo_description":"","jetpack_seo_html_title":"","jetpack_seo_noindex":false,"jetpack_seo_schema_type":"","_jetpack_hide_featured_image":false,"_jetpack_featured_image_duplicate_dismissed":0,"footnotes":""},"class_list":["post-31377","page","type-page","status-publish","hentry"],"jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/P75eUQ-8a5","jetpack_likes_enabled":true,"jetpack-related-posts":[],"_links":{"self":[{"href":"https:\/\/www.teigfam.net\/oyvind\/home\/wp-json\/wp\/v2\/pages\/31377","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.teigfam.net\/oyvind\/home\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/www.teigfam.net\/oyvind\/home\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/www.teigfam.net\/oyvind\/home\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.teigfam.net\/oyvind\/home\/wp-json\/wp\/v2\/comments?post=31377"}],"version-history":[{"count":10,"href":"https:\/\/www.teigfam.net\/oyvind\/home\/wp-json\/wp\/v2\/pages\/31377\/revisions"}],"predecessor-version":[{"id":35930,"href":"https:\/\/www.teigfam.net\/oyvind\/home\/wp-json\/wp\/v2\/pages\/31377\/revisions\/35930"}],"up":[{"embeddable":true,"href":"https:\/\/www.teigfam.net\/oyvind\/home\/wp-json\/wp\/v2\/pages\/438"}],"wp:attachment":[{"href":"https:\/\/www.teigfam.net\/oyvind\/home\/wp-json\/wp\/v2\/media?parent=31377"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}