{"id":38740,"date":"2021-07-13T18:16:57","date_gmt":"2021-07-13T16:16:57","guid":{"rendered":"http:\/\/support.ilevia.com\/?p=38740"},"modified":"2023-04-06T10:48:57","modified_gmt":"2023-04-06T08:48:57","slug":"custom-widget-script","status":"publish","type":"post","link":"https:\/\/support.ilevia.com\/en\/configuration-software-en\/custom-widget-script\/","title":{"rendered":"Custom widget script"},"content":{"rendered":"[et_pb_section fb_built=&#8221;1&#8243; _builder_version=&#8221;4.16&#8243; _module_preset=&#8221;default&#8221; custom_padding=&#8221;0px|||||&#8221; global_colors_info=&#8221;{}&#8221;][et_pb_row _builder_version=&#8221;4.16&#8243; _module_preset=&#8221;default&#8221; custom_padding=&#8221;0px||0px|||&#8221; global_colors_info=&#8221;{}&#8221;][et_pb_column type=&#8221;4_4&#8243; _builder_version=&#8221;4.16&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221;][et_pb_text _builder_version=&#8221;4.16&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221;]\n<p><strong><\/strong><\/p>\n<h1 style=\"text-align: center;\">CUSTOM WIDGET SCRIPT<\/h1>\n[\/et_pb_text][et_pb_divider _builder_version=&#8221;4.16&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221;][\/et_pb_divider][\/et_pb_column][\/et_pb_row][et_pb_row _builder_version=&#8221;4.16&#8243; _module_preset=&#8221;default&#8221; custom_padding=&#8221;0px|||||&#8221; global_colors_info=&#8221;{}&#8221;][et_pb_column type=&#8221;4_4&#8243; _builder_version=&#8221;4.16&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221;][et_pb_text _builder_version=&#8221;4.16&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221;]\n<blockquote>\n<h2><strong>INTRODUCTION<\/strong><\/h2>\n<\/blockquote>\n<p>This guide will show you how to configure the script in order to link the custom widget with the components like <strong>setpoint<\/strong>,\u00a0<strong>infos<\/strong>, <strong>switch<\/strong>, <strong>drop down<\/strong>, etc&#8230; to the svg file selected in the component properties. Obviously the script will change based on the structure of the svg file<\/p>\n[\/et_pb_text][et_pb_text _builder_version=&#8221;4.16&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221;]\n<blockquote>\n<h3><strong>Script&#8217;s Variables<\/strong><\/h3>\n<\/blockquote>\n[\/et_pb_text][et_pb_text _builder_version=&#8221;4.16&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221;]\n<p>These are the scritp&#8217;a variables. We remind that the variables don&#8217;t need to have the same name and id, this is a demostration of what can be done with a javascript.<\/p>\n[\/et_pb_text][\/et_pb_column][\/et_pb_row][et_pb_row column_structure=&#8221;1_2,1_2&#8243; _builder_version=&#8221;4.16&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221;][et_pb_column type=&#8221;1_2&#8243; _builder_version=&#8221;4.16&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221;][et_pb_image src=&#8221;http:\/\/support.ilevia.com\/wp-content\/uploads\/2021\/07\/Custom_widget_script_variables.png&#8221; alt=&#8221;List of all the variables that will be used inside the Javascript&#8221; title_text=&#8221;Custom_widget_script_variables&#8221; show_bottom_space_phone=&#8221;off&#8221; show_bottom_space_last_edited=&#8221;off|phone&#8221; _builder_version=&#8221;4.19.1&#8243; _module_preset=&#8221;default&#8221; custom_margin=&#8221;0px||0px||false|false&#8221; custom_margin_tablet=&#8221;&#8221; custom_margin_phone=&#8221;30px||30px||false|false&#8221; custom_margin_last_edited=&#8221;on|desktop&#8221; hover_enabled=&#8221;0&#8243; global_colors_info=&#8221;{}&#8221; show_in_lightbox=&#8221;on&#8221; box_shadow_style=&#8221;preset2&#8243; sticky_enabled=&#8221;0&#8243;][\/et_pb_image][\/et_pb_column][et_pb_column type=&#8221;1_2&#8243; _builder_version=&#8221;4.16&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221;][et_pb_text _builder_version=&#8221;4.16&#8243; _module_preset=&#8221;default&#8221; custom_margin=&#8221;-11px|||||&#8221; custom_padding=&#8221;||0px|||&#8221; global_colors_info=&#8221;{}&#8221;]\n<p><em><strong>var Svg<\/strong><\/em>: This variable will take the name of the svg file.<\/p>\n<p><em><strong>var color<\/strong><\/em>: This variable will gather the system drawing color.<\/p>\n<blockquote>\n<p><span style=\"text-decoration: underline;\"><strong>Components variables<\/strong><\/span>:<\/p>\n<\/blockquote>\n<p><em><strong>var room<\/strong><\/em>: This variable will gather the room number from the json Text field on the properties of the <strong>Custom widget<\/strong> component.<\/p>\n<p><em><strong>var temp<\/strong><\/em>: This variable will assume the value of the component with the ID 31, that in our case is an <strong>Info<\/strong> component that display a temperature value.<\/p>\n<p><em><strong>var Setpoint<\/strong><\/em>: This variable will assume the value of the component with the ID 32, that in our case is a <strong>Setpoint<\/strong> component.<\/p>\n<p><em><strong>var fan_opacity<\/strong><\/em>: This variable assume 1 as its default value.<\/p>\n<p><em><strong>var deumidification_opacity<\/strong><\/em>:\u00a0This variable assume 1 as its default value.<\/p>\n<p><em><strong>var cool_opacity<\/strong><\/em>: This variable will assume 0 as its default value.<\/p>\n<p><em><strong>var heat_opacity<\/strong><\/em>:\u00a0This variable will assume 0 as its default value.<\/p>\n<p><em><strong>var mode<\/strong><\/em>: This variable will assume the value of the component with the ID 33, that in our case is a <strong>drop down<\/strong> component.<em>\u00a0<\/em><\/p>\n<p><em><strong>var background<\/strong><\/em>: This variable will set the color of the back ground of the SVG file.<\/p>\n<blockquote>\n<p><span style=\"text-decoration: underline;\"><strong>SVG Link variables<\/strong><\/span>:<\/p>\n<\/blockquote>\n<p><em><strong>var svg_room<\/strong><\/em>:\u00a0This variable create a link between the svg file layer.<\/p>\n<p><em><strong>svg_room.Text<\/strong><\/em>: This statement will apply the room value to the svg element in the svg file.<\/p>\n<p><em><strong>var svg_room_background<\/strong><\/em>: This variable create a link between the svg file element &#8220;<strong>room background<\/strong>&#8220;<\/p>\n<p><em><strong>var svg_background<\/strong><\/em>:\u00a0This variable create a link between the svg file element &#8220;<strong>background<\/strong>&#8220;<\/p>\n<p><em><strong>var svg_Temperature<\/strong><\/em>: This variable create a link between the svg file element &#8220;<b>Temperature<\/b>&#8220;.<\/p>\n<p><em><strong>var svg_Setpoint<\/strong><\/em>: This variable create a link between the svg file element &#8220;<strong>S<\/strong><b>etpoint<\/b>&#8220;.<\/p>\n<p><em><strong>var svg_deumidification<\/strong><\/em>:\u00a0This variable create a link between the svg file layer.<\/p>\n<p><em><strong>var svg_fan<\/strong><\/em>: This variable create a link between the svg file element &#8220;<b>fan<\/b>&#8220;.<\/p>\n<p><em><strong>var svg_heat<\/strong><\/em>:\u00a0This variable create a link between the svg file element &#8220;<b>heat<\/b>&#8220;.<\/p>\n<p><strong><em>var svg_fan<\/em><\/strong>:\u00a0\u00a0This variable create a link between the svg file element &#8220;<b>Cool<\/b>&#8220;.<\/p>\n<p>&nbsp;<\/p>\n<p><strong>UpdateWidget()<\/strong>: This statement will refresh the widget element when executed in the User interface.<\/p>\n[\/et_pb_text][\/et_pb_column][\/et_pb_row][et_pb_row _builder_version=&#8221;4.16&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221;][et_pb_column type=&#8221;4_4&#8243; _builder_version=&#8221;4.16&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221;][et_pb_divider _builder_version=&#8221;4.16&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221;][\/et_pb_divider][et_pb_text _builder_version=&#8221;4.16&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221;]\n<blockquote>\n<h3><strong>Script&#8217;s Functions<\/strong><\/h3>\n<\/blockquote>\n[\/et_pb_text][et_pb_text _builder_version=&#8221;4.16&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221;]\n<p>These are the <strong>functions\u00a0<\/strong>that are going to be used in order to change the values of the svg image elements inside the EVE Remote User interface.<\/p>\n[\/et_pb_text][\/et_pb_column][\/et_pb_row][et_pb_row column_structure=&#8221;1_2,1_2&#8243; _builder_version=&#8221;4.16&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221;][et_pb_column type=&#8221;1_2&#8243; _builder_version=&#8221;4.16&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221;][et_pb_image src=&#8221;http:\/\/support.ilevia.com\/wp-content\/uploads\/2021\/07\/Custom_widget_function_temperaturechanged.png&#8221; alt=&#8221;Function temperature_changed, this function will set the value of current room temperature to the corresponding element of the custom widget inside the user interface of the Home automation app EVE Remote Plus&#8221; title_text=&#8221;Custom_widget_function_temperaturechanged&#8221; show_in_lightbox=&#8221;on&#8221; _builder_version=&#8221;4.19.1&#8243; _module_preset=&#8221;default&#8221; custom_margin_tablet=&#8221;&#8221; custom_margin_phone=&#8221;30px||0px||false|false&#8221; custom_margin_last_edited=&#8221;on|phone&#8221; hover_enabled=&#8221;0&#8243; global_colors_info=&#8221;{}&#8221; box_shadow_style=&#8221;preset2&#8243; sticky_enabled=&#8221;0&#8243;][\/et_pb_image][\/et_pb_column][et_pb_column type=&#8221;1_2&#8243; _builder_version=&#8221;4.16&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221;][et_pb_text _builder_version=&#8221;4.16&#8243; _module_preset=&#8221;default&#8221; custom_margin=&#8221;-20px|||||&#8221; global_colors_info=&#8221;{}&#8221;]\n<blockquote><p>Function <strong>Temperature changed<\/strong>:<\/p><\/blockquote>\n<p><strong>var val<\/strong>= <strong>getValueAsInt(temp)<\/strong>: This variable will gather the current value of the variable <strong>temp<\/strong>.<br \/>\n<\/br><br \/>\n<strong>log\u00a0(&#8220;Temperature\u00a0changed\u00a0to:&#8221;+val)<\/strong>: This log will print the string &#8220;<strong>Temperature\u00a0changed\u00a0to:&#8221; + <\/strong>the value of the val variable.<\/p>\n<div>\n<\/br><\/p>\n<div><strong>svg_temperature.Text\u00a0=\u00a0(parseInt(val*10)\/10).toString()+&#8221;\u00b0&#8221;: <\/strong>This operation will parse the value coming from the variable <strong>svg_temperautre<\/strong> and write it on the User interface element already parsed.<\/div>\n<p><\/br><\/p>\n<div><strong>UpdateWidget()<\/strong>: This statement will refresh the widget element when executed in the User interface.<\/div>\n<\/div>\n[\/et_pb_text][\/et_pb_column][\/et_pb_row][et_pb_row _builder_version=&#8221;4.16&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221;][et_pb_column type=&#8221;4_4&#8243; _builder_version=&#8221;4.16&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221;][et_pb_divider _builder_version=&#8221;4.16&#8243; _module_preset=&#8221;default&#8221; locked=&#8221;off&#8221; global_colors_info=&#8221;{}&#8221;][\/et_pb_divider][\/et_pb_column][\/et_pb_row][et_pb_row column_structure=&#8221;1_2,1_2&#8243; _builder_version=&#8221;4.16&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221;][et_pb_column type=&#8221;1_2&#8243; _builder_version=&#8221;4.16&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221;][et_pb_image src=&#8221;http:\/\/support.ilevia.com\/wp-content\/uploads\/2021\/07\/Custom_widget_function_modechanged.png&#8221; alt=&#8221;Function mode_changed, this function allow to change the current mode of a thermostat, based on the component drop down value the icons will be hidden or showed insdie the custom widged svg element inside the user interface of the Home automation app EVE Remote Plus&#8221; title_text=&#8221;Custom_widget_function_modechanged&#8221; show_in_lightbox=&#8221;on&#8221; _builder_version=&#8221;4.19.1&#8243; _module_preset=&#8221;default&#8221; custom_margin_tablet=&#8221;&#8221; custom_margin_phone=&#8221;30px||||false|false&#8221; custom_margin_last_edited=&#8221;on|phone&#8221; hover_enabled=&#8221;0&#8243; global_colors_info=&#8221;{}&#8221; box_shadow_style=&#8221;preset2&#8243; sticky_enabled=&#8221;0&#8243;][\/et_pb_image][\/et_pb_column][et_pb_column type=&#8221;1_2&#8243; _builder_version=&#8221;4.16&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221;][et_pb_text _builder_version=&#8221;4.16&#8243; _module_preset=&#8221;default&#8221; custom_margin=&#8221;-20px|||||&#8221; global_colors_info=&#8221;{}&#8221;]\n<blockquote>\n<p>Function <strong>mode_changed<\/strong>:<\/p>\n<\/blockquote>\n<div>\n<div><strong>var\u00a0val=getValueAsInt(mode<\/strong><span><strong>)<\/strong>:\u00a0This variable will gather the current value of the variable &#8220;<strong>mode<\/strong>&#8220;.<\/span><\/div>\n<p>&nbsp;<\/p>\n<div>\n<div><strong>log\u00a0(&#8220;Mode\u00a0changed\u00a0to:&#8221;+val<\/strong><span><strong>)<\/strong>: This log will print the string\u00a0&#8220;<strong>Mode\u00a0changed\u00a0to:<\/strong>&#8221; + the value coming from the variable &#8220;<strong>val<\/strong>&#8220;.<\/span><\/div>\n<p>&nbsp;<\/p>\n<div><strong><span style=\"text-decoration: underline;\">1\u00b0 if<\/span>:\u00a0<\/strong>This operation will set if the value of the drop down is 0, then the <strong>deumidification\u00a0<\/strong>icon will be visible in the interface, else it will be hidden;<\/div>\n<div><span style=\"text-decoration: underline;\"><strong>2\u00b0 if<\/strong><\/span>: This operation will set if the value of the drop down is 1, then the <strong>fan\u00a0<\/strong>icon will be visible in the interface, else it will be hidden;<\/div>\n<div><span style=\"text-decoration: underline;\"><strong>3\u00b0 if<\/strong><\/span>:\u00a0This operation will set if the value of the drop down is 2, then the <strong>heat<\/strong> icon will be visible in the interface, else it will be hidden;<\/div>\n<div><span style=\"text-decoration: underline;\"><strong>4\u00b0 if<\/strong><\/span>:\u00a0This operation will set if the value of the drop down is 3, then the <strong>cool<\/strong> icon will be visible in the interface, else it will be hidden.<\/div>\n<div><\/div>\n<p>&nbsp;<\/p>\n<div><strong>UpdateWidget()<\/strong>: This statement will refresh the widget element when executed in the User interface.<\/div>\n<\/div>\n<\/div>\n[\/et_pb_text][\/et_pb_column][\/et_pb_row][et_pb_row _builder_version=&#8221;4.16&#8243; _module_preset=&#8221;default&#8221; locked=&#8221;off&#8221; global_colors_info=&#8221;{}&#8221;][et_pb_column type=&#8221;4_4&#8243; _builder_version=&#8221;4.16&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221;][et_pb_divider _builder_version=&#8221;4.16&#8243; _module_preset=&#8221;default&#8221; locked=&#8221;off&#8221; global_colors_info=&#8221;{}&#8221;][\/et_pb_divider][\/et_pb_column][\/et_pb_row][et_pb_row column_structure=&#8221;1_2,1_2&#8243; _builder_version=&#8221;4.16&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221;][et_pb_column type=&#8221;1_2&#8243; _builder_version=&#8221;4.16&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221;][et_pb_image src=&#8221;http:\/\/support.ilevia.com\/wp-content\/uploads\/2021\/07\/Custom_widget_function_setpointchanged.png&#8221; alt=&#8221;Function setpoint_changed, This function allows the user to monitor the current setpoint value applyed at the corresopnding element inside the user interface of the Home automation app EVE Remote plus.&#8221; title_text=&#8221;Custom_widget_function_setpointchanged&#8221; show_in_lightbox=&#8221;on&#8221; _builder_version=&#8221;4.19.1&#8243; _module_preset=&#8221;default&#8221; custom_margin_tablet=&#8221;&#8221; custom_margin_phone=&#8221;||||false|false&#8221; custom_margin_last_edited=&#8221;on|phone&#8221; hover_enabled=&#8221;0&#8243; global_colors_info=&#8221;{}&#8221; box_shadow_style=&#8221;preset2&#8243; sticky_enabled=&#8221;0&#8243;][\/et_pb_image][\/et_pb_column][et_pb_column type=&#8221;1_2&#8243; _builder_version=&#8221;4.16&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221;][et_pb_text _builder_version=&#8221;4.16&#8243; _module_preset=&#8221;default&#8221; custom_margin=&#8221;-21px|||||&#8221; global_colors_info=&#8221;{}&#8221;]\n<blockquote>\n<p>Function <strong>setpoint_changed<\/strong>:<\/p>\n<\/blockquote>\n<p><strong>var\u00a0val=getValueAsDouble(setpoint)<\/strong>: This variable will get the value of the variable &#8220;<strong>setpoint&#8221;<\/strong>;<\/p>\n<p>&nbsp;<\/p>\n<div><strong>log\u00a0(&#8220;Setpoint\u00a0changed\u00a0to:&#8221;+val<\/strong><span><strong>)<\/strong>: This log will print\u00a0<strong>&#8220;Setpoint\u00a0changed\u00a0to:&#8221;\u00a0<\/strong>+ the value coming from the &#8220;<strong>val<\/strong>&#8221; variable;<\/span><\/div>\n<p>&nbsp;<\/p>\n<div><strong>svg_setpoint.Text\u00a0=\u00a0(parseInt(val*10)\/10).toString()+<\/strong><strong>&#8220;\u00b0&#8221;<\/strong>:\u00a0This operation will parse the value coming from the variable <b>svg_setpoint<\/b>\u00a0and write it on the User interface element already parsed.<\/div>\n<div><\/div>\n<p>&nbsp;<\/p>\n<div><strong>Updatewidget()<\/strong>:\u00a0\u00a0This statement will refresh the widget element when executed in the User interface.<\/div>\n[\/et_pb_text][\/et_pb_column][\/et_pb_row][et_pb_row _builder_version=&#8221;4.16&#8243; _module_preset=&#8221;default&#8221; locked=&#8221;off&#8221; global_colors_info=&#8221;{}&#8221;][et_pb_column type=&#8221;4_4&#8243; _builder_version=&#8221;4.16&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221;][et_pb_divider _builder_version=&#8221;4.16&#8243; _module_preset=&#8221;default&#8221; locked=&#8221;off&#8221; global_colors_info=&#8221;{}&#8221;][\/et_pb_divider][\/et_pb_column][\/et_pb_row][et_pb_row column_structure=&#8221;1_2,1_2&#8243; _builder_version=&#8221;4.16&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221;][et_pb_column type=&#8221;1_2&#8243; _builder_version=&#8221;4.16&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221;][et_pb_image src=&#8221;http:\/\/support.ilevia.com\/wp-content\/uploads\/2021\/07\/Custom_widget_function_busy_changed.png&#8221; alt=&#8221;Function busy_changed, this variable allows the user to monitor the each room occupation by a changing color transaction that will affect on the background element of the custom widget component inside the User interface of the Home automation app EVE Remote Plus &#8221; title_text=&#8221;Custom_widget_function_busy_changed&#8221; show_in_lightbox=&#8221;on&#8221; _builder_version=&#8221;4.19.1&#8243; _module_preset=&#8221;default&#8221; hover_enabled=&#8221;0&#8243; global_colors_info=&#8221;{}&#8221; box_shadow_style=&#8221;preset2&#8243; sticky_enabled=&#8221;0&#8243;][\/et_pb_image][\/et_pb_column][et_pb_column type=&#8221;1_2&#8243; _builder_version=&#8221;4.16&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221;][et_pb_text _builder_version=&#8221;4.16&#8243; _module_preset=&#8221;default&#8221; custom_margin=&#8221;-20px|||||&#8221; global_colors_info=&#8221;{}&#8221;]\n<blockquote>\n<p>Function <strong>busy_changed<\/strong>:<\/p>\n<\/blockquote>\n<div>\n<div><strong>var\u00a0val=getValueAsBoolean(busy<\/strong><span><strong>)<\/strong>: This variable will get the value of the variable &#8220;<strong>busy<\/strong>&#8220;.\u00a0<\/span><\/div>\n<p>&nbsp;<\/p>\n<div><strong>log\u00a0(&#8220;Busy\u00a0changed\u00a0to:&#8221;+val<\/strong><span><strong>)<\/strong>:<\/span>\u00a0This log will pint\u00a0<strong>&#8220;Busy\u00a0changed\u00a0to:&#8221; + <\/strong>the value of the variable <strong>&#8220;val&#8221;<\/strong>.<\/div>\n<div><\/div>\n<p>&nbsp;<\/p>\n<div><strong>If &#8211; Else<\/strong> <strong>operation<\/strong>: This openration says that <strong>if<\/strong> the value of the variable &#8220;val&#8221; is true then the color specified in the svg_background.Fill will be set as background color in the svg in the user interface, <strong>else<\/strong>\u00a0the other color will be set in the svg element in the user interface.<\/div>\n<div><\/div>\n<p>&nbsp;<\/p>\n<div><strong>UpdateWidget<\/strong><span>():\u00a0This statement will refresh the widget element when executed in the User interface.<\/span><\/div>\n<\/div>\n[\/et_pb_text][\/et_pb_column][\/et_pb_row][et_pb_row _builder_version=&#8221;4.16&#8243; _module_preset=&#8221;default&#8221; locked=&#8221;off&#8221; global_colors_info=&#8221;{}&#8221;][et_pb_column type=&#8221;4_4&#8243; _builder_version=&#8221;4.16&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221;][et_pb_divider _builder_version=&#8221;4.16&#8243; _module_preset=&#8221;default&#8221; locked=&#8221;off&#8221; global_colors_info=&#8221;{}&#8221;][\/et_pb_divider][\/et_pb_column][\/et_pb_row][et_pb_row column_structure=&#8221;1_2,1_2&#8243; _builder_version=&#8221;4.16&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221;][et_pb_column type=&#8221;1_2&#8243; _builder_version=&#8221;4.16&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221;][et_pb_image src=&#8221;http:\/\/support.ilevia.com\/wp-content\/uploads\/2021\/07\/Custom_widget_settriggers.png&#8221; alt=&#8221;These statement setTriggers, are needed in order to execute the variables inside the EVE server.&#8221; title_text=&#8221;Custom_widget_settriggers&#8221; show_in_lightbox=&#8221;on&#8221; _builder_version=&#8221;4.19.1&#8243; _module_preset=&#8221;default&#8221; hover_enabled=&#8221;0&#8243; global_colors_info=&#8221;{}&#8221; box_shadow_style=&#8221;preset2&#8243; sticky_enabled=&#8221;0&#8243;][\/et_pb_image][\/et_pb_column][et_pb_column type=&#8221;1_2&#8243; _builder_version=&#8221;4.16&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221;][et_pb_text _builder_version=&#8221;4.16&#8243; _module_preset=&#8221;default&#8221; custom_margin=&#8221;-17px|||||&#8221; global_colors_info=&#8221;{}&#8221;]\n<blockquote>\n<p><strong>SetTriggers<\/strong>:<\/p>\n<\/blockquote>\n<p><strong>setTrigger(temp,&#8221;temperature_changed&#8221;)<\/strong>: This statement will set a trigger to the function &#8220;<strong>temperature_changed<\/strong>&#8220;;<\/p>\n<p>&nbsp;<\/p>\n<p><strong>setTrigger(mode,&#8221;mode_changed&#8221;<\/strong><strong>)<\/strong>:\u00a0This statement will set a trigger to the function &#8220;<strong>mode_changed<\/strong>&#8220;;<\/p>\n<p>&nbsp;<\/p>\n<p><strong>setTrigger(setpoint,&#8221;setpoint_changed&#8221;<\/strong><span><strong>)<\/strong>:\u00a0This statement will set a trigger to the function &#8220;<strong>setpoint_changed<\/strong>&#8220;;<\/span><\/p>\n<p><span><\/span><\/p>\n<p><strong>setTrigger(busy,&#8221;busy_changed&#8221;<\/strong><span><strong>)<\/strong>:\u00a0This statement will set a trigger to the function &#8220;<strong>busy_changed<\/strong>&#8220;.<\/span><\/p>\n[\/et_pb_text][\/et_pb_column][\/et_pb_row][\/et_pb_section][et_pb_section fb_built=&#8221;1&#8243; inner_shadow=&#8221;on&#8221; _builder_version=&#8221;4.19.1&#8243; background_color=&#8221;#fafafa&#8221; parallax=&#8221;on&#8221; min_height=&#8221;280px&#8221; custom_margin=&#8221;30px||||false|false&#8221; locked=&#8221;off&#8221; collapsed=&#8221;off&#8221; global_colors_info=&#8221;{}&#8221; global_module=&#8221;59323&#8243; theme_builder_area=&#8221;post_content&#8221;][et_pb_row module_class=&#8221; et_pb_row_fullwidth&#8221; _builder_version=&#8221;4.16&#8243; width=&#8221;91%&#8221; width_tablet=&#8221;80%&#8221; width_last_edited=&#8221;off|desktop&#8221; max_width=&#8221;90%&#8221; max_width_tablet=&#8221;80%&#8221; max_width_phone=&#8221;&#8221; max_width_last_edited=&#8221;on|desktop&#8221; custom_padding=&#8221;30px|0px|22.8594px|0px|false|false&#8221; make_fullwidth=&#8221;on&#8221; collapsed=&#8221;off&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;][et_pb_column type=&#8221;4_4&#8243; _builder_version=&#8221;4.16&#8243; custom_padding=&#8221;|||&#8221; global_colors_info=&#8221;{}&#8221; custom_padding__hover=&#8221;|||&#8221; theme_builder_area=&#8221;post_content&#8221;][et_pb_text _builder_version=&#8221;4.16&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;]\n<h1 style=\"text-align: center;\">Still Need Help? Our Customer Service Is Here For You.<\/h1>\n[\/et_pb_text][\/et_pb_column][\/et_pb_row][et_pb_row _builder_version=&#8221;4.16&#8243; _module_preset=&#8221;default&#8221; width=&#8221;100%&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;][et_pb_column type=&#8221;4_4&#8243; _builder_version=&#8221;4.16&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;][et_pb_button button_url=&#8221;http:\/\/support.ilevia.com\/support-request\/&#8221; button_text=&#8221;Ask For Help&#8221; button_alignment=&#8221;center&#8221; _builder_version=&#8221;4.19.1&#8243; custom_button=&#8221;on&#8221; button_text_size=&#8221;20px&#8221; button_text_color=&#8221;#1e84f4&#8243; button_bg_color=&#8221;#FFFFFF&#8221; button_border_width=&#8221;2px&#8221; button_border_color=&#8221;#1e84f4&#8243; button_font=&#8221;||||||||&#8221; button_use_icon=&#8221;off&#8221; custom_margin=&#8221;||||false|false&#8221; custom_margin_tablet=&#8221;&#8221; custom_margin_phone=&#8221;|0px|||false|false&#8221; custom_margin_last_edited=&#8221;on|phone&#8221; box_shadow_style=&#8221;preset2&#8243; box_shadow_spread=&#8221;-80px&#8221; global_colors_info=&#8221;{}&#8221; box_shadow_spread__hover=&#8221;0px&#8221; box_shadow_spread__hover_enabled=&#8221;on&#8221; theme_builder_area=&#8221;post_content&#8221;][\/et_pb_button][et_pb_button button_url=&#8221;http:\/\/support.ilevia.com\/support-request\/&#8221; button_text=&#8221;Make a suggestion&#8221; button_alignment=&#8221;center&#8221; _builder_version=&#8221;4.19.1&#8243; custom_button=&#8221;on&#8221; button_text_size=&#8221;20px&#8221; button_text_color=&#8221;#1e84f4&#8243; button_bg_color=&#8221;#FFFFFF&#8221; button_border_width=&#8221;2px&#8221; button_border_color=&#8221;#1e84f4&#8243; button_use_icon=&#8221;off&#8221; custom_margin=&#8221;|||0px|false|false&#8221; custom_margin_tablet=&#8221;&#8221; custom_margin_phone=&#8221;|||0px|false|false&#8221; custom_margin_last_edited=&#8221;on|phone&#8221; custom_padding=&#8221;|||25px|false|false&#8221; box_shadow_style=&#8221;preset2&#8243; box_shadow_spread=&#8221;-80px&#8221; locked=&#8221;off&#8221; global_colors_info=&#8221;{}&#8221; box_shadow_spread__hover=&#8221;0px&#8221; box_shadow_spread__hover_enabled=&#8221;on&#8221; theme_builder_area=&#8221;post_content&#8221;][\/et_pb_button][\/et_pb_column][\/et_pb_row][\/et_pb_section]\n","protected":false},"excerpt":{"rendered":"<p>CUSTOM WIDGET SCRIPT INTRODUCTION This guide will show you how to configure the script in order to link the custom widget with the components like setpoint,\u00a0infos, switch, drop down, etc&#8230; to the svg file selected in the component properties. Obviously the script will change based on the structure of the svg file Script&#8217;s Variables These [&hellip;]<\/p>\n","protected":false},"author":3,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_et_pb_use_builder":"on","_et_pb_old_content":"","_et_gb_content_width":"","inline_featured_image":false,"footnotes":""},"categories":[1,18],"tags":[],"class_list":["post-38740","post","type-post","status-publish","format-standard","hentry","category-all","category-configuration-software-en"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.3 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Custom widget script Ilevia Support |<\/title>\n<meta name=\"description\" content=\"This guide will explain in a detailed way how to build a javascript for the custom widget component.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/support.ilevia.com\/en\/configuration-software-en\/custom-widget-script\/\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Filippo Amabilia\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"13 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/support.ilevia.com\\\/en\\\/configuration-software-en\\\/custom-widget-script\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/support.ilevia.com\\\/en\\\/configuration-software-en\\\/custom-widget-script\\\/\"},\"author\":{\"name\":\"Filippo Amabilia\",\"@id\":\"https:\\\/\\\/support.ilevia.com\\\/en\\\/#\\\/schema\\\/person\\\/08a8d13dee0bc9f160da55efe97b7959\"},\"headline\":\"Custom widget script\",\"datePublished\":\"2021-07-13T16:16:57+00:00\",\"dateModified\":\"2023-04-06T08:48:57+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/support.ilevia.com\\\/en\\\/configuration-software-en\\\/custom-widget-script\\\/\"},\"wordCount\":2678,\"publisher\":{\"@id\":\"https:\\\/\\\/support.ilevia.com\\\/en\\\/#organization\"},\"articleSection\":[\"All Archives\",\"Configuration Software\"],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/support.ilevia.com\\\/en\\\/configuration-software-en\\\/custom-widget-script\\\/\",\"url\":\"https:\\\/\\\/support.ilevia.com\\\/en\\\/configuration-software-en\\\/custom-widget-script\\\/\",\"name\":\"Custom widget script Ilevia Support |\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/support.ilevia.com\\\/en\\\/#website\"},\"datePublished\":\"2021-07-13T16:16:57+00:00\",\"dateModified\":\"2023-04-06T08:48:57+00:00\",\"description\":\"This guide will explain in a detailed way how to build a javascript for the custom widget component.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/support.ilevia.com\\\/en\\\/configuration-software-en\\\/custom-widget-script\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/support.ilevia.com\\\/en\\\/configuration-software-en\\\/custom-widget-script\\\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/support.ilevia.com\\\/en\\\/configuration-software-en\\\/custom-widget-script\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/support.ilevia.com\\\/en\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Software Configurazione\",\"item\":\"https:\\\/\\\/support.ilevia.com\\\/it\\\/archivi\\\/software-configurazione\\\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Custom widget script\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/support.ilevia.com\\\/en\\\/#website\",\"url\":\"https:\\\/\\\/support.ilevia.com\\\/en\\\/\",\"name\":\"Ilevia Support\",\"description\":\"Assistance &amp; Technical Guides\",\"publisher\":{\"@id\":\"https:\\\/\\\/support.ilevia.com\\\/en\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/support.ilevia.com\\\/en\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/support.ilevia.com\\\/en\\\/#organization\",\"name\":\"Ilevia\",\"url\":\"https:\\\/\\\/support.ilevia.com\\\/en\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/support.ilevia.com\\\/en\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"http:\\\/\\\/support.ilevia.com\\\/wp-content\\\/uploads\\\/2018\\\/12\\\/ilevia.png\",\"contentUrl\":\"http:\\\/\\\/support.ilevia.com\\\/wp-content\\\/uploads\\\/2018\\\/12\\\/ilevia.png\",\"width\":500,\"height\":500,\"caption\":\"Ilevia\"},\"image\":{\"@id\":\"https:\\\/\\\/support.ilevia.com\\\/en\\\/#\\\/schema\\\/logo\\\/image\\\/\"},\"sameAs\":[\"https:\\\/\\\/www.facebook.com\\\/ileviaofficial\\\/\",\"https:\\\/\\\/www.instagram.com\\\/ilevia_official\\\/\",\"https:\\\/\\\/it.linkedin.com\\\/company\\\/ilevia\\\/\",\"https:\\\/\\\/www.youtube.com\\\/ilevia\\\/\"]},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/support.ilevia.com\\\/en\\\/#\\\/schema\\\/person\\\/08a8d13dee0bc9f160da55efe97b7959\",\"name\":\"Filippo Amabilia\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/0e396093874891309dc46571e6eec478bc2a5080be4f76a70e1ca9deb9f99eec?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/0e396093874891309dc46571e6eec478bc2a5080be4f76a70e1ca9deb9f99eec?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/0e396093874891309dc46571e6eec478bc2a5080be4f76a70e1ca9deb9f99eec?s=96&d=mm&r=g\",\"caption\":\"Filippo Amabilia\"},\"url\":\"https:\\\/\\\/support.ilevia.com\\\/en\\\/author\\\/filippo-amabilia\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Custom widget script Ilevia Support |","description":"This guide will explain in a detailed way how to build a javascript for the custom widget component.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/support.ilevia.com\/en\/configuration-software-en\/custom-widget-script\/","twitter_misc":{"Written by":"Filippo Amabilia","Est. reading time":"13 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/support.ilevia.com\/en\/configuration-software-en\/custom-widget-script\/#article","isPartOf":{"@id":"https:\/\/support.ilevia.com\/en\/configuration-software-en\/custom-widget-script\/"},"author":{"name":"Filippo Amabilia","@id":"https:\/\/support.ilevia.com\/en\/#\/schema\/person\/08a8d13dee0bc9f160da55efe97b7959"},"headline":"Custom widget script","datePublished":"2021-07-13T16:16:57+00:00","dateModified":"2023-04-06T08:48:57+00:00","mainEntityOfPage":{"@id":"https:\/\/support.ilevia.com\/en\/configuration-software-en\/custom-widget-script\/"},"wordCount":2678,"publisher":{"@id":"https:\/\/support.ilevia.com\/en\/#organization"},"articleSection":["All Archives","Configuration Software"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/support.ilevia.com\/en\/configuration-software-en\/custom-widget-script\/","url":"https:\/\/support.ilevia.com\/en\/configuration-software-en\/custom-widget-script\/","name":"Custom widget script Ilevia Support |","isPartOf":{"@id":"https:\/\/support.ilevia.com\/en\/#website"},"datePublished":"2021-07-13T16:16:57+00:00","dateModified":"2023-04-06T08:48:57+00:00","description":"This guide will explain in a detailed way how to build a javascript for the custom widget component.","breadcrumb":{"@id":"https:\/\/support.ilevia.com\/en\/configuration-software-en\/custom-widget-script\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/support.ilevia.com\/en\/configuration-software-en\/custom-widget-script\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/support.ilevia.com\/en\/configuration-software-en\/custom-widget-script\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/support.ilevia.com\/en\/"},{"@type":"ListItem","position":2,"name":"Software Configurazione","item":"https:\/\/support.ilevia.com\/it\/archivi\/software-configurazione\/"},{"@type":"ListItem","position":3,"name":"Custom widget script"}]},{"@type":"WebSite","@id":"https:\/\/support.ilevia.com\/en\/#website","url":"https:\/\/support.ilevia.com\/en\/","name":"Ilevia Support","description":"Assistance &amp; Technical Guides","publisher":{"@id":"https:\/\/support.ilevia.com\/en\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/support.ilevia.com\/en\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/support.ilevia.com\/en\/#organization","name":"Ilevia","url":"https:\/\/support.ilevia.com\/en\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/support.ilevia.com\/en\/#\/schema\/logo\/image\/","url":"http:\/\/support.ilevia.com\/wp-content\/uploads\/2018\/12\/ilevia.png","contentUrl":"http:\/\/support.ilevia.com\/wp-content\/uploads\/2018\/12\/ilevia.png","width":500,"height":500,"caption":"Ilevia"},"image":{"@id":"https:\/\/support.ilevia.com\/en\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/ileviaofficial\/","https:\/\/www.instagram.com\/ilevia_official\/","https:\/\/it.linkedin.com\/company\/ilevia\/","https:\/\/www.youtube.com\/ilevia\/"]},{"@type":"Person","@id":"https:\/\/support.ilevia.com\/en\/#\/schema\/person\/08a8d13dee0bc9f160da55efe97b7959","name":"Filippo Amabilia","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/0e396093874891309dc46571e6eec478bc2a5080be4f76a70e1ca9deb9f99eec?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/0e396093874891309dc46571e6eec478bc2a5080be4f76a70e1ca9deb9f99eec?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/0e396093874891309dc46571e6eec478bc2a5080be4f76a70e1ca9deb9f99eec?s=96&d=mm&r=g","caption":"Filippo Amabilia"},"url":"https:\/\/support.ilevia.com\/en\/author\/filippo-amabilia\/"}]}},"_links":{"self":[{"href":"https:\/\/support.ilevia.com\/en\/wp-json\/wp\/v2\/posts\/38740","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/support.ilevia.com\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/support.ilevia.com\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/support.ilevia.com\/en\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/support.ilevia.com\/en\/wp-json\/wp\/v2\/comments?post=38740"}],"version-history":[{"count":73,"href":"https:\/\/support.ilevia.com\/en\/wp-json\/wp\/v2\/posts\/38740\/revisions"}],"predecessor-version":[{"id":62384,"href":"https:\/\/support.ilevia.com\/en\/wp-json\/wp\/v2\/posts\/38740\/revisions\/62384"}],"wp:attachment":[{"href":"https:\/\/support.ilevia.com\/en\/wp-json\/wp\/v2\/media?parent=38740"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/support.ilevia.com\/en\/wp-json\/wp\/v2\/categories?post=38740"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/support.ilevia.com\/en\/wp-json\/wp\/v2\/tags?post=38740"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}