Does anyone know where to find description of available platforms?
Br
Ole
I have the same question, and this link, which is just the ESPHome home page, does not provide an answer. The only place it mentions the word “platform” is in " Display Hardware Platforms". It does not explain the concept of “platform” or list the options.
My problem is that several of the ESPHome examples say “platform: …” without saying what goes in the place of the “…”. For example on the Light Component page there is this example
Base Light Configuration
All light configuration schemas inherit these options.
light: - platform: ...
So what is “…”?
Here ia a Light Components:
I know (I already provided the link). But where is the bit about platforms?
Open the page for one of the components and it will tell you the value to use for platform
for that component.
Ah! The penny drops
So “Platform” = “Component”
Eh. Close enough. For example:
The light component has a number of different platforms it supports, binary light, rgb light, etc…
The binary sensor component has a number of platforms it supports, gpio, nfc tag, etc…
The confusion comes from the home page itself where these platforms are listed as components.
Is this confusing?
Yes, very.
So yes while not technically correct, in common usage “platform” = “component”.
OK, so more accurately you are saying:
a) “component” is NOT the same as “platform”
b) but on the home page “component” means “platform”
c) there is not single list of all platforms, but one could infer the set of platforms by working through the lists on the component pages.
The problem is that ‘c’ is not true. Most of the component pages say “platform: ...
”, which is what I complained about in the first place! So I am none the wiser.
In practical terms, I just want to know what options are available every time the site says “platform: ...
”.
Take switch:
or light:
components for example.
Here You see list of all and every platforms aka components
:
Many thanks!
So if platforms and components are the same thing, which ones are used as the ESPHome main keywords … e.g. swich:
. light:
, and which are used after the platform:
keyword within these items?
I have always wondered why this info is difficult to find and usually find it by searching for examples.
If you go to this page it lists the switch components and that info is what is used for the platform.
For switch the platforms I have used are:
- platform: gpio
- platform: template
- platform: restart
For the light component the info is here.
@gaz99 Thanks! I’ve been pulling my hair out trying to find this list. I also just found a similar list under the “See Also” entry in the TOC column on the Light Component doc page, but “See Also” is not the first place I look for essential information about a documented feature.
To be fair, the Component Variables section for Color Temperature light explicitly mentions that there are other options inherited from its parent:
- All other options from Light.