this post was submitted on 21 Jan 2024
20 points (100.0% liked)

homeassistant

12139 readers
9 users here now

Home Assistant is open source home automation that puts local control and privacy first. Powered by a worldwide community of tinkerers and DIY enthusiasts. Perfect to run on a Raspberry Pi or a local server. Available for free at home-assistant.io

founded 2 years ago
MODERATORS
 

I have a concoction of devices from all kind of manufacturers with cryptic codes in their names. Each device exposes multitude of sensors which makes the dashboard look like a mess.

  1. Is there a best practice for renaming devices ? Do you name them by their location ? By their utility ? manufacturer ?
  2. How do you identify the devices later in case there's a problem and one needs to be replaced / battery need to be replaced ?
top 19 comments
sorted by: hot top controversial new old
[–] spongebue 9 points 10 months ago (3 children)

As a side note, I really wish folders were implemented for devices and automations and such. Especially since I have a scene controller (and another on the way) with several buttons, each of which can have 6 different triggers (pressing 1-5 times or holding the button down). Oh, and more for the LEDs.

[–] [email protected] 2 points 10 months ago

Yes! Especially automations! I would rather have tags than folders, so an automation could fit into more than one category (eg. Location, action) but I'd take anything over alphabetical!!

[–] [email protected] 1 points 10 months ago (1 children)

This is why all my automations are in Node-Red. Reusability.

[–] [email protected] 1 points 10 months ago

I have monthly problems with nodered. I have transitioned most of my automations away from it.

[–] [email protected] 1 points 10 months ago

I thought this was implemented on the dashboard. I don't recall what exactly it's called (context cards?) but I recall you could click a button to show a separate card or click and have it open a second 'tab' on the dashboard to control more things like with your scene controller.

[–] [email protected] 8 points 10 months ago (2 children)

For my Zigbee things I use this

example:

  • 00 - Sensor - Hall - PIR - Motion
  • 01 - Switch - Bedroom 01 - Main Light

So to break it down:

  • First 2 numbers represent the floor, 00 = Ground, 01 First Floor and so on.
  • Describes the type of device.
  • Room Name.
  • Describes the Function of Device, eg PIR, Temperature Sensor, Contact Sensor….
  • Used to describe the entities of the device.
[–] [email protected] 1 points 10 months ago

10 floors, 0 basements.

[–] barbarosa 1 points 10 months ago (1 children)

So if a device has multiple entities, you rename each one ? i.e. a hygrometer that measures humidity and temperature, you name each one separately ?

[–] [email protected] 1 points 10 months ago

No, if a device has multiple entities I leave the names as they are. HA will append them to the name of the device

[–] [email protected] 6 points 10 months ago

Organize? Hahaha ohmygod best laugh I've had in a few days.

Some devices have the generic names from the manufacturer because I had issues and had to re-join them a few times, so I got tired of typing the "correct" names. Also I have a light switch labeled "front porch" which is really inaccurate because I'm not turning the porch on and off, it's the lights! And those lights are now zigbee bulbs of their own, but they at least got more sensible names ("porch light doorbell side" and "porch light right side").

But I may switch to zigbee2mqtt, so I'll have a chance to redo all of it anyway.

In general I don't have so many devices that knowing what is what isn't a major issue. I name them better in Lovelace, of course.

[–] [email protected] 4 points 10 months ago (1 children)

I may be wrong, but I think best practice says it doesn't matter how you name your whatevers, so long as the convention you use is consistant. Within HA I tend to use the format ....

For example, the plugs that control my space heaters in my livingroom are switch.livingroom.heater.1 and switch.livingroom.heater.2. The controls for the lights in the livingroom is button.livingroom.wall. Please don't ask why I call plugs switches and controls buttons, I don't have an answer, I just do. 🤷

[–] barbarosa 2 points 10 months ago

So ${type_of_control}.${location}.${device_utility}.${number} ?

[–] Cooljimy84 3 points 10 months ago (1 children)

Before areas was a thing in HASS I would name things with an area name. ESP32-5-Bedroom. Now I just leave it what ever it defaults to, then use HASS to name them, and then put them in an area.

[–] barbarosa 1 points 10 months ago* (last edited 10 months ago) (1 children)

How do you et HASS to name them ? i,e. what names does it chose ? So basically you leave the location out of the name as that is shown in the area anyway ? Thing is, that sometimes you need to choose a device from a dropdown, and in these dropdowns they don't show the area, so having the location sometime gives more information that is missing

[–] Cooljimy84 1 points 10 months ago

So I don't think HASS really names them, I think they have a default/preset name on themselves, like "TZ3000_2"

[–] [email protected] 3 points 10 months ago* (last edited 10 months ago)

Name is the functio, Like ceilinglight or ceiling light middle door middle etc. And then I assign the location. Seems to work.

[–] [email protected] 2 points 10 months ago

@barbarosa
For all those sensors (temp, current etc.) I always prefix the entity ID and friendly name with the area name.
I create areas like “kitchen fridge” or “garage fridge” to keep my stuff organized.

[–] spacemanspiffy 2 points 10 months ago* (last edited 10 months ago)

Ex. 02_light_bedroom, 02 meaning second floor.

[–] [email protected] 1 points 10 months ago

Location Device e.g. Bathroom Presence, Sabre Bedroom Bulb, Kitchen Switch

There was a nice blueprint I saw the other day to notify when batteries run low.