Hi,. I’m looking to do a few hours of work this weekend. I want to combine some of these random entities into a device. How would I do that? Is there a way to link existing entities to a new device, or does it need to be done at creation time.
You can’t. Device are created by integrations that are setup in the GUI or are discovered. You can’t take some entities and create a device out of them.
So I was checking out the related integration code and I can understand it. But I can’t find any documentation about how to create a device. Can you point me at something I can use to group these 20 entities into a device which can be assigned to a room? Solar edge is just a steaming pile of crap on my lovelace and I need to do something about organizing it. I figure I could convert it into a custom integration but I can’t find documentation on how devices work.
You can also consider taking control of your lovelace and grouping the entities the way you prefer.
I have control of several lovelace dashboards. I like the overview dash, but there’s no option for guided control over the overview. I’d like to maintain a 100% dashboard.
Just create a Group and add all your entities there. You can link to a group from a card so it’s almost the same as a device, but neater and customisable.
Here’s an example of how to accomplish this. In you configuration.yml file add something like this:
group:
smart_planter:
name: "Smart Planter"
entities:
- switch.smart_plant_awake
- binary_sensor.smart_plant_charging
- sensor.smart_plant_battery
- sensor.smart_plant_soil
- sensor.smart_plant_water
- sensor.smart_plant_humidity
- sensor.smart_plant_temperature
- sensor.smart_plant_illuminance
icon: mdi:sprout
This will create a group called Smart Planter with all those entities available.
This is a 4-year-old topic. However that is exactly what I’m trying to avoid. I’d rather blacklist entities from a dashboard rather than whitelist.