{"id":2959,"date":"2022-04-20T17:13:46","date_gmt":"2022-04-20T17:13:46","guid":{"rendered":"https:\/\/open-boat-projects.org\/?page_id=2959"},"modified":"2022-08-11T14:54:20","modified_gmt":"2022-08-11T14:54:20","slug":"ankerlicht-automatik-mit-shelly-1","status":"publish","type":"page","link":"https:\/\/open-boat-projects.org\/en\/ankerlicht-automatik-mit-shelly-1\/","title":{"rendered":"Anchor light automatic with Shelly 1"},"content":{"rendered":"<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-2853\" src=\"https:\/\/open-boat-projects.org\/wp-content\/uploads\/2022\/03\/Shelly_1-300x243.png\" alt=\"\" width=\"300\" height=\"243\" srcset=\"https:\/\/open-boat-projects.org\/wp-content\/uploads\/2022\/03\/Shelly_1-300x243.png 300w, https:\/\/open-boat-projects.org\/wp-content\/uploads\/2022\/03\/Shelly_1-15x12.png 15w, https:\/\/open-boat-projects.org\/wp-content\/uploads\/2022\/03\/Shelly_1.png 550w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/p>\n<p>Fig. Shelly 1<\/p>\n<p>Anyone who anchors is obliged to set an anchor light so that you can be recognized on the open water surface in the dark. Typically, the light is switched on manually at dusk and off again at sunrise. There is no problem switching it on. But you often forget to switch it off and the anchor light is then permanently on and consumes electricity unnecessarily.<\/p>\n<p>With a Shelly 1, an automatic anchor light can be built that can switch the anchor light on and off independently. To do this, the Shelly obtains the time from the Internet and calculates the sunrise and sunset times and switches the anchor light accordingly. For this to work, the following conditions must be met:<\/p>\n<ul>\n<li>Shelly V1 or V3 with original firmware<\/li>\n<li>Permanent WiFi connection to the internet via port WiFi or mobile internet router to get the current time<\/li>\n<li>Permanent power supply of the Shelly 1 with 12V (0.08W stand-by relay off, 0.2W relay on)<\/li>\n<li>Connection of the switching contact from the Shelly with the switch for the anchor light (parallel connection)<\/li>\n<\/ul>\n<p>The project is aimed at laypeople with little experience. The Shelly does not have to be modified or rebuilt for this. It is used as purchased and the main work is to configure the Shelly and connect it to the boat&#039;s electrical system. No major modifications will be made to the existing electrical system and an existing switch for the anchor light can continue to be used as before. The instructions presented here only work for the Shelly 1 V1 and V3. The Shelly 1 V2 cannot be used because the switch contact is not potential-free.<\/p>\n<p>Basically, the Shelly can be used in two operating modes. Once with a cloud connection and once without a cloud connection. A cloud connection is not necessary for our project and the automatic anchor light also works without it. If you want to control or switch the anchor light from home via the Internet, you can also use the cloud. If you enjoy it, you can also use the Shelly1 via the cloud <span class=\"artbesch\">Control Amazon Alexa or Google Home with voice commands. The following description shows how to prepare the Shelly for the automatic anchor light.<\/span><\/p>\n<h1>Set Shelly to 12V supply<\/h1>\n<p>When delivered, the voltage selector is set to 230V AC. We have to set the jumper to the position for 12V according to the picture and supply the Shelly with 12V via N and L. But watch out! N is not equal to ground but 12V, whereas L is ground. On average, the Shelly consumes only 0.08W when the relay is not activated. However, this only works if the latest firmware V<span class=\"fw_version blue\">1.11.8 or newer<\/span> installed and Eco mode activated.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-2850\" src=\"https:\/\/open-boat-projects.org\/wp-content\/uploads\/2022\/03\/Shelly-1-pins-300x170.png\" alt=\"\" width=\"500\" height=\"284\" srcset=\"https:\/\/open-boat-projects.org\/wp-content\/uploads\/2022\/03\/Shelly-1-pins-300x170.png 300w, https:\/\/open-boat-projects.org\/wp-content\/uploads\/2022\/03\/Shelly-1-pins-768x436.png 768w, https:\/\/open-boat-projects.org\/wp-content\/uploads\/2022\/03\/Shelly-1-pins-18x10.png 18w, https:\/\/open-boat-projects.org\/wp-content\/uploads\/2022\/03\/Shelly-1-pins.png 811w\" sizes=\"auto, (max-width: 500px) 100vw, 500px\" \/><\/p>\n<p>Fig: Meaning of the pin headers<\/p>\n<p>&nbsp;<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-2966\" src=\"https:\/\/open-boat-projects.org\/wp-content\/uploads\/2022\/04\/Shelly_12V-300x222.png\" alt=\"\" width=\"400\" height=\"296\" srcset=\"https:\/\/open-boat-projects.org\/wp-content\/uploads\/2022\/04\/Shelly_12V-300x222.png 300w, https:\/\/open-boat-projects.org\/wp-content\/uploads\/2022\/04\/Shelly_12V-16x12.png 16w, https:\/\/open-boat-projects.org\/wp-content\/uploads\/2022\/04\/Shelly_12V.png 466w\" sizes=\"auto, (max-width: 400px) 100vw, 400px\" \/><\/p>\n<p>Fig: Assignment of the supply voltages for 12V<\/p>\n<p>&nbsp;<\/p>\n<h1>Bring Shelly 1 into your own network<\/h1>\n<p><span dir=\"ltr\">How this works in detail is explained in Shelly<\/span><span dir=\"ltr\">\u2013<\/span><span dir=\"ltr\">Documentation sufficiently well described. A static IP address does not have to be assigned. The field can remain disabled. If a usable port WiFi is available, you can use its login details. In order to be able to use the automatic anchor light regardless of location, we recommend connecting to the Internet via a mobile UMTS or LTE router. Alternatively, a disused mobile phone can also be used in hotspot mode.<br \/>\n<\/span><\/p>\n<p>&nbsp;<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-3007\" src=\"https:\/\/open-boat-projects.org\/wp-content\/uploads\/2022\/04\/Shelly_Info-300x152.png\" alt=\"\" width=\"600\" height=\"304\" srcset=\"https:\/\/open-boat-projects.org\/wp-content\/uploads\/2022\/04\/Shelly_Info-300x152.png 300w, https:\/\/open-boat-projects.org\/wp-content\/uploads\/2022\/04\/Shelly_Info-768x389.png 768w, https:\/\/open-boat-projects.org\/wp-content\/uploads\/2022\/04\/Shelly_Info-18x9.png 18w, https:\/\/open-boat-projects.org\/wp-content\/uploads\/2022\/04\/Shelly_Info.png 930w\" sizes=\"auto, (max-width: 600px) 100vw, 600px\" \/><\/p>\n<p>Fig: Start page<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-3001\" src=\"https:\/\/open-boat-projects.org\/wp-content\/uploads\/2022\/04\/Internet_Security-300x164.png\" alt=\"\" width=\"600\" height=\"328\" srcset=\"https:\/\/open-boat-projects.org\/wp-content\/uploads\/2022\/04\/Internet_Security-300x164.png 300w, https:\/\/open-boat-projects.org\/wp-content\/uploads\/2022\/04\/Internet_Security-768x419.png 768w, https:\/\/open-boat-projects.org\/wp-content\/uploads\/2022\/04\/Internet_Security-18x10.png 18w, https:\/\/open-boat-projects.org\/wp-content\/uploads\/2022\/04\/Internet_Security.png 881w\" sizes=\"auto, (max-width: 600px) 100vw, 600px\" \/><\/p>\n<p>Fig: Internet &amp; Security page<\/p>\n<p><span style=\"color: #ff0000;\"><strong>Danger!<\/strong> You have to be careful when entering the network parameters. If you entered the WiFi SSID or password incorrectly, you will lock yourself out and no longer be able to connect to Shelly. A hard reset to factory settings is only possible via a cumbersome procedure. To do this, you have to switch the power supply off and on again and then press the switch at the SW input 5 times within one minute. The right timing is a matter of luck and requires several attempts to be successful. In the worst case, the Shelly can no longer be activated and you have to flash the firmware again. How to do that is in this one <a style=\"color: #ff0000;\" href=\"https:\/\/www.electronic-research.de\/shelly-richtig-reseten-und-flashen.html\" target=\"_blank\" rel=\"noopener\">Flash guide<\/a> described.<\/span><\/p>\n<p>After the Shelly is in the network with Internet access, you should update the firmware, since the Shelly has been on the market for a long time and some models with old firmware are still available. The latest firmware offers some more functionalities and has been corrected for errors. The firmware update can be found at <em><strong>Settings<\/strong><\/em> <strong><em>-&gt;Firmware update<\/em><\/strong> make.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-3002\" src=\"https:\/\/open-boat-projects.org\/wp-content\/uploads\/2022\/04\/Firmware_Update-300x146.png\" alt=\"\" width=\"600\" height=\"293\" srcset=\"https:\/\/open-boat-projects.org\/wp-content\/uploads\/2022\/04\/Firmware_Update-300x146.png 300w, https:\/\/open-boat-projects.org\/wp-content\/uploads\/2022\/04\/Firmware_Update-768x375.png 768w, https:\/\/open-boat-projects.org\/wp-content\/uploads\/2022\/04\/Firmware_Update-18x9.png 18w, https:\/\/open-boat-projects.org\/wp-content\/uploads\/2022\/04\/Firmware_Update.png 879w\" sizes=\"auto, (max-width: 600px) 100vw, 600px\" \/><\/p>\n<p>Fig: Firmware update<\/p>\n<h1>Set the source of the system time<\/h1>\n<p>By default, the time is automatically fetched from the Internet and the correct time zone is set, provided there is an Internet connection. At the top right of the start page you can check whether the system time is set correctly. If this is not the case, you can go to <em><strong>Settings<\/strong> <strong>-&gt; Time Zone and Geo Location<\/strong><\/em> make the necessary settings.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-3003\" src=\"https:\/\/open-boat-projects.org\/wp-content\/uploads\/2022\/04\/Timezone-300x275.png\" alt=\"\" width=\"600\" height=\"550\" srcset=\"https:\/\/open-boat-projects.org\/wp-content\/uploads\/2022\/04\/Timezone-300x275.png 300w, https:\/\/open-boat-projects.org\/wp-content\/uploads\/2022\/04\/Timezone-768x704.png 768w, https:\/\/open-boat-projects.org\/wp-content\/uploads\/2022\/04\/Timezone-13x12.png 13w, https:\/\/open-boat-projects.org\/wp-content\/uploads\/2022\/04\/Timezone.png 833w\" sizes=\"auto, (max-width: 600px) 100vw, 600px\" \/><\/p>\n<p>Fig. Setting the source of the system time<\/p>\n<p>The Shelly does not require a permanent internet connection to update the time. It is sufficient to fetch the system time from the Internet once after the start. A port WLAN is completely sufficient. The time continues to run in Shelly even without internet. However, you should be careful not to switch off the Shelly without an Internet connection, otherwise the time cannot be fetched when you restart and the switching function can no longer be carried out correctly.<\/p>\n<h1>Set switching function<\/h1>\n<p>Via the configuration page <em><strong>Weekly schedule<\/strong><\/em> the switching function for the anchor light can be set. A timer is added for switching on and off and fixed times are set, or you can also use the sunrise and sunset times as a source. This is very practical, as the switching times are automatically adjusted to the actual position of the sun. If you want, you can change the switching times individually with an offset.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-3004\" src=\"https:\/\/open-boat-projects.org\/wp-content\/uploads\/2022\/04\/Wekely_schedule-300x181.png\" alt=\"\" width=\"600\" height=\"363\" srcset=\"https:\/\/open-boat-projects.org\/wp-content\/uploads\/2022\/04\/Wekely_schedule-300x181.png 300w, https:\/\/open-boat-projects.org\/wp-content\/uploads\/2022\/04\/Wekely_schedule-768x464.png 768w, https:\/\/open-boat-projects.org\/wp-content\/uploads\/2022\/04\/Wekely_schedule-18x12.png 18w, https:\/\/open-boat-projects.org\/wp-content\/uploads\/2022\/04\/Wekely_schedule.png 882w\" sizes=\"auto, (max-width: 600px) 100vw, 600px\" \/><\/p>\n<p>Fig: Set switching functions for sunset and sunrise<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-3006\" src=\"https:\/\/open-boat-projects.org\/wp-content\/uploads\/2022\/04\/Sunset-300x261.png\" alt=\"\" width=\"600\" height=\"522\" srcset=\"https:\/\/open-boat-projects.org\/wp-content\/uploads\/2022\/04\/Sunset-300x261.png 300w, https:\/\/open-boat-projects.org\/wp-content\/uploads\/2022\/04\/Sunset-768x668.png 768w, https:\/\/open-boat-projects.org\/wp-content\/uploads\/2022\/04\/Sunset-14x12.png 14w, https:\/\/open-boat-projects.org\/wp-content\/uploads\/2022\/04\/Sunset.png 878w\" sizes=\"auto, (max-width: 600px) 100vw, 600px\" \/><\/p>\n<p>Fig: Settings for sunset<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-3005\" src=\"https:\/\/open-boat-projects.org\/wp-content\/uploads\/2022\/04\/Sunrise-300x254.png\" alt=\"\" width=\"600\" height=\"508\" srcset=\"https:\/\/open-boat-projects.org\/wp-content\/uploads\/2022\/04\/Sunrise-300x254.png 300w, https:\/\/open-boat-projects.org\/wp-content\/uploads\/2022\/04\/Sunrise-768x650.png 768w, https:\/\/open-boat-projects.org\/wp-content\/uploads\/2022\/04\/Sunrise-14x12.png 14w, https:\/\/open-boat-projects.org\/wp-content\/uploads\/2022\/04\/Sunrise.png 868w\" sizes=\"auto, (max-width: 600px) 100vw, 600px\" \/><\/p>\n<p>Fig: Setting for sunrise<\/p>\n<h1>Automatic anchor light circuit<\/h1>\n<p>Depending on the type of Internet access for the Shelly, you must either connect the power supply of the Shelly directly to the main switch or you can use a group switch on the control panel such as the refrigerator switch. The Shelly&#039;s potential-free switching contact is switched on the control panel in parallel with the switch for the anchor light. You can switch the anchor light either via the Shelly or directly via the switch on the control panel, whereby the switch on the control panel always has priority and can override the switching status of the Shelly. There is a problem though, when the Shelly has the anchor light on, you can&#039;t turn it off with the switch on the control panel. Either you then de-energize the Shelly or deactivate the switching states in the Shelly.<\/p>\n<p><a href=\"https:\/\/open-boat-projects.org\/wp-content\/uploads\/2022\/04\/Shelly_Ankerlicht_Automatik.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-3017\" src=\"https:\/\/open-boat-projects.org\/wp-content\/uploads\/2022\/04\/Shelly_Ankerlicht_Automatik-300x271.png\" alt=\"\" width=\"600\" height=\"541\" srcset=\"https:\/\/open-boat-projects.org\/wp-content\/uploads\/2022\/04\/Shelly_Ankerlicht_Automatik-300x271.png 300w, https:\/\/open-boat-projects.org\/wp-content\/uploads\/2022\/04\/Shelly_Ankerlicht_Automatik-13x12.png 13w, https:\/\/open-boat-projects.org\/wp-content\/uploads\/2022\/04\/Shelly_Ankerlicht_Automatik.png 724w\" sizes=\"auto, (max-width: 600px) 100vw, 600px\" \/><\/a><\/p>\n<p>Fig: Automatic anchor light circuit<\/p>\n<h1>Additional information<\/h1>\n<p>A few other functions on board can be automated in a similar way, such as heating, ventilation, battery charging or bilge drainage. Anyone who has activated the cloud connection can then also control all functions remotely via the Internet and, if necessary, be informed by e-mail. For the Shelly 1 can be found at <a href=\"https:\/\/www.thingiverse.com\/thing:4580102\" target=\"_blank\" rel=\"noopener\">Thingiverse 3D printing templates<\/a> for a DIN rail holder. In this way, the installation can be carried out professionally in a sub-installation.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-2992\" src=\"https:\/\/open-boat-projects.org\/wp-content\/uploads\/2022\/04\/Shelly_1_Hutschinenhalter-290x300.png\" alt=\"\" width=\"290\" height=\"300\" srcset=\"https:\/\/open-boat-projects.org\/wp-content\/uploads\/2022\/04\/Shelly_1_Hutschinenhalter-290x300.png 290w, https:\/\/open-boat-projects.org\/wp-content\/uploads\/2022\/04\/Shelly_1_Hutschinenhalter-12x12.png 12w, https:\/\/open-boat-projects.org\/wp-content\/uploads\/2022\/04\/Shelly_1_Hutschinenhalter.png 690w\" sizes=\"auto, (max-width: 290px) 100vw, 290px\" \/> <img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-2993\" src=\"https:\/\/open-boat-projects.org\/wp-content\/uploads\/2022\/04\/Shelly_1_Hutschinenhalter_2-300x269.png\" alt=\"\" width=\"337\" height=\"303\" srcset=\"https:\/\/open-boat-projects.org\/wp-content\/uploads\/2022\/04\/Shelly_1_Hutschinenhalter_2-300x269.png 300w, https:\/\/open-boat-projects.org\/wp-content\/uploads\/2022\/04\/Shelly_1_Hutschinenhalter_2-13x12.png 13w, https:\/\/open-boat-projects.org\/wp-content\/uploads\/2022\/04\/Shelly_1_Hutschinenhalter_2.png 646w\" sizes=\"auto, (max-width: 337px) 100vw, 337px\" \/><\/p>\n<p>Fig: DIN rail holder for Shelly 1 with temperature addon module<\/p>\n<p>Here is some additional information about Shelly:<\/p>\n<ul>\n<li><a href=\"https:\/\/open-boat-projects.org\/wp-content\/uploads\/2022\/04\/Shelly1_User_Manual.pdf\" target=\"_blank\" rel=\"noopener\">Shelly 1 User Manual<\/a><\/li>\n<li><a href=\"https:\/\/shelly-api-docs.shelly.cloud\/gen1\/#shelly1-shelly1pm\" target=\"_blank\" rel=\"noopener\">Shelly 1 API reference<\/a><\/li>\n<li><a href=\"https:\/\/github.com\/arendst\/Tasmota\/issues\/7469\" target=\"_blank\" rel=\"noopener\">Shelly temperature addon (technical details)<\/a><\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>","protected":false},"excerpt":{"rendered":"<p>Fig. Shelly 1 Anyone who anchors is obliged to set an anchor light so that one can be recognized on the open water surface in the dark. Typically, the light is switched on manually at dusk and off again at sunrise. There is no problem switching it on. But often you forget to switch it off and the anchor light is then permanently on and\u2026 <a href=\"https:\/\/open-boat-projects.org\/en\/ankerlicht-automatik-mit-shelly-1\/\" class=\"more-link\">Read more <span class=\"screen-reader-text\">Anchor light automatic with Shelly 1<\/span><\/a><\/p>","protected":false},"author":2,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"categories":[40],"tags":[],"class_list":["post-2959","page","type-page","status-publish","hentry","category-openhardware"],"_links":{"self":[{"href":"https:\/\/open-boat-projects.org\/en\/wp-json\/wp\/v2\/pages\/2959","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/open-boat-projects.org\/en\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/open-boat-projects.org\/en\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/open-boat-projects.org\/en\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/open-boat-projects.org\/en\/wp-json\/wp\/v2\/comments?post=2959"}],"version-history":[{"count":29,"href":"https:\/\/open-boat-projects.org\/en\/wp-json\/wp\/v2\/pages\/2959\/revisions"}],"predecessor-version":[{"id":3172,"href":"https:\/\/open-boat-projects.org\/en\/wp-json\/wp\/v2\/pages\/2959\/revisions\/3172"}],"wp:attachment":[{"href":"https:\/\/open-boat-projects.org\/en\/wp-json\/wp\/v2\/media?parent=2959"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/open-boat-projects.org\/en\/wp-json\/wp\/v2\/categories?post=2959"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/open-boat-projects.org\/en\/wp-json\/wp\/v2\/tags?post=2959"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}