System
- async OPNsenseClient.get_device_unique_id(expected_id=None)
Return the stable device identifier derived from physical MAC addresses.
- Parameters:
expected_id (str | None, optional) – Previously known identifier to prefer when it is still present among physical interface MAC addresses.
- Returns:
- MAC-address-based identifier with colons replaced by
underscores. Returns
expected_idwhen it still matches a physical interface, otherwise the first sorted physical MAC identifier, orNonewhen no physical MAC addresses are available.
- Return type:
str | None
- async OPNsenseClient.get_system_info()
Return basic OPNsense system identity information.
- async OPNsenseClient.get_carp()
Fetch one CARP snapshot and return both interfaces and aggregate summary.
- async OPNsenseClient.system_reboot()
Reboot OPNsense.
- Returns:
True when the operation succeeds; otherwise, False.
- Return type:
- async OPNsenseClient.system_halt()
Shutdown OPNsense.
- Return type:
None
- async OPNsenseClient.send_wol(interface, mac)
Send a wake on lan packet to the specified MAC address.
- async OPNsenseClient.get_notices()
Return active OPNsense dashboard notices.
- async OPNsenseClient.close_notice(id)
Close selected notices.
- async OPNsenseClient.reload_interface(if_name)
Reload the specified interface.