Germo
(Germo Görtz)
September 15, 2018, 6:26pm
1
to be able to order some elements I found that only groups can be ordered, but not entities.
So I did it like in the example and used groups of groups
cameras:
name: Cameras
view: yes
icon: mdi:cctv
entities:
- group.camera_vorhof
- group.camera_terrasse
- group.camera_garage
camera_vorhof:
name: Camera Vorhof
entities:
- camera.camera_vorhof
camera_terasse:
name: Foscam Terrasse
entities:
- camera.camera_terrasse
camera_garage:
name: Camera Garage
entities:
- camera.camera_garage
but only 2 cameras are shown in the web under the main group cameras, the camera_garage is missing.
If I use this:
cameras:
name: Cameras
view: yes
icon: mdi:cctv
entities:
- camera.camera_vorhof
- camera.camera_terrasse
- camera.camera_garage
then all cameras are shown, but I can’t change the order in customize.yaml, because only groups can be sortet:
group.camera_vorhof:
order: 1
group.camera_terrasse:
order: 2
group.camera_garage:
order: 3
is it a bug or what I am doing wrong?
Or ist there also a way to sort entities in groups?
finity
September 16, 2018, 5:50am
2
The entities in a group should be displayed in the order from top to bottom in the same order you have them listed in the group definition.
But as to why the last camera won’t show in the group - I’ve never used a group in a group for cameras so I don’t know what the behavior would be in that case.
Germo
(Germo Görtz)
September 16, 2018, 7:18am
3
What I see is, that all entities are sorted alphabetically, but not in the order they are listed in the group. That’s why I was looking for a way to define a different sort order and found only this work around.
I am very new here, where is the best place to report bug reports and feature requests?
finity
September 16, 2018, 7:31am
4
I’m not sure why you are seeing that. Here is an example from my config:
switches:
name: Switches
entities:
- input_boolean.bool_1 # maintained computer room light switch
- input_boolean.bool_2 # reset comp room light auto off script
- switch.east_livingroom_lights_switch
- switch.west_livingroom_lights_switch
- switch.kitchen_microwave_outlet_switch
- switch.outside_camera_outlet_1_switch
- switch.tree
- switch.extension_cord_2
- switch.extension_cord_3
- switch.sonoff_test
and here is the result:
As you can see the entities are listed in exactly the way I have them listed in the group definition not in alphabetical order.
And I have 5 camera’s in another group that also show in the order that I listed them.
Maybe you aren’t doing something correct in your code to give you that result?
Are you trying to show all of your cameras in the same view (tab) or do you just want them in the same group on your main view?
Germo
(Germo Görtz)
September 16, 2018, 8:00am
5
What you are showing looks good.
Now I will try this, I use entities and remove the view: yes
cameras:
name: Cameras
# view: yes
icon: mdi:cctv
entities:
- camera.camera_vorhof
- camera.camera_terrasse
- camera.camera_garage
and it works. The cameras are sorted in a group on the main Window.
But in general I did not yet understand how all is displayed and ordered in the main state window. Now I see the new camera group with the cameras sorted, but I also see the 3 cameras separately among all this other items, which are so strange sorted.
finity
September 16, 2018, 8:42am
6
you need to remove the other three camera groups that you created before:
camera_vorhof:
name: Camera Vorhof
entities:
- camera.camera_vorhof
camera_terasse:
name: Foscam Terrasse
entities:
- camera.camera_terrasse
camera_garage:
name: Camera Garage
entities:
- camera.camera_garage
Those are no longer needed.
1 Like
Germo
(Germo Görtz)
September 16, 2018, 9:32am
7
Of course! Thank you for this hint!