I read the state of the ports of my TSW202 by ssh.
command_state: >
ssh -i /config/.ssh/id_ed25519 -o StrictHostKeyChecking=no root@192.168.188.141 “uci get poe.port8.poe_enable || echo 0”
value_template: ‘{{ value == “1” }}’
scan_interval: 60
This commads work without mistake for the Ports 2 to 6.
Port 7 and Port 8 randomly switch between on or off after some seconds.
If I check the port state over snmp, the state is shown correct up or down, without jumping.
Only over ssh is this problem.
It doesn’t matter if there is a device on port 8 or not. I checked it with different devices.
Is it a software buck or a hardware problem? Should I change the TSW202?
Thanks for some help.
Thank you for Your reply. I will do the update.
I found a solution for my problem.
I have to change the scan interval for each port to a different time.
Port 1: 50 seconds
Port 2: 55 seconds
and so on. Then it works. No jumping if I check the port status over SSH.