Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature request] Network control #486

Open
3DJupp opened this issue Jun 27, 2023 · 2 comments
Open

[Feature request] Network control #486

3DJupp opened this issue Jun 27, 2023 · 2 comments

Comments

@3DJupp
Copy link

3DJupp commented Jun 27, 2023

Hey I just wanted to ask, if the Networkcontrol-traits are something that could be integrated within OH/Google Assistant.
Recently i used the "Router" action with Amazon Alexa, but thats another ecosystem.

More on this trait can be found here:
https://developers.home.google.com/cloud-to-cloud/traits/networkcontrol

Willing to test the action, as i got a couple of network appliances here. (Ubiquiti UniFi, Cisco Meraki and Speedtest-CLI could be possibly integrated with this feature)

Thanks and kind regards
Dominic

@michikrug
Copy link
Collaborator

Could you share what kind of items you would use for that?
So that I get an idea how a mapping could look like...

@3DJupp
Copy link
Author

3DJupp commented Oct 6, 2024

Sure, there are some options, here is a dummy list of possible OH-Items:

Switch NetworkEnabled "Hauptnetzwerk aktiviert" { channel="networkcontrol:network:enabled" }
String NetworkSSID "Hauptnetzwerk SSID" { channel="networkcontrol:network:ssid" }
Switch GuestNetworkEnabled "Gastnetzwerk aktiviert" { channel="networkcontrol:guestnetwork:enabled" }
String GuestNetworkSSID "Gastnetzwerk SSID" { channel="networkcontrol:guestnetwork:ssid" }
Number NumConnectedDevices "Anzahl verbundener Geräte" { channel="networkcontrol:network:connecteddevices" }
Number NetworkUsageMB "Netzwerkverbrauch (MB)" { channel="networkcontrol:network:usage" }
Number NetworkUsageLimitMB "Netzwerkverbrauchslimit (MB)" { channel="networkcontrol:network:usagelimit" }`
Switch NetworkUsageUnlimited "Unbegrenzter Netzwerkverbrauch" { channel="networkcontrol:network:unlimitedusage" }
Number LastDownloadSpeed "Letzte Download-Geschwindigkeit (Mbps)" { channel="networkcontrol:network:lastdownloadspeed" }
DateTime LastDownloadSpeedTestTime "Zeitpunkt des letzten Download-Geschwindigkeitstests" { channel="networkcontrol:network:lastdownloadspeedtime" }
String LastDownloadSpeedTestStatus "Status des letzten Download-Geschwindigkeitstests" { channel="networkcontrol:network:lastdownloadspeedstatus" }
Number LastUploadSpeed "Letzte Upload-Geschwindigkeit (Mbps)" { channel="networkcontrol:network:lastuploadspeed" }
DateTime LastUploadSpeedTestTime "Zeitpunkt des letzten Upload-Geschwindigkeitstests" { channel="networkcontrol:network:lastuploadspeedtime" }
String LastUploadSpeedTestStatus "Status des letzten Upload-Geschwindigkeitstests" { channel="networkcontrol:network:lastuploadspeedstatus" }
Switch NetworkSpeedTestInProgress "Geschwindigkeitstest läuft" { channel="networkcontrol:network:speedtestinprogress" }
String NetworkProfileState "Netzwerkprofil Zustand" { channel="networkcontrol:network:profilestate" }
Switch NetworkProfileEnabled "Netzwerkprofil aktiviert" { channel="networkcontrol:network:profileenabled" }

The trait would've been configured in the following way (things or item-channel config)

{
  "supportsEnablingGuestNetwork": true,
  "supportsDisablingGuestNetwork": true,
  "supportsEnablingNetworkProfile": true,
  "supportsDisablingNetworkProfile": true,
  "supportsNetworkDownloadSpeedTest": true,
  "supportsNetworkUploadSpeedTest": true,
  "supportsGettingGuestNetworkPassword": true,
  "networkProfiles": [
    "Kids"
  ]
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants