spy0r
(Stefan)
September 15, 2016, 10:45am
1
Hi,
as i read in the other thread, there are no possibilities at the moment to deal with mappings/transformations right in the dashboard, without creating a separate item and a rule to fill up that separate item.
Is there a chance to implement that into HAPpanel? Something like using “MAP(weather_de.map):%s” instead of just %s or nothing in the appropriate field while creating a widget.
Cheers
MikeD
(Mike Dilger)
September 15, 2016, 11:07am
2
I have requested a new widget as per the following
opened 10:38PM - 13 Sep 16 UTC
closed 12:36PM - 13 Nov 16 UTC
widget
Currently I am using the dummy widget to show status of various items for exampl… e roller blinds and window actuators.
The issue I have is that I am getting different status data from openHAB 2 . In the case of my Windows actuators, I initially get "DOWN" when I send an "DOWN" command, however after a refresh it goes to "100".
I know that I could do this by rules in openHAB 2 , but it would be a really nice feature to have an in built mapping capability in the widget for 2 status conditions where you could test for 2 'openHAB' conditions per status.
It would also be good to be able to define a custom status message, therefore 3 text input fields per status condition would be needed.
For example.
**Status condition 1 - Windows Open**
**Condition 1:** DOWN **Condition 2**: 100 **Displayed Status:** Open
i.e. if the reported status from openHAB is either "DOWN" or "100" then the widget reports '"Open"
**Status condition 2 - Windows Closed**
**Condition 1:** UP **Condition 2:** 0 **Displayed Status:** Closed
i.e. if the reported status from openHAB is either "UP" or "0" then the widget reports "Closed"
In the case of my roller blinds I want to map "DOWN" and "100" to "Closed" and vice versa.
It would be great to have this flexibility at the widget level as I have 10 window actuators and 12 blind motors to control individually and these will also be under multiple groups for group control.
Taking this a little further it would be good if icons and colours were able to be changed for the 2 conditions, but this is not essential for my current needs.
##
If you like the idea or have ideas to improve on it then please comment.
jcid1
(Jay)
January 30, 2017, 10:46pm
3
Hi,
I do transforms this way since habpanel dont really support it natively..
<div ng-if="itemValue('Lower_LivingRoom_Motion_Sensor')=='OPEN'">
<span style="color: red; font-size: 8pt">MOTION!</span>
</div>
<div ng-if="itemValue('Lower_LivingRoom_Motion_Sensor')=='CLOSED'">
<span style="color: green; font-size: 8pt">NONE</span>
</div
works really well
zamzon
(mads m)
April 24, 2017, 6:09pm
4
Is there a way to get this code in to a dummy widget, and link it to a .map file ?