Skip to main content

Create your first project with HSYCO

  1. Navigate to HSYCO Manager

To access HSYCO Manager open a browser and type the URL:

https://192.168.1.50/hsycoserver/manager

note

The IP address and the URLKey written above are the default ones

  1. Go into "Settings"

  1. Select "I/O Servers"

  1. Click "+" to add a new one

  1. Select "Dummy" from the "Type" list, give it an "ID" ("dummyserver" for example) and click "Confirm"

  1. Click on "Options" to add attributes to the newly created server

  1. Select the "automation" option, give it a value (5 for example) and click "OK"

  2. Click "Confirm"

  3. Select the "dimmer" option, give it a value and click "OK"

  4. Click "Confirm"

  5. Select the "lights" option, insert a value and confirm

  6. Close the popup with the "X" button on the top right

  7. Click "Save" the "Save" again and wait for HSYCO to restart

Project with Landscape and Portrait views

  1. Go into "Project Editor"

  1. Click "New Project"

  1. Give it a name ("test" for example) and click "Create"

  1. Modify the "Theme" attribute and select one of your choice

  1. Modify the "Width" value to "800"

  1. Modify the "Height" value to "600"

  1. Modify the "Portrait Width" value to "320"

  1. Modify the "Portrait Height" value to "500"

  1. Make sure that the "Orientation Mode" flag is flagged

  1. Change the "Scale" attribute to "fit". By doing this, the UI frame is scaled to fill the available browser area, both vertically and horizontally

  1. Change the "Min Scale" attribute to "1". This is the minimum scale value, by defaut is "0.5"

  1. Click "Add Page"

Portrait

  1. Add the "Homepage (portrait)"

Lights and Automation Pages

  1. Click "Add Page"

  1. Add a "Page (portrait)"

  1. Modify the "ID" of the page to "lights"

  1. Change the "Title" to "Lights"

  1. Click "Add Page"

  1. Add another "Page (portrait)"

  1. Change the "ID" of the page to "automation"

  1. Change the "Title" to "Automation"

  1. Select the portrait "Home" page

  1. Click "add"

  1. Add a "Button"

  1. Enlarge it to make it fit the entire horizontal space. You can do it by dragging one of the four corners of the button

  2. Change the "Label" to "Lights Page"

  1. Change the "Action" to "link"

  1. Change the "Link" attribute to the "lights" page

  1. Click "add"

  1. Add a second "Button"

  1. Change the "Label" to "Automation Page"

  1. Change the "Action" to "link"

  1. Change the "Link" to "automation"

  1. Select the "lights" page

  1. Click "add"

  1. Add a "Button"

  1. Enlarge it to make it fit the horizontal space

  1. Change the "Label" to "Home Page"

  1. Change the "Action" to "link"

  1. Change the "Link" attribute to "home"

  1. Click "add"

  1. Add another "Button"

  1. Move it below the other button and make them the same size

  1. Change the "Label" to "Dummy Light 1"

  1. Change the "Action" to "datapoint"

  1. Select the "dummyserver.light.1" datapoint from the "Datapoint" list

  1. Right-click the button and click "Duplicate"

  1. Change the "Label" to "Dummy Light 2"

  1. Change also the "Datapoint" to "dummyserver.light.2"

  1. Right-click and duplicate again

  1. Repeat the steps until the fifth dummy light button

  2. Right-click the button and click "Duplicate"

  1. Change the "Label" to "Dummy Dimmer 1"

  1. Change the "Datapoint" to "dummyserver.dimmer.1"

  1. Right-click and duplicate again until the fifth dimmer light

Container

  1. As you can see, the buttons cannot fit in the vertical space of the page, so we need to group them

  1. Select all the buttons, right-click and select "Group". By doing this, the buttons will be included in a container

  1. Change the "Scrollable" attribute to "vertical". To be able to see all the buttons, we need to scroll the container

  1. The page should look like this:

  1. Select the "automation" page

  1. Click "add"

  1. Add a "Button"

  1. Stretch the button to make it fit the horizontal space

  2. Change the "Label" to "Home Page"

  1. Change the "Action" to "link"

  1. Change the "Link" to "home"

  1. Click "add"

  1. Add a "Tributton"

  1. Change the "Label" to "Dummy Autom 1"

  1. Change the "Datapoint" to "dummyserver.autom.1"

  1. Right-click the tributton and click "Duplicate"

  1. Change the "Label" to "Dummy Autom 2"

  1. Change the "Datapoint" attribute to "dummyserver.autom.2"

  1. Repeat the steps above until the fifth automation tributton

  2. The page should look like this:

  1. Click "Save"

  1. Click here.

Weather Object

  1. Go into "Setting"

  1. Select "I/O Servers"

  1. Click "+"

  1. Select the "WXONLINE" server type from the "Type" list, give it a name ("weather" for example) and click "OK"

  1. Click "+"

  1. Select the "location" option, insert a valid location ID in the "Value" attribute and click "OK". The Location ID is a unique identifier for every city. It is obtainable from https://openweathermap.org/

  1. Click "Save"

  1. Click "Save" again and wait for HSYCO to restart

  1. Go back to "Project Editor"

  1. Select the portrait "Home" page

  1. Click "add"

  1. Add a "Weather" object

  1. Select "weather" from the "Server ID"

  1. Click "Save"

  1. The page should look like this:

Landscape

  1. Select the landscape "Home" page

Floor Plan Image

  1. Click "add"

  1. Add an "Image" object

  1. Click this icon to select the image to show

  1. Click "image"

  1. Select the image and click "ok"

  2. The image will be resized to match the object's dimensions

Buttons with icon

  1. Click "add"

  1. Add a "Button"

  1. Move the button

  1. Change the "Action" to "datapoint"

  1. Change the "Datapoint" to "dummyserver.light.1"

  1. Leave the "Label" empty so that the icon occupies all the button size

  1. It looks like this:

  1. Click "add"

  1. Add another "Button"

  1. Change the "Label"

  1. You can change the color of the button by selecting one from the "Color" dropdown box. There is a list of standard colors and some unique colors to represent a warning color, a error color and so on

  1. The "Look" attribute specifies the button look

  1. You can also change the shape of the button by modifying the "Shape" attribute

  1. Click this icon to modify the icon

  1. Select a light icon and click "ok"

  1. You can change the "Icon Color" to modify its appearance

  1. The "Icon Size" is another option to modify the appearance of the icon

  1. This button looks like this:

  1. Click "add"

  1. Add a third "Button"

  1. Leave the "Label" empty

  1. Select a light icon like before

  1. Change the "Icon Color"

  1. The page should look like this:

  1. Click "Add Page"

  1. Add a "Page (landscape)"

  1. Change the "ID" of the page to "office1" for example

  1. Change also the "Title" of the page

  1. Click "Add Page"

  1. Add another "Page (landscape)"

  1. Change the "ID" of the page to "office2"

  1. Change the "Title" to "Office 2"

  1. Click "Add Page"

  1. Add an "Overlay (landscape)"

  1. Click "add"

  1. Add a "Nav" object

  1. Change the "Mode" to "drawer". In this way, the nav has open/closed states and can be controlled by an hamburger button, that we'll add later

  1. Change the "Width" to "50" and the "Size Open" to "110". These are the optimal sizes for our nav

  1. Change also the "Icon Size" to "50"

  1. Click "Not Set..." to add items to the nav

  1. Click "Add"

  1. Add an "Hamburger Button"

  1. Click "Add"

  1. Add a simple "Button"

  1. Click this icon to change the icon of the button

  1. Select one icon and click "ok"

  1. Change the "Action" to "link"

  1. Change the "Link" to the "home" page

  1. Click "Add"

  1. Add another button

  1. Change the "Label" to "Office 1"

  1. Change the icon like before and click "ok"

  1. Change the "Action" to "link"

  1. Change the "Link" to "office1"

  1. Add another button

  1. Change the "Label" to "Office 2"

  1. Change the icon of the button

  1. Change the "Action" to "link" and the "Link" to "office2"

  1. Click "ok" to confirm

  1. Click "Save"

Working with NAV

  1. Now we can navigate between the pages

  1. Here we are in the "office1" page as you can see from the Title of the page

  1. Here in the "office2"

  1. We can always go back to "home" page

  1. Pressing the hamburger button will open the nav

  1. By default, the "Push" attribute is true so the page's content is pushed when the nav is opened. You can set it to "false" to tweak that

Connection between landscape and portrait pages

  1. Select the landscape "home" page

  1. Change the "Portrait Page" attribute to "home". This list will only show portrait pages so we know that this "home" page refers to the portrait one

  1. Now select the portrait "home" page

  1. Change the "Landscape Page" to "home". Like before, in this list there will only be landscape pages so this is the landscape "home" page

  1. Click "Save"

  1. Now the two "home" pages (landscape and portrait view) are linked together. When the device changes orientation, if we are in one of the "home" pages, the project will switch automatically to match the new orientation. The same process can be applied to any page
  1. Select the "automation" page

  1. Change the "Parent Page" to "home". This is used to create a hierarchy between the pages so the breadcrumb shows the full path to that page

  1. Click "add"

  1. Add the "breadcrumbs" object

  1. It is automatically placed in the top-left corner of the portrait page

  1. Now select the other portrait page "lights"

  1. Change the "Parent Page" to "home"

  1. Click "add"

  1. Add the "Breadcrumbs"

  1. Click "Save"

  1. The breadcrumbs shows the hierarchy of the pages

  1. We can also navigate the pages by clicking their name in the breadcrumb