diff --git a/content/components/network.md b/content/components/network.md index f1b0dafc14..651c8024ea 100644 --- a/content/components/network.md +++ b/content/components/network.md @@ -51,6 +51,30 @@ The optimization level depends on whether PSRAM is guaranteed to be available (c > This has various security and privacy implications decribed in [RFC7721](https://datatracker.ietf.org/doc/rfc7721/), as this might leak outside of the smart home network and makes the device uniquely identifiable. > Therefore, the address generation does not comply to [RFC7217](https://datatracker.ietf.org/doc/rfc7217/). +## Lambda + +### Check if any network component is available + +This function is more useful for developing external components, such as a status indicator. + +```yaml +network: + id: network_id + +button: + - platform: template + id: update_now + name: "Update now" + on_press: + then: + - if: + condition: + lambda: |- + return id(network_id).is_available(); + then: + - logger.log: "A Network component is available!" +``` + ## See Also - {{< docref "wifi/" >}}