Jump to content

Mapped Value Error


Recommended Posts

Posted

What does this mean?

image.png.ddb42097a330956af2b00824673dea52.png

Trying to set up to have a different icon depending on the state of the node.  The display node is a PG3x node tracking the status of an output on my webcontrol board.  When I click the icon, it runs a program that sets the state of several webcontrol outputs and displays the value of one particular output.

image.png.1729f3d1e684b4b7f8d0dd680edf0dff.png

Posted

The error is likely due to missing definitions in the node server, or updated values which have not been synchronized to UDM. 

First try synchronization.  If that does not fix the issue what is the Node Server?

Posted

I sync'd already.

It is webcontrol832 on PG3x.  I had it sync'd to ioguys nodelink node for the webcontrol board but had to switch since that is not supported anymore.  It worked fine with that node server.

Posted

Thanks, this is not an open git project so I can't see the definition files.  So will need a few requests to see if the issue is with the node server or UDM.

First post the response to the following and let me know the node server's slot

http://ipaddress:8080/rest/profiles/family/10/files

 

 

Posted
13 minutes ago, Javi said:

Thanks, this is not an open git project so I can't see the definition files.  So will need a few requests to see if the issue is with the node server or UDM.

First post the response to the following and let me know the node server's slot

http://ipaddress:8080/rest/profiles/family/10/files

 

 

<profiles>
<profile family="10" id="3">
<files dir="editor">
<file name="portedit.xml"/>
<file name="PORTEDIT.XML"/>
</files>
<files dir="nls">
<file name="EN_US.TXT"/>
<file name="en_us.txt"/>
</files>
<files dir="nodedef">
<file name="portndef.xml"/>
<file name="PORTNDEF.XML"/>
</files>
</profile>
<profile family="10" id="4">
<files dir="nodedef">
<file name="nodedefs.xml"/>
</files>
<files dir="editor">
<file name="editors.xml"/>
</files>
<files dir="nls">
<file name="en_us.txt"/>
</files>
</profile>
<profile family="10" id="5">
<files dir="editor">
<file name="custom.xml"/>
<file name="editors.xml"/>
</files>
<files dir="nodedef">
<file name="nodedefs.xml"/>
<file name="custom.xml"/>
</files>
<files dir="nls">
<file name="en_us.txt"/>
</files>
</profile>
<profile family="10" id="6">
<files dir="nodedef">
<file name="nodedefs.xml"/>
</files>
<files dir="nls">
<file name="en_us.txt"/>
</files>
<files dir="editor">
<file name="editors.xml"/>
</files>
</profile>
<profile family="10" id="7">
<files dir="editor">
<file name="editors.xml"/>
</files>
<files dir="nls">
<file name="en_us.txt"/>
</files>
<files dir="nodedef">
<file name="nodedefs.xml"/>
</files>
</profile>
<profile family="10" id="8">
<files dir="nodedef">
<file name="nodedefs.xml"/>
</files>
<files dir="editor">
<file name="editors.xml"/>
</files>
<files dir="nls">
<file name="en_us.txt"/>
</files>
</profile>
<profile family="10" id="9">
<files dir="nodedef">
<file name="nodedef.xml"/>
</files>
<files dir="editor">
<file name="editors.xml"/>
</files>
<files dir="nls">
<file name="en_us.txt"/>
</files>
</profile>
<profile family="10" id="10">
<files dir="editor">
<file name="editors.xml"/>
</files>
<files dir="nodedef">
<file name="nodedefs.xml"/>
</files>
<files dir="nls">
<file name="en_us.txt"/>
</files>
</profile>
<profile family="10" id="11">
<files dir="editor">
<file name="udmobile.xml"/>
<file name="editors.xml"/>
<file name="custom.xml"/>
</files>
<files dir="nls">
<file name="en_us.txt"/>
</files>
<files dir="nodedef">
<file name="nodedefs.xml"/>
</files>
</profile>
<profile family="10" id="12">
<files dir="editor">
<file name="editors.xml"/>
</files>
<files dir="nls">
<file name="en_us.txt"/>
</files>
<files dir="nodedef">
<file name="nodedefs.xml"/>
</files>
</profile>
<profile family="10" id="14">
<files dir="editor">
<file name="editors.xml"/>
</files>
<files dir="nodedef">
<file name="nodedefs.xml"/>
</files>
<files dir="nls">
<file name="en_us.txt"/>
</files>
</profile>
<profile family="10" id="15">
<files dir="nls">
<file name="en_us.txt"/>
</files>
<files dir="editor">
<file name="editors.xml"/>
</files>
<files dir="nodedef">
<file name="nodedefs.xml"/>
</files>
</profile>
<profile family="10" id="16">
<files dir="nodedef">
<file name="nodedefs.xml"/>
</files>
<files dir="editor">
<file name="custom.xml"/>
<file name="editors.xml"/>
</files>
<files dir="nls">
<file name="en_us.txt"/>
</files>
</profile>
<profile family="10" id="18">
<files dir="nodedef">
<file name="nodedefs.xml"/>
</files>
<files dir="editor">
<file name="editors.xml"/>
</files>
<files dir="nls">
<file name="en_us.txt"/>
</files>
</profile>
<profile family="10" id="19">
<files dir="nls">
<file name="en_us.txt"/>
</files>
<files dir="editor">
<file name="editors.xml"/>
</files>
<files dir="nodedef">
<file name="nodedefs.xml"/>
</files>
</profile>
<profile family="10" id="20">
<files dir="editor">
<file name="editors.xml"/>
</files>
<files dir="nodedef">
<file name="devices.xml"/>
<file name="nodedefs.xml"/>
</files>
<files dir="nls">
<file name="en_us.txt"/>
</files>
</profile>
<profile family="10" id="21">
<files dir="nls">
<file name="en_us.txt"/>
</files>
<files dir="editor">
<file name="editors.xml"/>
</files>
<files dir="nodedef">
<file name="nodedefs.xml"/>
</files>
</profile>
<profile family="10" id="23">
<files dir="nls">
<file name="en_us.txt"/>
</files>
<files dir="nodedef">
<file name="nodedef.xml"/>
</files>
<files dir="editor">
<file name="editors.xml"/>
</files>
</profile>
<profile family="10" id="24">
<files dir="nls">
<file name="en_us.txt"/>
</files>
<files dir="nodedef">
<file name="nodedefs.xml"/>
</files>
<files dir="editor">
<file name="editors.xml"/>
</files>
</profile>
</profiles>

 

Posted (edited)
On 2/3/2025 at 9:33 AM, Javi said:

What number slot does the node server reside?

I have two webcontrol boards and you can only do one of them per node, so the node is installed twice, slot 6 and 8.  Slot 6 is the one I am customizing for ud mobile.

image.png.842101d6dba75a083bc9aaec33812864.png

Edited by apostolakisl
Posted
9 hours ago, Javi said:

Hi @apostolakisl, apologies for delay.

Please provide response to 

http://ipaddress:8080/rest/profiles/family/10/profile/6/download/editor/editors.xml

This XML file does not appear to have any style information associated with it. The document tree is shown below.
<editors>
<!-- Custom Status (CST) Editor -->
<editor id="cst">
<range uom="25" subset="0,1,2" nls="CST"/>
<!-- Handles the status of the node server -->
</editor>
<!-- Temperature Status Editor (CST1) -->
<editor id="cst1">
<range uom="25" subset="0,1" nls="CST1"/>
<!-- Status: OK (1) / Not OK (0) -->
</editor>
<!-- Future Status Editor (CST2) -->
<editor id="cst2">
<range uom="25" subset="0" nls="CST2"/>
<!-- Future, for future usage -->
</editor>
<!-- Heartbeat Editor (Updated UOM to 25) -->
<editor id="hb">
<range uom="25" min="-1" max="2" prec="0"/>
<!-- Heartbeat (-1, 0, 1) -->
</editor>
<!-- Updated Temperature Editor to handle both Fahrenheit and Celsius -->
<editor id="tempf">
<range uom="17" min="-100" max="200" prec="1"/>
<!-- Temperature (Fahrenheit) -->
<range uom="4" min="-100" max="200" prec="1"/>
</editor>
<!-- Generic Text Editor (For IPs, Variable Text, etc.) -->
<editor id="text">
<range uom="56" min="0" max="100000" prec="2"/>
<!-- Generic text fields, like names or numbers -->
</editor>
<editor id="ONOFF">
<range uom="78"/>
</editor>
</editors>
Posted

Thanks, it is an error in the Node Server. Range is missing min/max or subset values.  The node server developer will need to correct this.

 

<editor id="ONOFF">
		<range uom="78"/>
	</editor>

 

Posted (edited)

 

@Javi

The node server creator fixed the min max issue. I get no error message, but it doesn't work. I updated node and synced UD mobile. I created a mapped value, but nothing happens to the icon when the output turns on. 

 

Screenshot_20250217_071748_UD Mobile.jpg

Screenshot_20250217_072147_UD Mobile.jpg

Edited by apostolakisl
Posted

Does the Tile's Status show "On"?

Edit: 

Notes:

Based on the image of percentage I assume the Editor is incorrect. The editor only supports 0 and 100.

So if there are any values in between the Node Server developer needs to use the correct editor to show all possible values to the user.  

Or

The user needs to change the Mapping to >= 1

Posted (edited)
1 hour ago, Javi said:

Does the Tile's Status show "On"?

Edit: 

Notes:

Based on the image of percentage I assume the Editor is incorrect. The editor only supports 0 and 100.

So if there are any values in between the Node Server developer needs to use the correct editor to show all possible values to the user.  

Or

The user needs to change the Mapping to >= 1

Yes, fountain low is the one I'm talking about here. But all the others are the same. And this is an output that is either on or off.  There are no in between values.  The icon name "water percnentage" was just a random icon i clicked on for testing.  There is no percentage here, it is either on or off.  That particular icon is just set to "default".  But some of those other custom icons are wrong as well.  And they switch around from one thing to another without changing any settings.

Screenshot_20250217_092103_UD Mobile.jpg

 

EDIT: And I should note that these icons are generally not correct.  Like above, the "pool lights" icon show a waterfall instead of a lightbulb which it is supposed to show.  I just opened the screen again, it showed the fountain and then after a few seconds it changed to a light bulb.  And then i opened it a 3rd time, it kept showing the fountain, then I clicked on the edit button and it switched to a light bulb.

EDIT 2: I also should note that the icon you see for fountain off is a custom url that is not what is programmed there. And when I open this screen sometimes fountain low also shows that same icon, then it switches to the icon you see there, which is what it is currently set to.

Edited by apostolakisl
Posted

Thanks.  I see you have multiple favorites screens.  Does this only happen on this screen or screens which have a a tile with an icon populated by a URL?

Posted (edited)
9 minutes ago, Javi said:

Thanks.  I see you have multiple favorites screens.  Does this only happen on this screen or screens which have a a tile with an icon populated by a URL?

This is the only page I am using custom url icons on.  There isn't anything that looks like a fountain in the standard icons, so I went to a custom.  I am using the custom mapping feature in lots of other places to have the standard icons change color when a value hits some number.  Like temp turns red above 100, blue below 32 and green otherwise type stuff.  I have not noticed any issues there.  But these are all using the standard icons from the menu, I am only customizing the color for various states.

I don't know if having these things grouped in a folder does something to other items in the folder.  Saying this because the pool lights icon is currently and has always been the default icon (light bulb), and yet it is, at times, showing the custom url icon.  I have that icon (the standard light bulb) set to turn red when the light is on, but otherwise it is "stock".

FYI, the three icons at the bottom, the two temps and the light bulb, I don't recall them ever doing anything funky.

Edited by apostolakisl
Posted (edited)

 @Javi just tried creating a second favorite in a different folder doing the same thing.  To my surprise, when I went to the advanced status config, the settings I created for the other favorite were already there.  And when I changed the settings, the changes also showed up in the other one.  Then I deleted (remove from favorites) both of them and recreated it.  Again, the advanced config stuff was already there.  And it also still doesn't work.

It seem like UD mobile is tapping into conflicting or duplicate data bases or something.

Edited by apostolakisl
Posted (edited)

I just tried deleting the app, reinstalling, and syncing with ISY, did not restore the backup.  Created the favorite from scratch and it still doesn't work.  Of note, it crashed UD mobile when I saved it and I had to reopen.  I went ahead and restored the backup.

Edited by apostolakisl
Posted (edited)

Here is what I have discovered.  The node must be in the state that you are setting the advanced config for, while you are setting it.

In other words, if you want a different icon while it is on, you must first turn it on, then while it is on, set the icon in the advanced config section.  I am quite certain I did not do this the first time I programmed it when I was using Nodelink.  I do not know whether this is something that has changed in UD mobile or if it is something to do with the node.

Still the issue of the wrong icons showing up either for a few seconds or until I close and reopen the screen.  Like just now, the pool lights are on, but instead of getting a red light bulb icon, I got a blocked out red square.  I closed the favorites page, reopened it, and now it is a red light bulb.

Edit. To be clear, the wrong icons showing up was happening since I was using nodelink. Not new with pg3x node. 

Edited by apostolakisl
Posted

I think it is related to downloaded icons.  The views are "Recycled" (an app thing to reuse views and save resources)  and looking at the code it does not appear that the app checks if the download is still valid, it was at one point but must have been removed during an update. When color is changed on a downloaded icon (which does not have an alpha layer) then it will cause the entire icon (i.e. red square) to be filled with the color, so that explains the red square.

As for there already being value. Are these all for the same Node?  Custom Mapped values are related to a Node Property not a Favorite.  So if a Custom Mapped value is added it will be on both the Home tab an the favorites tab.

Posted
3 hours ago, Javi said:

I think it is related to downloaded icons.  The views are "Recycled" (an app thing to reuse views and save resources)  and looking at the code it does not appear that the app checks if the download is still valid, it was at one point but must have been removed during an update. When color is changed on a downloaded icon (which does not have an alpha layer) then it will cause the entire icon (i.e. red square) to be filled with the color, so that explains the red square.

As for there already being value. Are these all for the same Node?  Custom Mapped values are related to a Node Property not a Favorite.  So if a Custom Mapped value is added it will be on both the Home tab an the favorites tab.

Except the red square is a UD provided light bulb icon.  We are talking about the upper left icon in my pool folder that I have screen shotted above.  Perhaps it is because it erroneously put a custom icon in the spot and then colored it red.  And sometimes it does erroneously put the custom icon in that spot, usually just for a few seconds before correcting itself. 

And I only see this swapping around of icons in this one favorites folder.  It is the only folder I have used custom icons.  Is something going on where all the icons in the same folder can get their icons swapped (temporarily)?  I never see icons in other folders acquire any of the custom icons used here or do anything else weird.

The creator of the node thinks he knows why I can only program the advanced mapping attributes to an icon while the node is in the designated state.  He is going to update later today.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...