You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The auto discovery of WiFi Switch v2 devices is already implemented and working fine. Version 2 is the currently available device with integrated temperature sensor. V1 devices have the same REST API but don't have a temperature sensor and don't announce themself by UDP broadcast on port 7979.
Enhancement: auto discovery for v1 switches.
Official information received from mystrom.ch support:
in case of WSW - WiFi Switch v1 it broadcast itself over UPNP.
Unfortunately I've been unable to discover a v1 switch with UPNP. I've tried various tools, libraries and my own code under Linux and OSX.
My analysis so far:
Port scan on v1 switch revealed standard UPNP port 1900:
PORT STATE SERVICE
1900/udp open|filtered upnp
myStrom v1 switch doesn’t respond to UPNP ssdp:discover requests to standard multicast address and port 239.255.255.250:1900. Tried with search target (ST) ssdp:all and upnp:rootdevice:
myStrom v1 switch doesn’t advertise itself (multicasting advertisement messages to 239.255.255.250:1900) with ssdp:alive:
#!/usr/bin/env pythonimportsocketimportstructMCAST_GRP='239.255.255.250'MCAST_PORT=1900sock=socket.socket(socket.AF_INET, socket.SOCK_DGRAM, socket.IPPROTO_UDP)
sock.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR, 1)
sock.bind((MCAST_GRP, MCAST_PORT)) # use '' instead of MCAST_GRP to listen to all groups on MCAST_PORTmreq=struct.pack("4sl", socket.inet_aton(MCAST_GRP), socket.INADDR_ANY)
sock.setsockopt(socket.IPPROTO_IP, socket.IP_ADD_MEMBERSHIP, mreq)
whileTrue:
data, addr=sock.recvfrom(8192)
printaddr, data
No UPNP traffic detected with Wireshark, only MDNS Queries once in a while.
I’m able to discover all other UPNP devices on my network (router, Logitech Harmony, TV, Radio, NEEO remote, Plex), with upnp tools, Wireshark and my own code. Therefore I assume something is wrong or ‘special’ with the myStrom WiFi Switch v1.
Does anyone have an idea or further information?
The text was updated successfully, but these errors were encountered:
The auto discovery of WiFi Switch v2 devices is already implemented and working fine. Version 2 is the currently available device with integrated temperature sensor. V1 devices have the same REST API but don't have a temperature sensor and don't announce themself by UDP broadcast on port 7979.
Enhancement: auto discovery for v1 switches.
Official information received from mystrom.ch support:
Unfortunately I've been unable to discover a v1 switch with UPNP. I've tried various tools, libraries and my own code under Linux and OSX.
My analysis so far:
ssdp:discover
requests to standard multicast address and port239.255.255.250:1900
. Tried with search target (ST)ssdp:all
andupnp:rootdevice
:239.255.255.250:1900
) withssdp:alive
:I’m able to discover all other UPNP devices on my network (router, Logitech Harmony, TV, Radio, NEEO remote, Plex), with upnp tools, Wireshark and my own code. Therefore I assume something is wrong or ‘special’ with the myStrom WiFi Switch v1.
Does anyone have an idea or further information?
The text was updated successfully, but these errors were encountered: