Hello community! First post, so go easy
I’ve been running Home Assistant and OpenHAB in parallel for several weeks - each on it’s own Pi3B - and have decided that Hass.io is the way to go.
I’m starting to organise and customise my configuration now and one of the first things I’m doing is tidying up my messy, sensor ridden home screen.
I am using Dark Sky as a source of weather information - we already use it on our phones so it has a friendly “feel” even though it might not be to everyone’s taste - and I wonder if there is an easy way (programmatically in code) to group sensors with the same suffix into a group without having to type the name of each entity manually?
As an example, I have included the Dark Sky forecast array with 7 days of data, so there is a sensor configured for each metric with _1…_7 as a suffix where 1=tomorrow 2=tomorrow+1 etc.
I have started manually configuring my groups like this:
dark_sky_today:
name: Today
entities:
- sensor.dark_sky_summary
- sensor.dark_sky_temperature
- sensor.dark_sky_apparent_temperature
- sensor.dark_sky_daily_low_temperature
- sensor.dark_sky_daily_high_temperature
dark_sky_tomorrow:
name: Tomorrow
entities:
- sensor.dark_sky_daily_low_temperature_1
- sensor.dark_sky_daily_high_temperature_1
dark_sky_next_day:
name: Next Day
entities:
- sensor.dark_sky_daily_low_temperature_2
- sensor.dark_sky_daily_high_temperature_2
I know I could use cut/paste after setting up the first group like I’ve started to do above (don’t judge me on the naming scheme still experimenting!) but is there a better way to do this using a wildcard list of some sort or a-n-other means, or do I have to explicitly name each entity?
Any help much appreciated.
TIA,
Rowland.