Hi Julien, for the answer to post # 34 I need to deepen …
I will not fail to write to you.
For Discovery in docker I see
bash-5.0 # python3.8 /usr/local/lib/python3.8/site-packages/OWNd/discovery.py
Address: 192.168.1.2
Port: 20000
Manufacturer: BTicino S.p.A.
Model: MH200N
Firmware: 1.0
Serial: 00:03: ****
Address: 192.168.1.2
Port: 20000
Manufacturer: BTicino S.p.A.
Model: MH200N
Firmware: 1.0
Serial: 00:03: ****
bash-5.0 #
If it can be useful, on the page ip: 80 mh201 I see this
<root xmlns="urn:schemas-upnp-org:device-1-0">
<specVersion>
<major>1</major>
<minor>0</minor>
</specVersion>
<URLBase>http://192.168.1.22:80/</URLBase>
<device>
<deviceType>urn:schemas-bticino-it:device:IP scenario module:1</deviceType>
<friendlyName>Ingresso</friendlyName>
<manufacturer>BTicino S.p.A.</manufacturer>
<manufacturerURL>http://www.bticino.it</manufacturerURL>
<modelDescription>IP Scenario Module</modelDescription>
<modelName>MH201</modelName>
<modelNumber>1.0</modelNumber>
<modelURL>www.bticino.it</modelURL>
<serialNumber>00:****:A0</serialNumber>
<UDN>uuid:upnp-IPscenarioModule-1_0-00****A0</UDN>
<serviceList>
<service>
<serviceType>urn:schemas-bticino-it:service:Reachability:1</serviceType>
<serviceId>urn:bticino-it:serviceId:Reachability</serviceId>
<SCPDURL>Reach_Serv.xml</SCPDURL>
<controlURL/>
<eventSubURL/>
</service>
</serviceList>
<presentationURL/>
</device>
</root>
Unlike the gateways, the info is probably on port 80?
edit
Last thing, if mh201 is connected, in the log this error appears (see below)
In fact, if I unplug it from the network and restart the home assistant does not exit,
and as I connect it to the network, it appears again.
2020-11-30 20:58:05 ERROR (MainThread) [homeassistant] Error doing job: Task exception was never retrieved
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/components/ssdp/__init__.py", line 46, in initialize
await scanner.async_scan(None)
File "/usr/src/homeassistant/homeassistant/components/ssdp/__init__.py", line 74, in async_scan
await self._process_entries(entries)
File "/usr/src/homeassistant/homeassistant/components/ssdp/__init__.py", line 120, in _process_entries
await asyncio.gather(*tasks)
File "/usr/src/homeassistant/homeassistant/data_entry_flow.py", line 130, in async_init
result = await self._async_handle_step(
File "/usr/src/homeassistant/homeassistant/data_entry_flow.py", line 213, in _async_handle_step
result: Dict = await getattr(flow, method)(user_input)
File "/config/custom_components/myhome/config_flow.py", line 231, in async_step_ssdp
gateway = await OWNGateway.build_from_discovery_info(discovery_info)
File "/usr/local/lib/python3.8/site-packages/OWNd/connection.py", line 99, in build_from_discovery_info
discovery_info["port"] = await get_port(discovery_info["ssdp_location"])
File "/usr/local/lib/python3.8/site-packages/OWNd/discovery.py", line 190, in get_port
resp = await session.post(ctrl_url, data=soap_body, headers=headers)
File "/usr/local/lib/python3.8/site-packages/aiohttp/client.py", line 551, in _request
await resp.start(conn)
File "/usr/local/lib/python3.8/site-packages/aiohttp/client_reqrep.py", line 892, in start
message, payload = await self._protocol.read() # type: ignore # noqa
File "/usr/local/lib/python3.8/site-packages/aiohttp/streams.py", line 605, in read
await self._waiter
aiohttp.client_exceptions.ServerDisconnectedError: Server disconnected