# Node-red not updating OpenHab items in IOS App

**URL:** <https://community.openhab.org/t/node-red-not-updating-openhab-items-in-ios-app/127671>\
**Category:** iOS App\
**Tags:** node-red1\
**Created:** [October 18, 2021, 6:47pm UTC](https://community.openhab.org/t/node-red-not-updating-openhab-items-in-ios-app/127671 "2021-10-18T18:47:04Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![Rubenv](https://community.openhab.org/letter_avatar_proxy/v4/letter/r/e9c0ed/32.png) [@Rubenv](https://community.openhab.org/u/Rubenv)\
**Post date:** [October 18, 2021, 6:47pm UTC](https://community.openhab.org/t/node-red-not-updating-openhab-items-in-ios-app/127671/1 "2021-10-18T18:47:04Z")

</div>

Hi  
Hope someone can lead me in the right direction, I have openhabian 3.1.0 and node-red also updated today.. I am using the updated OpenHab Palet in Nodered.

My issue is that an item gets updated from MQTT, then I do some work on it in Nodered and need to push it to OpenHab. The item does get reflected fine in OpenHab with new values, but nothing goes to the IOS App. The item is displayed but the value is blank.  
I used to use text config, but since V3 I configured all via web interface. Sitemap should be good, as all is reflected, just not updated!

Any advice is welcome, this is driving me up the wall.. I can read items from OpenHab items fine in NodeRed..

I did look around quite a bit, but could not find anything to help with the issue.

Thanks in advance!

---

<div class="post-metadata">

**Author:** ![Rubenv](https://community.openhab.org/letter_avatar_proxy/v4/letter/r/e9c0ed/32.png) [@Rubenv](https://community.openhab.org/u/Rubenv)\
**Post date:** [October 20, 2021, 10:32am UTC](https://community.openhab.org/t/node-red-not-updating-openhab-items-in-ios-app/127671/2 "2021-10-20T10:32:33Z")

</div>

Guys, any suggestions please?

---

<div class="post-metadata">

**Author:** ![rossko57](https://community.openhab.org/user_avatar/community.openhab.org/rossko57/32/70263_2.png) [@rossko57](https://community.openhab.org/u/rossko57)\
**Post date:** [October 20, 2021, 10:48am UTC](https://community.openhab.org/t/node-red-not-updating-openhab-items-in-ios-app/127671/3 "2021-10-20T10:48:18Z")

</div>

Divide and conquer.  
You seem concerned about Node-red, but …

> [@Rubenv](#):
>
> The item does get reflected fine in OpenHab with new values

If that is true, it has nothing to do with Node-red.  
How are you determining this, you can see the expected update in openHAB `events.log` perhaps?

If it comes down to IOS app, what version is involved here?

---

<div class="post-metadata">

**Author:** ![Rubenv](https://community.openhab.org/letter_avatar_proxy/v4/letter/r/e9c0ed/32.png) [@Rubenv](https://community.openhab.org/u/Rubenv)\
**Post date:** [October 20, 2021, 12:13pm UTC](https://community.openhab.org/t/node-red-not-updating-openhab-items-in-ios-app/127671/4 "2021-10-20T12:13:43Z")

</div>

Hi Rossko

Thanks for replying..

IOS App version is 2.4.36

Log says nothing funny:  
2021-10-20 14:11:01.631 [INFO] [openhab.event.ItemStateChangedEvent] - Item ‘GridVoltage’ changed from 231.3 to 231.5

2021-10-20 14:11:05.637 [INFO] [openhab.event.ItemStateChangedEvent] - Item ‘GridVoltage’ changed from 231.5 to 231.4

Web App:

 ![image](https://community-openhab-org.s3.dualstack.eu-central-1.amazonaws.com/original/3X/1/4/1469fe5c6420c7a735baf5c89e220b15f6223928.png)

IOS App:

 ![image](https://community-openhab-org.s3.dualstack.eu-central-1.amazonaws.com/original/3X/4/1/41c7f1714ca9444032e0e9d4cda8212dc042129e.png)

Thanks

---

<div class="post-metadata">

**Author:** ![rossko57](https://community.openhab.org/user_avatar/community.openhab.org/rossko57/32/70263_2.png) [@rossko57](https://community.openhab.org/u/rossko57)\
**Post date:** [October 20, 2021, 1:48pm UTC](https://community.openhab.org/t/node-red-not-updating-openhab-items-in-ios-app/127671/5 "2021-10-20T13:48:32Z")

</div>

So you’ve shown it’s nothing to do with node red, the mystery ‘web UI’ shows the value you expect.  
Assuming that is MainUI, it doesn’t use your sitemap, so the next area of interest for IOS app is your sitemap entries.

What type of Items are involved? There is a little trap for String types -

> [@Send a var value to a string item](https://community.openhab.org/t/send-a-var-value-to-a-string-item/119804):
>
> Hi all, I’m not sure if the correct place for my question is here or in the iOS App section of the forum. Sorry if I got it wrong. My system is: Raspberry Pi 4 with openhabian, OH3.0.1, iOS App version 2.4.20 I have a string item that I want to hold my public IP address to show in a sitemap. The check is triggered manually with a switch item The items definition: String Sys\_PublicIP "Systme Public IP [%s]" \<ip\> ["Point"] Switch Sys\_CheckPublicIP "System Public IP Check" …

---

<div class="post-metadata">

**Author:** ![Rubenv](https://community.openhab.org/letter_avatar_proxy/v4/letter/r/e9c0ed/32.png) [@Rubenv](https://community.openhab.org/u/Rubenv)\
**Post date:** [October 21, 2021, 7:55am UTC](https://community.openhab.org/t/node-red-not-updating-openhab-items-in-ios-app/127671/6 "2021-10-21T07:55:08Z")

</div>

Hi Rossko

Yes that is in the main UI, which tells me that the data is coming in fine from Node red. Below is the entries from node red and my sitemap.

 ![image](https://community-openhab-org.s3.dualstack.eu-central-1.amazonaws.com/original/3X/5/b/5b4b4a5c92b6a3725d3c047902093219933ccd7a.png)

and here is the config of the opehab node:

 ![image](https://community-openhab-org.s3.dualstack.eu-central-1.amazonaws.com/original/3X/9/5/9511104940779fff273858679d417d3e9797c1a5.png)

And here is the item and sitemap:

 ![image](https://community-openhab-org.s3.dualstack.eu-central-1.amazonaws.com/original/3X/4/0/400776e21b3c66444ef374433727b453ea592025.png)

 ![image](https://community-openhab-org.s3.dualstack.eu-central-1.amazonaws.com/original/3X/f/7/f700e146714c9a7a82b5030f23b80b6acdf2591d.png)

 ![image](https://community-openhab-org.s3.dualstack.eu-central-1.amazonaws.com/original/3X/d/9/d947e9109144b7395aff9e62d3116718858c1ace.png)

 ![image](https://community-openhab-org.s3.dualstack.eu-central-1.amazonaws.com/original/3X/0/c/0ce91b46d52c21388197e0f47ad04a35ccdc2edc.png)

Sorry for the lost of pics, but hopefully this helps you. let me know if there is anything else you require?  
And thanks for your time!

---

<div class="post-metadata">

**Author:** ![rossko57](https://community.openhab.org/user_avatar/community.openhab.org/rossko57/32/70263_2.png) [@rossko57](https://community.openhab.org/u/rossko57)\
**Post date:** [October 21, 2021, 9:52am UTC](https://community.openhab.org/t/node-red-not-updating-openhab-items-in-ios-app/127671/7 "2021-10-21T09:52:29Z")

</div>

I don’t care about any of the node red stuff.

The Item you are looking at is **GridVoltage** , it’s a Number type, it has state “230.2” - so far so good.

This Item does not appear on your sitemap at all.  
That’s okay, it appears to be a member of Group **Victron** and that does appear.  
So we’d expect to view GridVoltage when the Group is viewed, and sure enough we do. But the state is not visible in IOS viewer.

Try using BasicUI (which will use your sitemap), what do you get?

The thing about using Group in a sitemap is that the sitemap then has no control over presentation of individual member Items, you just get default style (Many people abandon it because you cannot even order the list of members, and end up listing them individually).

I would, as a test, add the Item individually to my sitemap, just with a Text widget will do.  
`Text item=GridVoltage label="Testing [%s]"`

In our case, using a Group widget means the Items default state presentation will be used. In old-style OH2 items that was the `"label [part]"`, and that style is retained in sitemaps if you use it.  
In OH3 it has moved to the Item metadata.  
It’s possible IOS is not getting a sensible default presentation. (That’s why I put the ['%s] part in the text widget)

---

<div class="post-metadata">

**Author:** ![Rubenv](https://community.openhab.org/letter_avatar_proxy/v4/letter/r/e9c0ed/32.png) [@Rubenv](https://community.openhab.org/u/Rubenv)\
**Post date:** [October 21, 2021, 10:10am UTC](https://community.openhab.org/t/node-red-not-updating-openhab-items-in-ios-app/127671/8 "2021-10-21T10:10:11Z")

</div>

Hi Rossko

Very nice explanation, I think i looked at another post that had something similar, but I did not catch it!

You 100% correct, BasicUI did not show it until I added the line is the sitemap as suggested. now it is showing in BasicUI and in IOS App. I will add all the other ones as well.

Thanks so much far taking the time!

Ruben

---

<div class="post-metadata">

**Author:** ![rossko57](https://community.openhab.org/user_avatar/community.openhab.org/rossko57/32/70263_2.png) [@rossko57](https://community.openhab.org/u/rossko57)\
**Post date:** [October 21, 2021, 10:15am UTC](https://community.openhab.org/t/node-red-not-updating-openhab-items-in-ios-app/127671/9 "2021-10-21T10:15:34Z")

</div>

> [@Rubenv](#):
>
> BasicUI did not show it until I added the line is the sitemap as suggested.

Interesting - I expected it to work actually, and show up an IOS app limitation.

We ought to complete the story here, I would guess your Item has no presentation metadata at all. The equivalent of no [%s], i.e. the equivalent of , “show me nothing”. The sitemap based UI shows you what you asked for by default i.e. ask nothing, get nothing.

You ought to review the state presentation 'pattern’metadata of your Item (and I expect others) and put something meaningful in there.
