#Hey guys, can I remove the "exposed_
1 messages · Page 1 of 1 (latest)
Whether or not entities should be exposed via the bridge by default instead of explicitly
When set to false nothing is exposed
If you then don't expose any domains or entities then nothing will be exposed
What if I don't expose domains but I do expose some specific entities?
If you then don't expose any domains or entities then nothing will be exposed
But I am exposing entities - I just want to know if exposing domains is redundant in this case
Which I believe you're saying it is redundant?
Redundant... maybe, maybe not
It will expose every (for example) light if you expose the light domain
That's easier than listing the lights manually
But if you don't want to expose everything in a domain then it's not relevant for you
emulated_hue:
host_ip: 192.168.1.186
listen_port: 80
expose_by_default: false
entities:
light.big_lamp:
name: “Big Lamp“
hidden: false
In that example, I am not exposing any domains
But I am exposing an entity
@void phoenix To format your text as code, enter three backticks on the first line, press Enter for a new line, paste your code, press Enter again for another new line, and lastly three more backticks.
```yaml
example: here
```
Don't forget you can edit your post rather than repeatedly posting the same thing.
So the entity would be exposed even though I have not exposed any domains?
Should be, yes
Right, so when set to "false", the exposed domains is redundant then
Because it ignores it anyway
Well...
No
Exposing a whole domain doesn't mean you can't customise the exposure of a single entity in that domain
You gave it a name, which may be different than the default name for it
If you only want to expose one entity then you don't want to expose the whole domain
If you want to expose all/most entities then exposing the domain is easier
What's the difference between this:
expose_by_default: false exposed_domains: – light - switch
And this:
expose_by_default: true exposed_domains: – light - switch
I have read it, yes
Note where it says:
"The domains that are exposed by default if expose_by_default is set to true."
It says if set to true
Which implies it's ignored if set to false
Then that's the case - haven't touched EH in years to be able to confirm the docs are right, but they're rarely wrong
So you would interpet that as being ignored when set to false?
I understand, I appreciate the help
Well, not so much interpret as ... that's what it says
It only states what it means if the value is set to true
I understand that:
expose_by_default: true
Means expose ALL devices.
Then:
exposed_domains: - switch
Means, actually, only expose switches.
But if we then change expose_by_default to false, does it still expose switches?
The domains that are exposed by default if
expose_by_defaultis set totrue
Pretty clearly that means whenfalseno domains are exposed
That's already what was said above
Right but the following line exposes switches
This is where I'm confused. The lines conflict with each other.
Except those you list
expose_by_default: false
exposed_domains:
- light # ignored
entities:
light.bedroom_light:
name: "Bedside Lamp" # not exposed
light.ceiling_lights:
hidden: false # exposed
Let's imagine I don't list any entities
Expose by default is FALSE
And then, I set expose domains to "switches"
Then nothing is exposed, because you set it to expose nothing
In THAT speciifc scenario, are all my switches exposed or are they not?
🔁
But I exposed switches
I exposed the switches domain
exposed_domains: - switch
No, I didn't get it
I'm still confused
You said I didn't expose switches but it says it right there in the code
exposed_domains: - switch
The domains that are exposed by default if
expose_by_defaultis set totrue
Pretty clearly that means whenfalseno domains are exposed
That makes sense on its own line
but it's followed by a contradictory line
This is my whole point
No, no it's not
The domains that are exposed by default if expose_by_default is set to true.
That pretty clearly means that when false no domains are exposed
I leave you to others for future repetitions of this point... I've said the same thing too many times already now
In this example you provided, if domains are ignored, why even have it in the code?
That's my last question to you