# "Expose as..." field in State Nodes weirdness in Node-RED v4

**URL:** <https://discourse.nodered.org/t/expose-as-field-in-state-nodes-weirdness-in-node-red-v4/88887>\
**Category:** General\
**Tags:** home-assistant\
**Created:** [23 June 2024 13:44 UTC](https://discourse.nodered.org/t/expose-as-field-in-state-nodes-weirdness-in-node-red-v4/88887 "2024-06-23T13:44:53Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![NeoDude](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/neodude/32/92163_2.png) [@NeoDude](https://discourse.nodered.org/u/NeoDude)\
**Post date:** [23 June 2024 13:44 UTC](https://discourse.nodered.org/t/expose-as-field-in-state-nodes-weirdness-in-node-red-v4/88887/1 "2024-06-23T13:44:53Z")

</div>

Hey Folks,

First post so go easy on me.

I've just upgraded to NodeRed 4.0 and noticed some weird behaviour with the HA State Nodes. When you open a Node to edit it, the "Expose as" field defaults to the first switch in the list meaning you have to remember to change it before saving. Not sure if this is a bug or something I'm missing.

Any ideas?

---

<div class="post-metadata">

**Author:** ![marcus-j-davies](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/marcus-j-davies/32/103435_2.png) [@marcus-j-davies](https://discourse.nodered.org/u/marcus-j-davies)\
**Post date:** [23 June 2024 15:38 UTC](https://discourse.nodered.org/t/expose-as-field-in-state-nodes-weirdness-in-node-red-v4/88887/2 "2024-06-23T15:38:17Z")

</div>

Welcome to the forums @NeoDude

> First post so go easy on me.

Its completely untrue what they say 😉

However, your issue will need putting to the HA community.  
Most here are not HA users, but Native Node RED users.

This seems like a bug on the HA Node side

Justification : I have many Nodes in V4 that retain the correct config selection

---

<div class="post-metadata">

**Author:** ![marcus-j-davies](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/marcus-j-davies/32/103435_2.png) [@marcus-j-davies](https://discourse.nodered.org/u/marcus-j-davies)\
**Post date:** [23 June 2024 16:55 UTC](https://discourse.nodered.org/t/expose-as-field-in-state-nodes-weirdness-in-node-red-v4/88887/3 "2024-06-23T16:55:41Z")

</div>

**UPDATE:**

This _might_ be related to a slight change in the order that `none` appears

see another report: [Home Assistant Node status DISABLED - #9 by marcus-j-davies](https://discourse.nodered.org/t/home-assistant-node-status-disabled/88858/9)

---

<div class="post-metadata">

**Author:** ![NeoDude](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/neodude/32/92163_2.png) [@NeoDude](https://discourse.nodered.org/u/NeoDude)\
**Post date:** [23 June 2024 19:10 UTC](https://discourse.nodered.org/t/expose-as-field-in-state-nodes-weirdness-in-node-red-v4/88887/4 "2024-06-23T19:10:00Z")

</div>

Ah, cool. Nice to see it's not just me being silly, lol.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)\
**Post date:** [21 September 2024 19:10 UTC](https://discourse.nodered.org/t/expose-as-field-in-state-nodes-weirdness-in-node-red-v4/88887/5 "2024-09-21T19:10:30Z")

</div>

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.
