I’m trying to exclude domains with the homekit component. I’ve looked all over and I can’t seem to find a list of available domains. Is this defined anywhere? I’m trying to exclude every domain and only add the devices I want in HomeKit.
If that’s the case, that’s a poor implementation. It completely defeats the purpose of exposed domains and maintaining small configurations. I doubt it would be different than other components. For example, in emulated hue I only have exposed domains. Any domain not in that list is ignored and not exposed.
I just looked at the code, it uses the same library as emulated hue. You should only need to configure exposed domains and the entity id’s you want to expose.
Here is a list of domains. It’s going to be different for you because there isn’t a specific list. Here are mine and also a command you can use to generate a list.
# hass-cli state list | grep -o '^[a-z][^.]*' | sort | uniq
alarm_control_panel
alert
alexa
automation
binary_sensor
camera
climate
device_tracker
ENTITY
fan
group
image_processing
input_boolean
input_select
light
media_player
person
remote
script
sensor
sun
switch
timer
weather
zigbee2mqtt_networkmap
zone
Hi, is it possible to get a list of notify services?
I tried this command hass-cli --no-headers --output json service list 'notify.'
or hass-cli --no-headers service list 'notify.'
and this http://hassio:8123/api/services
but I don’t know how to do a rest full command or command line
I would like to get the list of notification services and then populate an input_select
Thank you very much if you can help me.
didnt see the solution to finding used domains in your setup yet, so here’s what shows all your domains in use:
- platform: template
sensors:
domains_in_use:
friendly_name: Domains in use
value_template: >
{%- for d in states | groupby('domain') %}
{{ d[0] }}
{%- endfor %}
or count them also:
{%- for d in states | groupby('domain') %}
{% if loop.first %}{{loop.length}} Domains:
{% endif %}- {{ d[0] }}
{%- endfor %}