Get Current Network
Monitor Wi-Fi network connections and trigger actions on network changes
Usage
yaml
# In your habit YAML
nodes:
- id: my-bit-wifi-node
type: bit
framework: bits
module: "@ha-bits/bit-wifi"
action: "getCurrentNetwork"
data:
# action properties...Actions
| Action | Description |
|---|---|
| Get Current Network | Get information about the currently connected Wi-Fi network |
| Is Connected | Check if device is connected to Wi-Fi |
| Is Connected To Network | Check if device is connected to a specific Wi-Fi network |
| List Saved Networks | Get a list of saved Wi-Fi network names |
| Check Permissions | Check Wi-Fi related permissions status |
| Request Permissions | Request Wi-Fi related permissions |
Triggers
| Trigger | Description |
|---|---|
| On Network Change | Triggered when the Wi-Fi network changes |
| On Connect To Network | Triggered when connecting to a specific Wi-Fi network |
| On Disconnect From Network | Triggered when disconnecting from a specific Wi-Fi network |
