EverythingSmartHome / everything-presence-one

Official Repo for the Everything Presence One sensor!
390 stars 71 forks source link

naming of entries becomes very convoluted when there is more than 1 device #4

Closed Kpapadak1 closed 4 weeks ago

Kpapadak1 commented 1 year ago

The naming of entities becomes very confusing when there is more than 1 EP1 device in HA.

Recommend using $name or ${name} in front of all switches and sensors. example below.

substitutions: name: "living-room-ep1-sensor" room: "living-room" friendly_name: "Everything Presence One" project_name: "Everything Smart Technologies.Everything Presence One" project_version: "1.0.3" temperature_offset: "-3"

esphome: name: "${name}" name_add_mac_suffix: False project: name: "${project_name}" version: "${project_version}"

esp32: board: esp32dev

logger:

api:

ota: password:

wifi: ssid: password:

captive_portal:

improv_serial:

esp32_improv: authorizer: none

dashboard_import: package_import_url: github://everythingsmarthome/presence-one/everything-presence-one.yaml@main import_full_config: false

light:

i2c: sda: 26 scl: 25 scan: true

sensor:

binary_sensor:

switch:

number:

button:

elvismercado commented 1 year ago

I have some Wemos D1 Mini doing something else on my home assistant. And when i sterted with these devices i also noticed that the naming of the sensors can get tricky when using similar sensors on multiple devices. So to make naming (and the id's) a little bit easier to track and manage i prepend a room name and a friendly_name or name to the sensor i am defining.

See example of the wifi signal sensor. Each device that i configure like this will be easily located through room and friendlyname:

image