LogicMachine Forum
New widgets - Printable Version

+- LogicMachine Forum (https://forum.logicmachine.net)
+-- Forum: LogicMachine eco-system (https://forum.logicmachine.net/forumdisplay.php?fid=1)
+--- Forum: Visu beta testing (https://forum.logicmachine.net/forumdisplay.php?fid=24)
+--- Thread: New widgets (/showthread.php?tid=5875)

Pages: 1 2


New widgets - Daniel - 05.02.2025

It is clear to us that we must add much more widgets.
Please describe here any widget you would us to create. Ideally some mock-up image with description of each element, datatype and logic behind if any.


RE: New widgets - AlexLV - 05.02.2025

Hi,

Some of my ideas - even more changeable parameters just in widgets. For every widget type they will be more or less the same:

1. Background and/or text flashing - more attention to value status in case of alarm;
2. Change value color and background color depending on value (5 to 10 variants) (temperature value or other as example);
Of course this can be done some other ways, but as I see we plan to create more intuitive possibilities, such way will be much easier for novice or not too experienced users..
3. Communication status. One more group in widget. Idea - status of this group can change border color of widget and change many other values in widget as example to zero or "nan" if communication is lost. (I use Modbus profiles where such status exists..)
4. May be just in visu add value conversion and unit/suffix change (for example, I have consumption in watts - 140230W, but better to show 140,23kW - so we need value divide to 1000 (here we need to provide selection of multiplier in both directions - 1,10,100,1000,10000.., and 0,1, 0,01, 0,001 etc.., and how many digits after comma) and change unit. Group economy and much faster to built visu if such conversion is needed..
5. Automation widget. Like custom widget, but with logic "If --> When --> Then -->" Should be available for end user (configurable) with status when logic is done (Change widget color/background/border? "If" - device status change, and/or specific time of the day, "When" - period should be added, "Then" - run device, activate scenarios, send notification.. Such or analog variant automation is asked by many end-users, allows more flexibility and no engineer is needed.. Just idea.
6. Log and/or alert widget. Also good idea for end-users to see some logs and/or alerts. Of course, I know how do it by other way more or less, but such widgets will be just wonderful if it will be available. Here can be good if possible to put mark for alert repetition (constantly or just one time for one type of alert)..
7. Predefined visualizations. Would be good if something will be ready just "out from the box". I mean most common areas/rooms/widgets ready. Just add to groups and statuses.. Again much easier to start with.. I am not a big designer, and using many ideas from the forum. For future good to share ready visualizations with styles, icons etc..
8. Manual time/date synchronization widget. Just for manual date/time changing for controller and/or KNX devices. Many times discussed on forum (ntp, scripts, etc.. we all know) but if customer can do it by themselves from visu (with pin maybe) again more convenient to end user, also in case of any accidents with electricity, etc..
9. Background images change possibilities added to plan/floor config (I am interested mostly for images). What for - seasons of the year, weather condition, alarms just in background.

So just above my view what we need, by my opinion, such possibilities will add more functionality and do LM products more and more interesting... Don't hit me too hard Wink

BR,

Alexander


RE: New widgets - Daniel - 06.02.2025

Thank for constructive feedback.

1. We will work on this when new Alert system will be created.
2. Seems you didn't discover Additional values/icons.
3. You can define default value in modbus profile if coil/register cannot be read.
4. Will be done
5. We are planing something like that but in a later stage.
6. See point 1
7. In later stage we are planning to use semantics to auto generate visu. It can be taken from ETS.
8. With small script it already can be done.
9. In visu you can easily stuck many objects above each other and re-arrange them.  Normal object can have just background and with combination of additional values/icons this can be done already. In other words for dynamic background use normal object.


RE: New widgets - CristianAgata - 06.02.2025

Hi Daniel,
I don't remember if someone else said. I think that it is important give at the users the possibility to import and export widgets.
Best regards Cristian


RE: New widgets - Rune - 07.02.2025

The most important in my opinion:

Light widget. Small icon with toggle on/off or that opens in a popup. Popup should have ON/OFF and slider in percent with percent status.

Setpoint widget. Small icon that show setpoint, actual value and control value (either ON/OFF or percent). Opens in pop up where you can change the setpoint. In next level, settings for chronothermostat or calender could be edited from this popup.


RE: New widgets - AlexLV - 12.02.2025

Hi, just today I thinking about what else can be added to LM for more convenient work - some more ideas:

1. In LM in "objects" should be added one more column with name "device". And should be added possibility to "clone" all groups of one 'device' to another addresses with names data types, scripts (may be with possibility to select what to clone??). Would be good if we can export and import "device" groups between LM - not needed to export/import whole projects. Why - if I have many of the same type devices, I will create just one with required groups, etc. and than copy all groups regarding device many times as needed. Also could be interesting to add to 'device' cell widget name and/or number. In such case if we need to clone as example custom widget - we can set mark clone with groups, widget will be cloned with all required data. We will have new class "device", later more options can be added. Needed groups can be created automatically with new widgets, etc..
2. Good to have possibility in "objects" just select needed groups with all parameters (with Shift key as example) and copy started from new shown address. Export/import between LM could be also useful.
3. May be add some more colors and select them when group will be active in ''objects''. Will be more easy control required groups changes during script/work configuration..

BR,
Alex


RE: New widgets - Fahd - 19.02.2025

Alarm Widget : A widget that can handle multiple 1 bit objects and only show the ones in alarm. It should also have an object to acknowledge active alarms.


RE: New widgets - Frank68 - 21.03.2025

Is it possible to make widgets snap to the grid, and define a custom grid?
thank's


RE: New widgets - Daniel - 21.03.2025

Snap to grid, yes - see bottom left Lock. Custom grid no.


RE: New widgets - maxmp - 22.03.2025

Currently i use Home Assistant for visualization only because it fits my needs at 100%. It's responsive and has tiles (see the attached screenshots).
Therefore:

1. Can we have HTML widgets in the new visu to draw the tiles ?
2. Is it possible for the visu to be responsive ? It should look well on all devices like in HA.

Thanks.


RE: New widgets - admin - 24.03.2025

1. HTML widget can be added.

2. Plan view is scaled automatically to fit inside the available space. In tile view the number of horizontal tiles that is available for widgets is adjusted automatically based on the screen width. Mosaic has a option to make certain widgets smaller on smaller screens but this makes the layout unpredictable so we've decided not to include this feature.


RE: New widgets - Chandrias - 30.03.2025

Can we create a widget to preview water quantity?

Ideally, it should be a water tank icon (add option to be user defined if possible) and a value below that.

Water tank icon should get a 05.001 scale object (Percentage value) and appear filled accordingly,
while for the Value, I would suggest the following:
Value = Percentage * Multiplier
- Multiplier (number with 2 decimals)
- Units (string)


RE: New widgets - Chandrias - 23.05.2025

I would like to see a widget that will present some values as a graph


RE: New widgets - Chandrias - 25.05.2025

I have created a small custom widget for AC control, as seen in the attached picture.
I would like to have on all widgets contained in my custom widget an Enable/Disable
object, so I would link it to the On/Off object and prevent control while the unit is Off.
Additionally, on the mode widget (I used the existing Value Select), i would like the
text color to follow the selected mode color)


RE: New widgets - admin - 26.05.2025

You can specify text color for each entry in Value select widget. Display mode must be either "Value" or "Icon and value".

Disabling certain widgets can be done via Custom JS. I'll post an example later.


RE: New widgets - admin - 28.05.2025

Example of how to enable/disable certain elements depending on a group address value.

Add enable-by-0_0_1 to Appearance - Additional classes for relevant elements.

CSS:
Code:
.user-view .enable-by-0_0_1 {
  pointer-events: none;
  opacity: 0.5;
}

.on-0_0_1 .user-view .enable-by-0_0_1 {
  pointer-events: all;
  opacity: 1;
}

JS:
Code:
localbus.listen('object', '0/0/1', (value) => {
  document.body.classList.toggle('on-0_0_1', value)
})



RE: New widgets - Chandrias - 29.05.2025

(28.05.2025, 10:42)admin Wrote: Example of how to enable/disable certain elements depending on a group address value.

Add enable-by-0_0_1 to Appearance - Additional classes for relevant elements.

CSS:
Code:
.user-view .enable-by-0_0_1 {
  pointer-events: none;
  opacity: 0.5;
}

.on-0_0_1 .user-view .enable-by-0_0_1 {
  pointer-events: all;
  opacity: 1;
}

JS:
Code:
localbus.listen('object', '0/0/1', (value) => {
  document.body.classList.toggle('on-0_0_1', value)
})

I am not familiar with this coding, so sorry for my inorance.
Will that act as Enable/Disable on the objects used?
Can we also change the color of the objects? (i.e. grey for disabled, red for enabled)


RE: New widgets - Daniel - 29.05.2025

Each object with the Additional class added enable-by-0_0_1 will be disabled when object 0/0/1 (first line in JS code) will be 0 and enabled when 1. You can change this group as needed. You have the opacity option in the CSS code so it will be half visible when disabled. To see result see User view, not admin.


RE: New widgets - Chandrias - 29.05.2025

(29.05.2025, 09:48)Daniel Wrote: Each object with the Additional class added  enable-by-0_0_1 will be disabled when object 0/0/1 (first line in JS code) will be 0 and enabled when 1. You can change this group as needed.  You have the opacity option in the CSS code so it will be half visible when disabled.  To see result see User view, not admin.

I tried that with Group Address 3/0/4. Please check the two videos.
When I have the suggested code, I get a strange flickering behavior on the toggle switch,
while without the code I don't.
Also I noticed that LM sends the value more than once in the bus. Is that normal?

(29.05.2025, 11:35)Chandrias Wrote:
(29.05.2025, 09:48)Daniel Wrote: Each object with the Additional class added  enable-by-0_0_1 will be disabled when object 0/0/1 (first line in JS code) will be 0 and enabled when 1. You can change this group as needed.  You have the opacity option in the CSS code so it will be half visible when disabled.  To see result see User view, not admin.

I tried that with Group Address 3/0/4. Please check the two videos.
When I have the suggested code, I get a strange flickering behavior on the toggle switch,
while without the code I don't.
Also I noticed that LM sends the value more than once in the bus. Is that normal?
https://drive.google.com/file/d/1UVLbJVRcWKgqNiszuLlUiHOPWUwtHWdG/view?usp=sharing
https://drive.google.com/file/d/1FAEug1GpNyu609EznQMfhaDNH_1uOpwR/view?usp=sharing


RE: New widgets - Daniel - 29.05.2025

No access to the files.