Set entity icon from nodered

I would like to set/update the MDI icon for a HA entity from within NR. It can either be a entity defined in HA or one defined from NR itself. Probably simple once i see how, but i can’t make it work and can’t find an example.

Use the update config node.

Pass in an input to the node containing

{
  "icon": "mdi:someiconname"
}

examples https://zachowj.github.io/node-red-contrib-home-assistant-websocket/node/update-config.html#examples

Thanks Kermit, i somehow missed the Update config node type and i have now used it and it works like a charm!

Hi, I am having an issue with this node. It says “updated”, but none of the values actually change. What could I be doing wrong?

image

image

image

image

Update config is limited to changing the settings of the config as outlined here.

Step is not listed as an option and I assume this is the value that does not change? To change a state/attribute value you would need to use a call service.

I see it now for the number entity. Try with a lowercase S step

I tried it uppercase, lowercase, with quotes, without quotes, etc. Even the icon doesn’t change, and I know that’s definitely supported.

I’m wondering if the feature is just broken and no one noticed somehow.

Have you ever had it work?

It should be step_value but that isn’t working for either. Setting the icon works for me.

Create an issue on GitHub https://github.com/zachowj/node-red-contrib-home-assistant-websocket/issues.

Thanks. Odd that icon works for you. I don’t care about step count, that was just a test. I just need min value to work.
Icon works for me on sensor nodes, but not select nodes.

Here is the bug report: The "update config" node does not work for any attributes for the "select" entities · Issue #1427 · zachowj/node-red-contrib-home-assistant-websocket · GitHub

Edit: I meant number, not select