Hi Folks,
I am sure someone on these forums has an answer for me as I have been completely unable to change the name of an entity after scouring this forum and following the instructions @ https://www.home-assistant.io/docs/configuration/customizing-devices/.
My situation: I am trying to change the name of the SleepNumber bed occupancy sensor & icon.
I have tried the following situations from docs linked above:
- Go to
Configuration > Entities >
and locate sensor “binary_sensor.sleepnumber_firmness_control_sleepiq_dual_boxed_XXXX_is_in_bed” and there is a no edit pencil icon on the right of the list. Clicking on the entity brings up the settings dialog box for entity. Click the filter icon top right opens a second dialog box where I click on the wheel/cog which takes me back to the previous dialog box. - Customization: I have enabled Advanced Mode for my profile and chosen the binary sensor and Choose “Pick an attribute to override”. I chose “other” and entered “friendly_name” and entered a shorter name. Hit save. Reload core and then just for kicks, restart HA.
- I created a file
customize.yaml
and entered the following in it:
homeassistant:
name: Home
# etc
customize:
binary_sensor.sleepnumber_firmness_control_sleepiq_dual_boxed_XXXX_is_in_bed:
friendly_name: XXXX in Bed
and I entered the following in my configuration.yaml
file:
customize: !include customize.yaml
but every time I start HA and go to run the config validation it gives me an error “Configuration invalid”
I have even tried just taking the customize
portion from the customize.yaml
file and pasting it directly in my configuration.yaml
file.
I cannot figure out how to get this changed.
The last thing I have done is go to Developer Tools > States
and choose binary_sensor.sleepnumber_firmness_control_sleepiq_dual_boxed_XXXX_is_in_bed
and entered the code and hit save state.
friendly_name: 'SleepNumber Firmness Control, SleepIQ, Dual,Boxed Adam Is In Bed'
device_class: occupancy
None of the above items have worked so far.
Can anyone please help me out here and let me figure this out as it displays the entire sensor entity on the Lovelace card instead of a simple friendly name.
Many many thanks.