Icons
smart VISU
uses two kinds of icons:
1. Dynamic Icons
Dynamic icons are based on svg-images. They are directly rendered in the browser and are the fastest way to show dynamic changes.
{{ icon.arrow('id', 'item_switch', 'item_value', 'min', 'max', 'color') }}
Their properties change with two items:
- item_value controls the dynamic behavior of the icons
- item_switch should be left empty since clicking on the icon will toggle the related item
Use the slider to see how the dynamic icon changes.
{{ icon.arrow('icon1', '', 'bath.light.value') }}
{{ icon.battery('icon2', '', 'bath.light.value') }}
Scaling Dynamic Icons
In dynamic icons, one property is depending on the item given in the parameter list.
To scale the poperty of the icon to the value range of the item, the parameters min and max are used. Default values are 0 - 255.
{{ icon.shutter('icon3', '', 'bath.light.value', '', '', '') }}
{{ icon.shutter('icon4', '', 'bath.light.value', '0', '510', '') }}
Coloring Dynamic Icons
Dynamic icons can be displayed in different colors. The color can be specified as hexadecimal value or - new in v3.3 with 6 icon classes 'icon0' through 'icon5'.
{{ icon.blade2('icon5', '', 'bath.light.value', '', '', '#f9a028') }}
{{ icon.battery('icon6', '', 'bath.light.value', '', '', '#4176a9') }}
{{ icon.meter('icon7', '', 'bath.light.value', '', '', 'icon4') }}
2. Static Icons
A static icon may be based on PNG or SVG image. PNG images are not styleable. They must be made available colorized and sorted in subfolders of ./icons by their colors (e.g. ./icons/or).
SVG images get embedded into the html DOM by smartVISU and are then styleable using 6 classes of the configured design or with individual colors.
While "icon0" and "icon1" are the classes for normal and highlighted SVG icons "{{ icon0 }}" and "{{ icon1 }}" serve as path variables for the icon files in normal and highlighted colors.
All icons coming with smartVISU are SVG icons since SVGs are clearly preferred. However, legacy PNG icons are still supported.
As of v3.3 the loading of icons has changed to improve performance and stylability. It is recommended to use the widget "lib.svgimg" on svg icons in ./icons/ws or ./dropins/icons/ws with classes and styling options.
This method is faster in loading and profits from the cache mechanism. For backward compatibility the img-tags will still receive long-term support.
normal:
{{ lib.svgimg('', 'light_light', 'icon0') }}
<img class="icon" src="{{ icon0 }}light_light.svg" />
<img class="icon" src="{{ icon0 }}light_light.png" />
highlighted:
{{ lib.svgimg('', 'light_light', 'icon1') }}
{{ lib.svgimg('', 'light_light', '', 'fill:red; stroke:red;') }}
<img class="icon icon1" src="{{ icon0 }}light_light.svg" />
<img class="icon" src="{{ icon1 }}light_light.png" />
Examples
Icons located in "icons/ws/"
Important: These images are available as .svg-image only. By default smartVisu does not come with .png-images.
control_arrow_down_left.svg
control_arrow_down_right.svg
control_arrow_downward.svg
control_arrow_left_right.svg
control_arrow_leftward.svg
control_arrow_rightward.svg
control_arrow_turn_left_right.svg
control_arrow_turn_left.svg
control_arrow_turn_right.svg
control_arrow_up_down.svg
control_arrow_up_left.svg
control_arrow_up_right.svg
control_building_2_s_all.svg
control_building_2_s_dg.svg
control_building_2_s_eg.svg
control_building_2_s_int_all.svg
control_building_2_s_int_dg.svg
control_building_2_s_int_eg.svg
control_building_2_s_int_kg.svg
control_building_2_s_kg.svg
control_building_control.svg
control_building_edg_all.svg
control_building_edg_dg.svg
control_building_edg_eg.svg
control_building_edg_int_all.svg
control_building_edg_int_dg.svg
control_building_edg_int_eg.svg
control_building_edg_int_kg.svg
control_building_edg_kg.svg
control_building_empty.svg
control_building_filled.svg
control_building_flat_filled.svg
control_building_flat_okg_all.svg
control_building_flat_okg_eg.svg
control_building_flat_okg_og.svg
control_building_flat_s_filled.svg
control_building_flat_s_mkg_all.svg
control_building_flat_s_mkg_eg.svg
control_building_flat_s_mkg_kg.svg
control_building_flat_s_mkg_og.svg
control_building_flat_s_mkg.svg
control_building_flat_s_okg_all.svg
control_building_flat_s_okg_eg.svg
control_building_flat_s_okg_og.svg
control_building_flat_s.svg
control_building_flat.svg
control_building_int_all.svg
control_building_int_dg.svg
control_building_int_eg.svg
control_building_int_kg.svg
control_building_int_og.svg
control_building_modern_s_2og_all.svg
control_building_modern_s_2og_dg.svg
control_building_modern_s_2og_eg.svg
control_building_modern_s_2og_int_all.svg
control_building_modern_s_2og_int_dg.svg
control_building_modern_s_2og_int_eg.svg
control_building_modern_s_2og_int_kg.svg
control_building_modern_s_2og_int_og1.svg
control_building_modern_s_2og_int_og2.svg
control_building_modern_s_2og_kg.svg
control_building_modern_s_2og_og1.svg
control_building_modern_s_2og_og2.svg
control_building_modern_s_all.svg
control_building_modern_s_dg.svg
control_building_modern_s_eg.svg
control_building_modern_s_int_all.svg
control_building_modern_s_int_dg.svg
control_building_modern_s_int_eg.svg
control_building_modern_s_int_kg.svg
control_building_modern_s_int_og.svg
control_building_modern_s_kg.svg
control_building_modern_s_og.svg
control_building_modern_s_okg_all.svg
control_building_modern_s_okg_dg.svg
control_building_modern_s_okg_eg.svg
control_building_modern_s_okg_int_all.svg
control_building_modern_s_okg_int_dg.svg
control_building_modern_s_okg_int_eg.svg
control_building_modern_s_okg_int_og.svg
control_building_modern_s_okg_og.svg
control_building_modern02_okg_all.svg
control_building_modern02_okg_dg.svg
control_building_modern02_okg_eg.svg
control_building_modern02_okg_int_all.svg
control_building_modern02_okg_int_dg.svg
control_building_modern02_okg_int_eg.svg
control_building_modern02_okg_int_og.svg
control_building_modern02_okg_og.svg
control_building_outside.svg
control_building_s_all.svg
control_building_s_dg.svg
control_building_s_eg.svg
control_building_s_int_all.svg
control_building_s_int_dg.svg
control_building_s_int_eg.svg
control_building_s_int_kg.svg
control_building_s_int_og.svg
control_building_s_kg.svg
control_building_s_og.svg
control_building_s_okg_all.svg
control_building_s_okg_dg.svg
control_building_s_okg_eg.svg
control_building_s_okg_int_all.svg
control_building_s_okg_int_dg.svg
control_building_s_okg_int_eg.svg
control_building_s_okg_int_og.svg
control_building_s_okg_og.svg
control_centr_arrow_down_left.svg
control_centr_arrow_down_right.svg
control_centr_arrow_down.svg
control_centr_arrow_left.svg
control_centr_arrow_right.svg
control_centr_arrow_up_left.svg
control_centr_arrow_up_right.svg
control_centr_arrow_up.svg
control_circuit_breaker_off.svg
control_circuit_breaker_on.svg
control_fault_current_circuit_breaker_off.svg
control_fault_current_circuit_breaker_on.svg
control_outside_on_off.svg
control_relay_3_close.svg
fts_blade_arc_automatic.svg
fts_blade_arc_close_00.svg
fts_blade_arc_close_100.svg
fts_blade_arc_close_50.svg
fts_blade_s_automatic.svg
fts_blade_z_automatic.svg
fts_door_slide_2w_open_l.svg
fts_door_slide_2w_open_lr.svg
fts_door_slide_2w_open_r.svg
fts_door_slide_open_m.svg
fts_entrance_boom closed.svg
fts_entrance_boom open.svg
fts_shutter_attention.svg
fts_shutter_automatic.svg
fts_shutter_vert_automatic.svg
fts_shutter_vert_down.svg
fts_shutter_vert_manual.svg
fts_sliding_gate_closed.svg
fts_sliding_gate_l_closed.svg
fts_sliding_gate_l_open.svg
fts_sliding_gate_open.svg
fts_umbrella_offset_closed.svg
fts_umbrella_offset_open.svg
fts_window_2w_open_l_tilt_r.svg
fts_window_2w_open_lr.svg
fts_window_2w_tilt_l_open_r.svg
fts_window_2w_tilt_lr.svg
fts_window_louvre_open.svg
fts_window_roof_open_1.svg
fts_window_roof_open_2.svg
fts_window_roof_shutter_10.svg
fts_window_roof_shutter_100.svg
fts_window_roof_shutter_20.svg
fts_window_roof_shutter_30.svg
fts_window_roof_shutter_40.svg
fts_window_roof_shutter_50.svg
fts_window_roof_shutter_60.svg
fts_window_roof_shutter_70.svg
fts_window_roof_shutter_80.svg
fts_window_roof_shutter_90.svg
fts_window_roof_shutter.svg
fts_yard_gate_2w_open.svg
it_satellite_dish_heating.svg
light_ceiling_infrared.svg
light_fountain_indoor.svg
light_mirrored_wardrobe.svg
light_pendant_light_round.svg
light_television_backlight.svg
light_x-mas_candle_arch.svg
measure_photovoltaic_inst.svg
measure_radioactivity.svg
message_bell_door_disabled.svg
message_garbage_collection.svg
message_garbage_recycling_sack.svg
message_light_barrier_open.svg
message_light_barrier.svg
message_light_intensity.svg
message_presence_active.svg
message_presence_disabled.svg
message_presence_geo_active.svg
message_presence_geo_inactive.svg
message_presence_inactive.svg
message_socket_ch_on_off.svg
message_socket_on_off.svg
message_street_sweeper.svg
message_tendency_downward.svg
message_tendency_steady.svg
message_tendency_upward.svg
phone_remote_trans_disabled.svg
presence_shutoffdelay.svg
sani_buffer_temp_down.svg
sani_central_vacuum_cleaner_dust_cont.svg
sani_central_vacuum_cleaner_filter.svg
sani_central_vacuum_cleaner.svg
sani_cooling_automatic.svg
sani_domestic_waterworks.svg
sani_earth_source_heat_pump.svg
sani_heating_automatic.svg
sani_irrigation_automatic.svg
sani_irrigation_manual.svg
sani_irrigation_pop_up_off.svg
sani_irrigation_pop_up_on.svg
sani_jung_rtr_comfort.svg
sani_jung_rtr_standby.svg
sani_pool_filter_pump.svg
sani_water_softening_unit.svg
scene_coffee_maker_automatic.svg
scene_cooking_alternat.svg
scene_dressing_room_alternat.svg
scene_fountain_indoor.svg
scene_laundry_room_fem.svg
scene_making_love_clean.svg
scene_projector_closed_on_off.svg
scene_projector_closed.svg
scene_projector_open_on_off.svg
scene_robo_lawnmower_active.svg
scene_robo_lawnmower_attention.svg
scene_robo_lawnmower_charging.svg
scene_robo_lawnmower_paused.svg
scene_robo_vac_cleaner_active.svg
scene_robo_vac_cleaner_attention.svg
scene_robo_vac_cleaner_charging.svg
scene_robo_vac_cleaner_paused.svg
scene_robo_vac_cleaner.svg
scene_sleeping_alternat.svg
scene_sleeping_twin_0_0.svg
scene_sleeping_twin_0_1.svg
scene_sleeping_twin_1_0.svg
scene_sleeping_twin_1_1.svg
scene_toilet_alternat.svg
scene_washing_machine.svg
TEST
secur_alarm_test.svg
secur_fingerprint_reader.svg
secur_frost_protection.svg
secur_heat_protection.svg
status_presence_simulation_rec.svg
status_presence_simulation_run.svg
status_presence_simulation.svg
temp_temperature_calculated.svg
temp_temperature_setknob.svg
text_exclamation_mark.svg
time_alarm_clock_alarm_off.svg
time_alarm_clock_alarm_on.svg
time_alarm_clock_snooze.svg
vent_low_pressure_protection_unit.svg
vent_low_pressure_warning.svg
vent_ventilation_control.svg
vent_ventilation_level_0.svg
vent_ventilation_level_1.svg
vent_ventilation_level_2.svg
vent_ventilation_level_3.svg
vent_ventilation_level_automatic.svg
vent_ventilation_level_manual_m.svg
weather_barometric_pressure.svg
weather_directions_no.svg
weather_directions_nw.svg
weather_directions_so.svg
weather_directions_sw.svg
weather_humidity_soil.svg
weather_moon_phases_1_new.svg
weather_moon_phases_2.svg
weather_moon_phases_3_half.svg
weather_moon_phases_4.svg
weather_moon_phases_5_full.svg
weather_moon_phases_6.svg
weather_moon_phases_7_half.svg
weather_moon_phases_8.svg
weather_snow_ice_warning.svg
weather_station_generic.svg
weather_station_quadra.svg
weather_wind_directions_e.svg
weather_wind_directions_n.svg
weather_wind_directions_ne.svg
weather_wind_directions_nw.svg
weather_wind_directions_s.svg
weather_wind_directions_se.svg
weather_wind_directions_sw.svg
weather_wind_directions_w.svg
weather_wind_speed_bft.svg
weather_wind_speed_ms.svg