Replies: 3 comments 1 reply
-
Thanks, this is very thorough and I fully agree. With respect to , it makes more sense to me to include the device name (i.e. name of the account owner), rather than general rohlikcz (domain name) which will be the same for each entity. So for example, the complete name of entity with number of remaining reusable bags will be "sensor.daniel_vejsada_bags_amount". This will also allow to differentiate between entities if multiple accounts are connected. I will try to implement this naming convention over the upcoming weekend. |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
Reviewed it again and prepared an update. I only added the new sensors you recently introduced and kept the suggested names the same as in the previous post. The names aren’t too critical, and the logic already looks good. The only thing I’d like to adjust is the functional domain in the Entity ID. But I’ll leave it up to you — just sharing my thoughts, no pressure. Sensors
Diagnostic
|
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
@dvejsada Before you dive in — I know this would be a big change, so here’s why I’m suggesting it:
What follows is a breakdown by functional domain with proposed entity names and IDs that are clear, scalable, and aligned with Home Assistant conventions.
Take it or leave it — no hard feelings. Just thought it might help.
Entity Naming Convention
<device>
— Unique integration/device prefix (e.g.rohlikcz
)<functional domain>
— Logical grouping that describes what area of the system the data belongs to:account
— user-related limits, IDs, feature flagscart
— active shopping session dataorder
— placed order status and delivery info<entity id>
— Descriptive and concise name of what the sensor/binary sensor represents(e.g.
total_price
,delivery_slot
,reusable_bags_active
)Account
Tracks user account-level data, entitlements, and status.
<device>_account_credit_balance
<device>_credit_balance
<device>_account_express_deliveries_left
<device>_free_express_deliveries
<device>_account_premium_days_left
<device>_premium_days_remaining
<device>_account_reusable_bags
<device>_bags_amount
<device>_account_underlimit_orders_left
<device>_no_limit_orders
Cart
Reflects real-time session data, including delivery options and totals.
<device>_cart_total_price
<device>_cart_total
<device>_cart_nearest_express_slot
<device>_cart_nearest_slot
<device>_nearest_delivery
<device>_cart_nearest_standard_slot
<device>_cart_slot_reserved
<device>_slot_reserved
Order
Information about placed orders and their delivery schedule.
<device>_order_active
<device>_next_order_made
<device>_order_delivery_start
<device>_order_delivery_end
<device>_order_last_placed
<device>_last_order
Diagnostic
Static data and feature flags related to your user account (ID, contact, feature participation).
<device>_account_email
<device>_email
<device>_account_id
<device>_account_id
<device>_account_parents_club
<device>_parents_club
<device>_account_premium_membership
<device>_premium_membership
<device>_account_phone
<device>_phone
<device>_account_reusable_bags_active
<device>_reusable_bags
<device>_last_updated
<device>_last_updated
Beta Was this translation helpful? Give feedback.
All reactions