Category: Tutorials

  • Upgrading Nextcloud installation on shared Kapsi server

    Upgrading Nextcloud installation on shared Kapsi server

    In case you have very old Nextcloud installation on Kapsi server, it may stop working after the PHP version is upgraded on Kapsi servers. In thta case you may see a error message like:

    This version of Nextcloud is not compatible with > PHP 7.2.
    You are currently running 7.3.21-1+0~20200807.66+debian10~1.gbp18a1c2.

    It is generally good idea to keep the cloud service software up to date, but in case you have forgotten to upgrade it, here is a short guide how to do it manually on a shared host using command line tool.

    Usually I use Linux command line. But because I thought there might be also Windows users facing this problem, I show how to upgrade the Nextcloud instance using PuTTY on Windows. On linux machine you can do the same with the regular terminal app.

    On Windows, download and install PuTTY software which allows you to create connection to your file base on Kapsi server. You can find the latest version here. After installation, open up PuTTY and type the Kapsi server location you aim to connect to. Then hit “Open”.

    You need to type in your Kapsi username and password. After that you will see the welcome screen and you are able to navigate inside the file system. If you are new to command line, use the following tips to navigate:

    ls = shows folders in the current location

    cd xxx = enter to “xxx” folder

    cd .. = go back one step in the directory hierarchy

    Navigate to the parent folder that directly holds the one directory containing the outdated Nextcloud installation files. When you are located in the parent folder, it is time to download the installation package. You may use the following command, but adjust the version number:

    wget https://download.nextcloud.com/server/releases/nextcloud-19.0.1.zip

    Note! The version in the command above is the latest one at the time of writing this, you should check the version you want to install. The easiest way is to copy the link from the website:

    After the download is finished, unzip the package.

    unzip nextcloud-19.0.1.zip

    Then rename the old parent directory that contains the current Nextclud installation to something “-old”. You can do it by typing for example:

    mv ~/siilo/sites/xxxx-siilo.kapsi.fi/www/ ~/siilo/sites/xxxx-siilo.kapsi.fi/www-old

    And then rename the downloaded updated file directory to same as your Nextcloud installation used to be before.

    mv ~/siilo/sites/xxxx-siilo.kapsi.fi/nextcloud/ ~/siilo/sites/xxxx-siilo.kapsi.fi/www

    Then we follow the original guidance provided by Nextcloud, I directly refer the website:

    Copy the config/config.php file from your old Nextcloud directory to your new Nextcloud directory. If you keep your data/ directory in your nextcloud/ directory, copy it from your old version of Nextcloud to your new nextcloud/. If you keep it outside of nextcloud/ then you don’t have to do anything with it, because its location is configured in your original config.php, and none of the upgrade steps touch it.

    (If you are new to command line: copying can be done with command cp or you can also move the files and folders. Always write the full source and target location after the command.)

    Check that your new folders have the same ownership and permissions. Permissions should be OK automatically if you followed this process but if you have problems, refer to Nextcloud manual for further details.

    Now we can run the occ upgrade command. Because Kapsi server is a shared host service and we do not have sudo-access to it, we cannot use the command Nextcloud manual suggests (sudo -u www-data php occ upgrade).

    As we know that Siilo server is using today (August 2020) PHP version 7.3. We can run the upgrade command by typing:

    /usr/bin/php7.3 occ upgrade

    If everything works as expected the PuTTY window should show multiple lines of green text as the upgrading process runs succesfully.

    Note: if you are trying to upgrade over multiple major releases, you may get error message. That is why you should always try keep your Nextcloud up to date.

  • Starting with LineageOS on OnePlus 6

    Starting with LineageOS on OnePlus 6

    I was recently looking for a replacement for a Google based Android OS. Android is great OS but the idea of sharing all my user data with Google seems not reasonable to me. The first option for a replacement was Lineage OS.

    I was prepared to write detailed installations intructions here as blog post. But now after the process it seems LineageOS installation was so straight forward that no further details need to be provided. Just select the appropriate device and follow the instructions on these pages.

    After a fresh installation which does not include any Google services, you may wonder how to get the nessessary apps working. Lineage OS does not provide any app store as a default. You need to download one by searching with the browser app. I used Aptoide and found it was quite comprehensive.

    I was meant to write her more about using Lineage OS but actually right after installing it, I found something better.. Check out my next post about /e/ OS.

  • Installing SALOME-Meca on Windows 10

    Installing SALOME-Meca on Windows 10

    Cyprien Rusu has made very good job (as always) in guiding to install Salome-Meca on Windows platform. But that article is now more than one year old and there has become new downloads available on Code_Aster download page (for Windows).

    I am used to write these kind of short posts about my experiences in installing software so that them could help someone else (and myself too later whenever getting back to the situation).

    So here are my notes about installing Salome-Meca on Windows 10:

    Download page

    1. Go to the download page
    2. Download Salome-Meca 2018 win64 exe-file
    3. After dowloading completed, run the exe-file
    4. Click Next, Next and Install
    Setup window

    Everything should go as expected. The installation is similar to any other Windows software.

    But in my case, when I tried to launch teh software after the installation, I faced the following error:

    Error message: “VCOMP100.DLL was not found”
    After the error message, the program lauch was failed as shown in the console.

    How to get this fixed? Let’s look at the README for an advice. If you used the default installation path you should be able to find it from here (or similar location):

    There is the following note in README-file:

    This version was made as portable as possible. There is no dependecies, but on a fresh windows installation, if you notice an issue using the embeded python version, you may need to install the Microsoft Visual C++ 2010 SP1 Redistributable Package (x64) for Salome and also the Microsoft Visual C++ 2008 SP1 Redistributable Package (x64) for Code_Aster

    In my case, the problem was easily solved by installing Microsoft Visual C++ 2010 SP1 from here. After installing it, Salome launched successfully. Hope this helped you as well!

    Salome launched successfully on Windows 10.

    If you wish to find some further guidance for Salome-Meca in this blog, please drop me a line in the comments below.

  • Testing FEM Workbench of FreeCAD

    Testing FEM Workbench of FreeCAD

    FreeCAD is a parametric 3D modeling software and it is also free and open-sourced. The latest versions of FreeCAD are equipped with a FEM module, which is implemented as an integration of Calculix solver. In this post we will try out the FEM module by creating and calculating a simple laterally loaded cantilever solid beam and then comparing the result to an equivalent case in Ansys verification manual. Note: If you are promptly looking for a complete open-source FEA tool for some actual analysis work, you may want to read the conclusion section at the end of this article first.

    Let’s start by installing FreeCAD. I recommend you install the latest stable version of FreeCAD because the FEM module requires version 0.16.6377 or above. In this tutorial I use version 0.16.6712 on Ubuntu 16.04. The installation is trivial. Assuming you are on Linux system, you can install FreeCAD by typing in Terminal:

    sudo add-apt-repository ppa:freecad-maintainers/freecad-stable
    sudo apt-get update
    sudo apt-get install freecad freecad-doc && apt-get upgrade

    After installation and before diving into the software, let’s have a closer look at the calculation example. This description below is directly from Ansys VM5:

    As you noticed the input values above are not in SI units. There are different units and a some kind of unit conversion tool available in FreeCAD. However, and regardless of our personal unit preferences, we will convert the problem in FreeCAD to mm/kg/s/degree -system, which is also the initial unit system in FreeCAD. It is named as Standard option in User system under Units settings menu. Check your unit setting at Edit > Preferences > Units. Here are the input data values in SI-units: E = 206842,72 MPa, v = 0.0, l = 1270 mm, d = 76,2 mm, t = 50,8 mm, F = 1814,37 kg * 9,81 m/s² = 17799 N.

    Next I will guide you through a simple modeling of tapered cantilever beam. After that we will pre-process, solve and post-process the solution in the FreeCAD FEM module. This blog article does not contain any extra guidance for FreeCAD usage. You may find some further readings at FreeCAD wiki sites.

    Let’s start working by creating a new empty document (Ctrl + N) and clicking open the Workbench menu where the initial status is Start.

    Switch it to Complete. This selection makes visible a wide selection of tools in the tool bar.

    Select create a new sketch (shown in picture above). Keep XY-Plane as sketch orientation and click OK. Select a polyline tool from the toolbar. Then draw a tapered shape as the one below. Do not be concerned about the dimensions yet. But you can let the software automatically set the vertical and horizontal constrains at the three orthogonal edges.

    Then activate the horizontal line by clicking it (becomes green colored). Select fix the horizontal distance between two points or line ends (Shift + H) from the tool bar. Set the distance to 1270 mm. Then select the vertical line on left hand side and assign respectively fix the vertical distance between two points or line ends (Shift + V) with distance 228,6 mm. Then similarly on the right side set dimension to 76,2 mm. Now the sketch should look like this:

    If any constrain conflicts arise during the dimensioning, delete all inappropriate constrains in a Constrains window of a Task tab on the left. Now your sketch should be fully constrained. Click Close on the Task tab. Next, find a button Pad a select sketch on tool bar and click on it (Tip: it is pointed in the picture below). In Pad parameters add length to 50,8 mm and click OK. Now is a good moment to save the model, and cantilever.fcstd may be a good file name for the project. At this point the model is a solid part and should look like this:

    As the geometry is ready, we will switch on the FEM Workbench. Select FEM from the Workbench menu (change it from Complete). The tool bar is changed. Select create a mechanical analysis (N, A) from the tool bar (the button has yellow letter “A”). A new entity labeled as MechanicalAnalysis appears to a Labels & Attributes window on the left. If you expand that title, you can see the analysis contains a solver CalculiX.

    Next let’s define the material used in the analysis. Click the creates or edits the mechanical material definition (M, M) button (button icon: yellow ball-a-like). In Mechanical Material menu, change Material from None to Steel-Generic. Then change the Properties as follows, Young’s Modulus to 206842,72 MPa and Poisson Ratio to 0,001. Unfortunately, in FreeCAD we cannot set Poisson’s ratio to zero, so we choose the minimum allowed value. This will cause small but negligible error in our calculation since a small shear strain will be included in the deformation results. The Material properties should look like this (Density is not important now):

    Click OK. Then select create FEM constrain for a fixed geometric entity from the tool bar (button icon looks like a red lock and yellow part). Then select the end face of the higher end of the beam and click OK.

    Next, select create FEM constrain for a force acting on a geometric entity (button icon: red arrow and yellow part). Now, first: select the horizontal top edge of the lower end of the beam, second: click Direction button in FEM constraint parameters menu, and third: select one of the vertical edges for a reference for the force direction. Make sure the force arrows point downwards, and if not, opt-in the Reverse direction selection. Set the Line load to 17799 (total force in Newtons).

    Remember to save the project. Next, let’s mesh the model. First activate the Pad part and then click create FEM mesh from shape button (pointed in the picture below).

    Let’s keep the default meshing settings and click OK. Now, we need to drag and drop the created Pad_Mesh mesh under the MechanicalAnalysis. I have no idea why FreeCAD creates meshes outside the analysis scope by default. However, it must be fixed, so grab the mesh entity and drop it inside the MechanicalAnalysis in the Labels & Attributes list.

    Then activate the Calculix solver so that the dialog to start the calculation of the selected solver (S, C) (button icon: deformed yellow rectangle) becomes enabled in the tool bar. Click on it.

    In Mechanical analysis menu (shown above), set an easily findable directory for the text files written for the analysis (not necessary if you are not interested in checking the files later). Then click on Write .inp file. After that hit Run CalculiX. The analysis is done, click Close.

    Now there are results available. You can access the results by selecting show the result information of an analysis (S, R) button from the tool bar (button icon: color scale). In show results menu you can now choose which results to look at. In this case, the only appropriate plots available are Y displacement and Von Mises stress.

    Deformation in vertical direction looks like this:

    Von Mises stress (a very commonly used yield criterion for steel structures) for the beam structure looks like this:

    Now we can try to check if the result is aligned with the target values given in Ansys VM5.

    The maximum deflection calculated by Ansys (no analytical target value provided for displacement) for this laterally loaded tapered beam is shown in the picture below (directly from VM5). You can see in the Ansys plot below that the maximum displacement (DMX) is 0.097696 inches, which is 2,48 millimeters. In our FreeCAD Y displacement plot we had max displacement 2,52 mm (containing a very small shear strain).

    The stresses are difficult to compare because there are bending stress target values given in the Ansys VM5, whereas FreeCAD provides the von Mises stress only. In our case von Mises stress probably contains a notable portion of shear stress and hence cannot be compared to any bending stress component. However, we can put the values side by side just to check that there is no huge scale error. The target value (in VM5) for bending stress at the mid section of the beam is 8333 pounds per square inch, which is 57,45 MPa. FreeCAD post-processing does not provide any probing tool to enable locating the local values of the results. So without having any idea where it is located we can only look at the global maximum, which is 58,05 MPa.

    Conclusion

    The results for displacement seem to be reasonable. And in general, FreeCAD FEM module feels relatively easy to use. But the pre-processing tools seems to provide the very basic constrain settings only. Post-processing is also very limited. Especially, verifying the results is difficult or impossible because one cannot see the total support reaction, which is normally the first thing to check after running any mechanical FEM analysis. Also different stress components are not presented individually. For serious analysis work some kind of probe tool would also be necessary.

    However, the FreeCAD FEM module is very good as a first try to integrate FEA capabilities into FreeCAD modeling software. Hopefully the development will continue. The Calculix solver is a powerful tool and obviously a good choice. Still, the GUI features of the FEA module are currently so limited that FreeCAD alone cannot yet be recommended for any serious FEM analysis work. Actually, there is currently very big risk that experienced users will not use it for real analysis work while some curious and inexperienced users may blindly trust the limited results provided, and draw design decisions based on them (which actually may be the main problem of every CAD integrated FEM tool). So FreeCAD developers, keep up the good work! The bigger the user base and the community, the bigger the power and trust in the software.

    What are your thoughts about the FEM implementation in FreeCAD? Please drop me a line in the comment section below. And thanks for reading!

  • Installation of Salome-MECA (Salome and Code_Aster)

    Installation of Salome-MECA (Salome and Code_Aster)

    If you are interested in serious open source FEM software, this is a tool stack to look at.

    Salome platform is a CAD and meshing software mainly for Linux systems. When combined with Code_Aster FEA package it is generally called Salome-MECA. Together this combination of software provides very extensive tool set for Finite Element Analysis.

    Let’s start by downloading the appropriate version of Salome-MECA from here. In this tutorial we go with Salome-MECA version 2017.0.2.

    After downloading the package, you may want to check the md5sum to be correct. Type

    md5sum Salome-Meca-2017.0.2-LGPL-2.tgz

    and see if it matches with the one given on the download page.

    After that move the package to a preferred location (for example in /home/user/). And then type

    tar xvf Salome-Meca-2017.0.2-LGPL-2.tgz && ./Salome-Meca-2017.0.2-LGPL-2.run

    This installs Salome-MECA in the directory of your choice.

    Also a shortcut is created on your desktop automatically during the installation.

    After successful installation you can run the program by clicking the shortcut icon or by opening the terminal in the installation folder named salome_meca/appli_V2017.0.2. and typing ./salome

    You will also see Salome-MECA splash screen..

    ..as the graphical user-interface of Salome will open up.

    Now you are ready to explore the capabilities of your new tool set.

    Some document in Code_Aster website’s support section are translated from French automatically and hence not always convenient to read. However, there are very good training materials available at https://www.code-aster.org/V2/spip.php?rubrique68. I recommend you start there.

    Please, leave me a comment if you have any further questions or you would like see some Salome-MECA tutorials in this blog.

  • Enabling USB Keyboard and Mouse to Wake-up Ubuntu from Suspension

    Enabling USB Keyboard and Mouse to Wake-up Ubuntu from Suspension

    After having a new all-in-one type of computer with Bluetooth keyboard and mouse set, I faced the problem that Ubuntu could not be waken up from suspension by using the keyboard nor the mouse. After searching for a solution for some ten minutes, I decided to make some notes after finding the best solution to fix this. My article is based on this thread.

    Let’s first check the status of USB devices:

    I my case it is the 1-1.3 device which is the keyboard and mouse set, more precisely named as HP Wireless Keyboard Mouse Kit. This can be found out by looking at the following file:

    /sys/bus/usb/devices/1-1.3/product

    Now we would like to enable all the ports.

    echo enabled > /sys/bus/usb/devices/1-1.3/power/wakeup
    echo enabled > /sys/bus/usb/devices/1-1.4/power/wakeup
    echo enabled > /sys/bus/usb/devices/1-1/power/wakeup
    echo enabled > /sys/bus/usb/devices/usb1/power/wakeup
    echo enabled > /sys/bus/usb/devices/usb2/power/wakeup
    echo enabled > /sys/bus/usb/devices/usb3/power/wakeup

    Make sure that works well for you. After that we want to make the script executed after every reboot.

    sudo su
    sudo nano /etc/rc.local

    Copy paste all the code rows which begin echo enabled.. to the file before exit 0.

    Exit with “ctrl+X” and save with “yes”.

    Now you should be able to wake up your computer by using a keyboard or a mouse. And the status of usb ports should be set as enabled after every reboot. In my case, looks like this:

     

     

     

  • Nextcloud Installation on Kapsi

    Nextcloud Installation on Kapsi

    This guide describes the installation steps of Nextcloud server on Kapsi shared hosting service. It covers two methods: the first is based on usage of software with graphical user-interface and the other is focusing on command line usage. The first is suitable for beginners and the latter for more advanced Linux users. At the end there is one common addition to be made, it is described under Configuration title.

    Installation using GUI:

    1. Go to Nextcloud download page.
    2. Click Download under the Get Nextcloud Server title.
    3. Select Web Installer (the link is located at middle of the lowest row of the popup window).
    4. Save the file on your computer (Step 1. in the instructions).
    5. Use FTPS client (Filezilla or similar) and open the connection to Kapsi server (Additional guidance in Finnish).
    6. Upload the setup-nextcloud.php file to /siilo/x/username/sites/yoursite-siilo.kapsi.fi/www/
    7. Open web browser and go to https://yoursite-siilo.kapsi.fi/setup-nextcloud.php, Nextcloud webinstaller appears to your screen.
    8. Click Next.
    9. If everything is ready for installation, the installer says: All Nextcloud dependencies found
    10. Here you can choose whether you want to install the software in a sub-folder or at the root of www -directory (in case just enter . to the box).
    11. Click Next.
    12. After few moments the installer says: Success, Nextcloud is now installed!
    13. Click Next.
    14. Create admin account by entering admin username and password.
    15. Click Storage & Database section, select MySQL/MariaDB
    16. Enter database information. Usually the database name and the user is same as your Kapsi username. The host address of Kapsi MySQL server is db1.n.kapsi.fi. If you do not have a personal password for database, you can ask for it from the Kapsi support (helpdesk@tuki.kapsi.fi).
    17. Installation is ready, see the configuration below.

    Installation using CLI:

    1. Open terminal.
    2. Type ssh username@kapsi.fi
    3. Enter your Kapsi password.
    4. Type cd siilo/sites/yoursite-siilo.kapsi.fi/www
    5. Typewget 'https://download.nextcloud.com/server/releases/nextcloud-12.0.3.tar.bz2'(Check the latest version)
    6. Type tar xvfj nextcloud-12.0.3.tar.bz2
    7. Open web browser and go to the Nextcloud location.
    8. Setup page appears, see the steps 10 -16 from GUI guide above.
    9. Installation is ready, see the configuration below.

    Configuration

    There are some adjustments to be done to make the internet traffic use https and allowing access from different ip-addresses if used with multiple devices. Open the .htacces file in installation directory. Add the following lines to the beginning of the file:

    RewriteEngine on
    RewriteCond %{ENV:HTTPS} !on
    RewriteRule (.*) https://yoursite-siilo.kapsi.fi/$1 [R=301,L]

    Then add the following lines to the very end of the file:

    IndexIgnore *
    <Limit GET POST PUT DELETE OPTIONS PROPFIND PROPPATCH MKCOL COPY MOVE LOCK UNLOCK>
    order allow,deny
    allow from all
    </Limit>

    In case you have security considerations related to this script that allows all traffic with all methods you may adjust your own setup which can be limited to particular ip-addresses or something else. However, even if all traffic is allowed, there is still the normal Nextcloud authentication system keeping the data safe from outsiders.

    Now we are all set. Hope you enjoy your very own Nextcloud server!

  • Installing Calculix Launcher

    Installing Calculix Launcher

    Calculix is an open source finite element analysis software. And Calculix Launcher is a tool that provides a nice graphical user-interface between the components of the tool stack. Read more from here.

    This guide is primarily written for my self to point out the steps of the procedure of installing the tool set on a fresh Linux desktop environment. There is a video (by calculix09) of which shows the same steps in very detail, so I recommend using that if you are not familiar with the software. However, the list below may be used as a handy checklist later.

    1. Download appropriate installation package from Yandex drive (by launcher3) via this link. Note: Use the link at your own risk. All software are licensed by their authors. The writer of this blog post has no responsibility related to the software.
    2. Extract the archive
    3. Change the permission to “Allow executing file as a program” by right clicking the executable icon and selecting the Permissions tab on Properties window.
    4. Copy the path of bin -folder under the CL32-linux64 -directory (press ctrl+L inside the folder).
    5. Open terminal and type cd and paste the path, for example: cd /home/joni/CL32-linux64/bin
    6. Let’s make all binaries executable by typing command: chmod 777 *
    7. Now we can run the Launcher by double-clicking the executable icon (you may want to pin the icon to Ubuntu launcher after that)

    That’s it. The Calculix Launcher is now available.

    Let’s change some settings.

    1. On Launcher Menu, select Settings and set gedit as Name of Text Editor.
    2. On Menu, select Run GSMH.
    3. On GSMH Tools, select Options, General and Advanced tab, to Text editor command add gedit '%s'
    4. Select File, and Save Options As Default

    In case you want to see examples how to use it, please leave a comment below and I will publish some tutorials here.

  • Automation for Home Assistant

    Automation for Home Assistant

    After getting Home Assistant running and hooked up with some device, it is time to start putting automation into the system. For example, I have 10 different light bulbs in my system and I would like to make some automated control over them. Follow along and you may learn how to master yours!

    Before starting the actual automating I want to make some minor adjustments because I noticed all my light bulbs are in one messy bundle in Home Assistant GUI. I would like to have them neatly arranged to indoor and outdoor lights. The groups are there to rescue. Open up groups.yaml -file, which can be found from the same config -folder. Here you can easily group yours entities, for example like this:

    In case you wonder how to know the exact names of the entities, you can find a complete listing of available entities and their attributes by following the second link States located under the Developer Tools menu.

    After saving the groups -file and restarting Home Assistant, you should be able to see the difference:

    Now, similarly the actual automation code can be added to a separate file. Look at the automations.yaml. To automate outdoor lighting according to the status of sun I append the there the following:

    Look at the code. I think you can easily find out what happens there. Note that I have some extra definitions for some light bulbs because I am able to adjust not only their brightness but also color tune. You can find all the possible attributes from the very same page we already looked at for the entity names. Also, you can use the group names as I did for the latter automation.

    I case you are not happy with the timing set exactly to the moment of the sunset event, you have many possibilities to tweak the setup. I give below couple of ideas to try out as alternative triggers:

    Hope you got everything running smoothly. In case you face problems, let me know by adding a comment and I will try to help you further. Also, please comment if you have any other feedback.

  • Customizing Home Assistant

    Customizing Home Assistant

    After successfully installing and steadily running Home Assistant you may wonder where to start setting things up, not only in sense of the user interface preferences but also the actual data inside the system. In this post I will try to give a some sort of feeling of how to tweak things under the hood without touching any home automation device or automation code yet.

    This is how your Home Assistant home screen may look like in your browser window:

    Make sure you have Samba installed. You should, in case you followed my previous blog post. However, if everything is all set, you should be able to find your Home Assistant folder via the Network/Windows share -directory in your local system. On Ubuntu it may look something like this:

    Open up the config -folder. There you can find configuration.yaml -file. Open it in your favorite text editor. I suggest you to do the following:

    1. Add correct latitude and longitude. It is not neccessary yet, but you can easily find them using Google Map. Also elevation may be revised.
    2. Add correct time zone.
    3. Comment out the line 15 introduction:, this will remove the welcome banner on the home screen. Before doing so, it may be good idea to look at the links provided, you may find them useful later.
    4. On line 25 or so, uncomment api_password and create a password. This ensures your UI is not accessible for outsiders.

    Ok, now. Let’s try changing some sensor data. You should have as default the following lines:

    # Weather prediction
    sensor:
    - platform: yr

    Replace them by adding:
    # Weather Prediction
    sensor:
    - platform: time_date
    display_options:
    - 'time'
    - platform: yr
    monitored_conditions:
    - symbol
    - temperature
    - precipitation
    - windSpeed
    - pressure
    - windDirection
    - humidity
    - fog
    - cloudiness
    - dewpointTemperature

    Make sure you use right amount of white spaces, it is very important in yaml syntax. Direct copy pasting the code may not work. If you need a hint, look at the featured picture of this post.

    After saving the changes, you must restart your Home Assistant. You can do it by selecting Restart in Home Assistant domain at Services page under Developer Tools tab in the UI. After rebooting you should see some more small icons on top of the view:

    That is just an example how to configure sensors in your home screen without actually touching any real home automation devices.

    You can continue exploring the possibilities by checking out the official documentation.

    How to set up some real automation will be introduced in my next Home Assistant post, which will be out very soon.