New to HA I’m trying to add the Emoncms History integration, which involves editing Configuration.yaml and in particular adding a bunch of lines listing all the sensors I want to send. So I found my way to http://homeassistant:8123/config/entities and can at least see the sensors I want to send.
But I have no idea how to copy the names of the sensors. I’m hoping there’s some way to simply copy the names of the senors and paste them into my Configuration.yaml file. But I can’t find any sensible looking buttons on the page, and there’s no link to any help either. Googling hasn’t managed to find anything useful either, so I’m hoping asking here might?
In the entities page, click on the entity you want, then on the cogwheel top right in the pop-up.
You’ll see and entity_id field with a copy button next to it.
You need to use the copy button. If you highlight and copy you’ll only get the second part of the entity ID - ie occupied_probability instead of sensor.occupied_probability.
Without letting go of the mouse button, keyboard shortcut to copy (Ctrl+C for Windows).
Let go of the mouse button and click outside the window that pops open to close it.
Alternatively, you can copy the entire page, dump it into an Excel/Google Sheets/etc. but you’ll have to do some manipulation to lay everything out right.
Thanks also. This variant seems to have another catch or two - with my browser as it was I was looking at sensor.h5075_62fb_... and if I selected that I just got sensor.h5075_62fb with the rest of the name And then having done it once I don’t seem to be able to choose a different sensor now?
This sounds like a more hopeful approach but how do I copy the entire page?
I did a little sleuthing. All this was done from Windows.
I have the Samba share add-on installed. I used it to grab a copy of core.entity_registry (located in /homeassistant/.storage). Using PowerShell ISE, I ran this script:
Excellent! Many thanks, Ryan I’m on linux so I just used scp to copy the file to my desktop. It’s late now so I’ll have a play with the file tomorrow when I’m fresher.
edit tomorrow to add: I just used grep and sed to extract what I needed: