How much entities do you have in Homeassistant?

After a big cleanup this is new result :slight_smile:

automation: 116
binary_sensor: 123
calendar: 4
camera: 1
climate: 1
device_tracker: 36
fan: 1
group: 17
input_boolean: 15
input_datetime: 8
input_number: 1
input_select: 16
input_text: 1
light: 44
media_player: 9
person: 2
proximity: 2
remote: 2
scene: 1
script: 14
select: 1
sensor: 700
sun: 1
switch: 74
timer: 1
weather: 1
zone: 18

automation: 83
binary_sensor: 79
calendar: 2
camera: 3
climate: 1
device_tracker: 1
hangouts: 1
input_boolean: 4
input_number: 1
input_select: 1
input_text: 3
light: 36
lock: 1
media_player: 2
number: 8
person: 1
script: 28
select: 10
sensor: 447
sun: 1
switch: 78
timer: 3
weather: 1
zone: 1

alarm_control_panel: 1
automation: 142
binary_sensor: 68
camera: 1
climate: 8
counter: 2
device_tracker: 128
group: 14
input_boolean: 47
input_datetime: 60
input_number: 53
input_select: 13
input_text: 16
media_player: 1
persistent_notification: 1
person: 5
proximity: 2
scene: 2
script: 21
sensor: 528
sun: 1
switch: 46
timer: 21
water_heater: 1
weather: 4
zone: 3

for sure my automations can be rewritten more efficiently … goal for the future

I want to ask this again. Any ideas, to get the count?

1 Like

Automations: 111
Binary sensors: 95
Device Tracker: 7
Climate: 1
Fans: 0
input_boolean: 2
input_select: 2
input_text: 4
Lights: 20
Script: 38
Sensors: 416
Switches: 90
alarm_control_panel: 5
automation: 111
binary_sensor: 95
camera: 20
climate: 1
cover: 1
device_tracker: 7
govee: 1
group: 10
humidifier: 1
input_boolean: 2
input_select: 2
input_text: 4
light: 20
media_player: 28
persistent_notification: 1
person: 2
remote: 1
scene: 4
script: 38
sensor: 416
sun: 1
switch: 90
weather: 5
zone: 4

Very cool!

That’s one of my open questions in Metrics: how to access advanced integration, Supervisor and HA internal information where I’m looking for some “more advanced statistics”.

Update: number of integrations still no idea, for number of devices see my implementation at Metrics: how to access advanced integration, Supervisor and HA internal information - #6 by e-raser

Mine with note that I have 90% of my automation in node red. Thats some 25 flows approximately.

alarm_control_panel: 1
automation: 7
binary_sensor: 207
button: 8
calendar: 3
camera: 23
climate: 7
cover: 3
device_tracker: 7
fan: 1
group: 11
input_boolean: 27
input_number: 2
input_select: 2
input_text: 1
light: 59
lock: 1
media_player: 12
number: 4
person: 2
remote: 3
scene: 62
select: 12
sensor: 571
sun: 1
switch: 50
weather: 2
zone: 9

I want to do something when there‘s a new domain containing one or more entities for the first time.

How can I detect that, e. g. as trigger definition for an automation?

At least something like „if output of * has at least one more lines than the last time checking *“

  • =
{%- for d in states | groupby('domain') %}
{{ d[0] }}: {{ states[d[0]] | count  }}
{%- endfor %}

Ideally identifying the specific new domain(s).

Ideas? Even working code snippets?

automation: 115
binary_sensor: 145
button: 16
calendar: 4
camera: 1
climate: 1
device_tracker: 38
fan: 1
group: 17
input_boolean: 16
input_datetime: 11
input_number: 1
input_select: 16
input_text: 2
light: 44
media_player: 9
number: 3
person: 2
proximity: 2
remote: 2
scene: 1
script: 13
select: 1
sensor: 862
sun: 1
switch: 78
timer: 5
weather: 2
zone: 20

Sensors: 641
Lights: 10
Switches: 44
Binary sensors: 194
Automations: 63

Still migrating everything to HA … so far :

automation: 32
binary_sensor: 115
button: 2
climate: 1
device_tracker: 16
input_boolean: 2
input_text: 4
light: 71
media_player: 17
number: 7
person: 4
scene: 57
select: 11
sensor: 244
sun: 1
switch: 111
timer: 3
water_heater: 1
weather: 1 zone:

automation: 136
binary_sensor: 83
button: 10
calendar: 1
camera: 12
climate: 6
device_tracker: 2
input_boolean: 1
input_datetime: 1
input_number: 1
input_select: 2
input_text: 2
light: 1
media_player: 15
person: 2
remote: 7
script: 21
sensor: 322
sun: 1
switch: 71
timer: 3
vacuum: 2
weather: 2
zone: 1

alert: 1
automation: 194
binary_sensor: 130
button: 50
calendar: 3
camera: 3
climate: 1
counter: 3
cover: 4
device_tracker: 39
group: 8
input_boolean: 25
input_datetime: 1
input_number: 11
input_select: 1
input_text: 5
light: 41
media_player: 13
number: 4
person: 2
script: 14
sensor: 741
sun: 1
switch: 74
timer: 20
update: 5
vacuum: 2
weather: 4
zone: 1

Sensors: 352
Lights: 6
Switches: 37
Binary sensors: 31
Automations: 19

===============

automation: 19
binary_sensor: 31
button: 8
camera: 2
climate: 2
device_tracker: 68
input_number: 1
light: 6
media_player: 2
number: 6
persistent_notification: 1
person: 1
select: 16
sensor: 352
sun: 1
switch: 37
update: 31
utility_meter: 5
weather: 4
zone: 1

oops that was fast for just over a year

Completely started over ~2 weeks ago (Things got unbearably messy). Had ~100 automations, now down to 36, but reimplementing a few a day!

Current Counts:

alarm_control_panel: 1
automation: 36
binary_sensor: 78
button: 9
calendar: 5
camera: 9
climate: 2
cover: 3
device_tracker: 51
group: 3
input_boolean: 7
input_datetime: 1
input_select: 1
light: 41
media_player: 41
number: 7
person: 5
scene: 16
script: 7
select: 11
sensor: 183
sun: 1
switch: 33
timer: 1
update: 20
weather: 1
zone: 5

Just started with HA before summer, still not done, at least 20 more sensors and 40 more switches to go :slight_smile:

Lights: 101
Switches: 127
Binary sensors: 139
Sensors: 697
Automations: 67
Entities: 1966
Trackers: 33
Climate: 1
Media-players: 21
Cameras: 13
Persons: 5
Helpers-boolean: 101
Helpers-select: 7
Helpers-text: 7
Helpers-counter: 254

Growing and growing:

automation: 67
binary_sensor: 69
button: 80
calendar: 1
camera: 8
device_tracker: 18
fan: 1
input_boolean: 4
input_datetime: 1
input_select: 1
light: 69
media_player: 21
number: 25
person: 3
remote: 4
scene: 32
script: 12
select: 37
sensor: 281
sun: 1
switch: 116
timer: 1
update: 24
vacuum: 2
weather: 1
zone: 13

An update from my side…

alarm_control_panel: 1
automation: 14
binary_sensor: 424
button: 94
calendar: 3
camera: 34
climate: 7
cover: 7
device_tracker: 23
fan: 1
group: 14
input_boolean: 72
input_button: 1
input_datetime: 2
input_number: 4
input_select: 4
input_text: 2
light: 48
lock: 1
media_player: 15
number: 17
person: 7
remote: 1
scene: 64
script: 32
select: 40
sensor: 1224
siren: 6
sun: 1
switch: 110
update: 53
vacuum: 1
weather: 1
zone: 20

Automstions seems low…but I have everything on node.red…a.good way to count this?

Right there with you :grinning_face_with_smiling_eyes: :

alarm_control_panel: 4
alert: 40
automation: 155
binary_sensor: 528
button: 315
calendar: 11
camera: 88
climate: 7
counter: 1
cover: 15
device_tracker: 234
fan: 1
input_boolean: 25
input_number: 26
input_select: 5
input_text: 14
light: 117
lock: 3
media_player: 42
number: 460
person: 2
proximity: 1
remote: 1
script: 77
select: 27
sensor: 1154
sun: 1
switch: 326
timer: 1
update: 112
vacuum: 2 
weather: 5
zone: 4