NWA210AX - Automatic SSH login from Openhab

Miky
Posts: 3
in WirelessLAN
Hi,
i need autoconnect from Openhab to Zyxel AP, to turn on-off the wifi.
I'm able to turn on-off the wifi manually with a ssh connection from my Macbook.
But i'm not able from Openhab because i need to write it in a single command line like that:
ssh2 -p PASSWORD [email protected]_IP /configure terminal/wlan slot1/no activate
Someone more experienced than me can help me to find the correct line?
i need autoconnect from Openhab to Zyxel AP, to turn on-off the wifi.
I'm able to turn on-off the wifi manually with a ssh connection from my Macbook.
But i'm not able from Openhab because i need to write it in a single command line like that:
ssh2 -p PASSWORD [email protected]_IP /configure terminal/wlan slot1/no activate
Someone more experienced than me can help me to find the correct line?
0
All Replies
-
Hi @Miky
Thanks for sharing the experience combining Openhab with Zyxel access point.
To enable/disable wireless network at specific time, we have SSID schedule for users to setup.
If the above functions do not meet your needs, could you share the applications that you’re going to implement?
We’d like to advice if any features on AP could meet your work.
Thank you
Regards,
Bella
0 -
Hello Bella,thank you for your quick help!A time control is too rigid for my application, so I want to link the AP to openhab.I've now understood that the problem it`s probably because I'm running Openhab as a docker and maybe there's no pre-installed shell.
Thanks
Miky0 -
Hi @Miky,
Try this command,echo -e "configure terminal\nwlan slot1\nno activate\nexit\nexit\nexit" | sshpass -p yourpassword ssh [email protected]
0
Categories
- 7K All Categories
- 1.4K Nebula
- 29 Nebula Ideas
- 35 Nebula Status and Incidents
- 3.9K Security
- 200 Security Ideas
- 719 Switch
- 29 Switch Ideas
- 596 WirelessLAN
- 8 WLAN Ideas
- 4.5K Consumer Product
- 98 Service & License
- 215 New and Release
- 38 Security Advisories
- 499 FAQ
- 220 Nebula FAQ
- 120 Security FAQ
- 72 Switch FAQ
- 66 WirelessLAN FAQ
- 5 Consumer Product FAQ
- Documents
- 30 Nebula Monthly Express
- 43 About Community
- 31 Security Highlight