I have several similar devices to deploy and substitutions are clearly going to make things simpler as there are 50 'names in each. However, I can’t determine from the docs just how substitutions can be used in name:
.
If I have the following, for example:
- platform: total_daily_energy
name: "Garage Total Daily Energy"
power_id: garage_total_power
accuracy_decimals: 0
and use substitutions:
substitutions:
area_id: garage
area_name: Garage
would I then use it as:
- platform: total_daily_energy
name: "${area_name} Total Daily Energy"
power_id: ${area_id}_total_power
accuracy_decimals: 0
or is some form of concatenation required? (I have no expectation that the example below is correct!)
- platform: total_daily_energy
name: "${area_name}" + "Total Daily Energy"
power_id: ${area_id} + _total_power
accuracy_decimals: 0
or similar.
Hope that makes sense.