#Hey guys, can I remove the "exposed_

1 messages · Page 1 of 1 (latest)

hardy rivet
#

Expose by default:

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

void phoenix
hardy rivet
#

If you then don't expose any domains or entities then nothing will be exposed

void phoenix
#

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?

hardy rivet
#

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

void phoenix
#

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

light hatchBOT
#

@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.

void phoenix
#

So the entity would be exposed even though I have not exposed any domains?

hardy rivet
#

Should be, yes

void phoenix
#

Right, so when set to "false", the exposed domains is redundant then

#

Because it ignores it anyway

hardy rivet
#

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

void phoenix
#

Yeah I see

#

So let me phrase my question like this

hardy rivet
#

If you want to expose all/most entities then exposing the domain is easier

void phoenix
#

What's the difference between this:

expose_by_default: false exposed_domains: – light - switch

And this:

expose_by_default: true exposed_domains: – light - switch

hardy rivet
#

Did you read that?

void phoenix
#

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

hardy rivet
#

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

void phoenix
#

So you would interpet that as being ignored when set to false?

#

I understand, I appreciate the help

hardy rivet
#

Well, not so much interpret as ... that's what it says

void phoenix
#

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?

hardy rivet
#

The domains that are exposed by default if expose_by_default is set to true
Pretty clearly that means when false no domains are exposed

#

That's already what was said above

void phoenix
#

Right but the following line exposes switches

#

This is where I'm confused. The lines conflict with each other.

hardy rivet
#

What?

#

You're making no/even less sense

void phoenix
#

We set expose by default to FALSE

#

This means nothing is exposed, correct?

hardy rivet
#

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
void phoenix
#

Let's imagine I don't list any entities

#

Expose by default is FALSE

#

And then, I set expose domains to "switches"

hardy rivet
#

Then nothing is exposed, because you set it to expose nothing

void phoenix
#

In THAT speciifc scenario, are all my switches exposed or are they not?

hardy rivet
#

🔁

void phoenix
#

But I exposed switches

hardy rivet
#

No

#

No you didn't

void phoenix
#

I exposed the switches domain

hardy rivet
#

No

#

No you didn't

void phoenix
#

exposed_domains: - switch

hardy rivet
#

You apparently got it back there

void phoenix
#

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

hardy rivet
#

The domains that are exposed by default if expose_by_default is set to true
Pretty clearly that means when false no domains are exposed

void phoenix
#

That makes sense on its own line

#

but it's followed by a contradictory line

#

This is my whole point

hardy rivet
#

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

void phoenix
#

I wouldn't say clearly

#

Hence my confusion lol

hardy rivet
#

I leave you to others for future repetitions of this point... I've said the same thing too many times already now

void phoenix
#

That's my last question to you

hardy rivet
#

To show it was ignored

#

Because you're struggling

#

But apparently it didn't help

void phoenix
#

So I was right, it's redundant. Can be removed.

#

That's what I said in the very beginning

#

and you said not redundant