Quantcast
Channel: Configuration - Home Assistant Community
Viewing all articles
Browse latest Browse all 101645

Friendly_name is being reverted when set via states API

$
0
0

@synapse wrote:

Hi Everyone,

I’m setting up a Node-RED flow to set the friendly_name of my SeventeenTrack packages (because It really clutters up the UI when they’re all prefixed with 'Seventeentrack Package: ')

Currently I’m trying to do this via a POST to the HTTP States API - something like:

POST /api/states/sensor.seventeentrack_package_mypackage
{"state":"[Entity's Current State]","attributes":{"friendly_name":"mypackage"}}

The call initially succeeds and updates the name shown in the UI, but it reverts about 10 seconds later. I’m also not seeing any changes being made to the entities in .storage/core.entity_registry, which are made when changing the Friendly Name directly via the UI (which does persist).

Has anyone got any ideas as to how I can get the changes to persist? Also open to any alternate ways of doing this (which don’t involve manually setting the name in the UI)

I’ve also tried using the same method for the Coronavirus sensors, which also revert, so it doesn’t appear to be limited to one integration.

Thanks!

Posts: 2

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 101645

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>