Open ChrisBroenni opened 10 months ago
@ergo-furrer the same should also apply to the REST API interface.
Hi @ChrisBroenni, @ginoagb
how will the Communicator find the device? Just adding DHCP seems not to be enough to identify the device. We need something like a device name, a URL, or a mac address to find it.
Or how should that work?
Best regards, Hans and Arnd.
uups, good point.. It must be device name as this goes with the device type, MAC address goes trhough instance.
@ArndGerns I'm a little confused. Could you publish here the current content of the RestAPI.
In my expirience, having a default value for the IP of a device cause more issues than it solves. The person making the setup must know the IP address of the local device and configure it.
In my opinion, there should never be a default IP address or host name in any EID. As @ginoagb mentioned, such addresses must be configured explicitly per device instance or in the communicator.
The only situation where I would consider setting a default address is a device EID which accesses a cloud service with a pre-defined hostname or URL.
This depends on the manufacturer: Many just specify "DNS" instead of a fix default address. The EID must describe the real image of the device "out of the box". This is the reason why we defined it as a string.
Since the standard is active DHCP, for those "rare" cases where a device is preconfigured with a static IP address, I would suggest writing it in the EID notes instead of creating an automation.
Also, for cloud IP addresses, these can change over time and, as @ArndGerns mentioned, it risks causing more confusion than anything else.
DHCP .... of course, not DNS :-O
How should a device should be found that comes with DHCP? IMHO the device will report some unique name or at least some MAC address.
So IMHO it should be OK to add the name in the ip address field - e.g. with DHCP;who.am.i.com
.
If it comes with a MAC address, we could add MAC
to the IP address field as a MAC in an EID does not make sense at all. Then it is up to the EMS to connect the device with its MAC to some instance.
And then we have the HOVAL where it can be configured on the device whether it is a static IP or DHCP. In that case, I have defined a configuration value {{address}}
that needs to be handled during installation. This could also help in the other cases.
Currently, the ip address is defined as quadruple of integers. This is wrong anyway for IPV6. So I'ld propose to remove that restriction. Possibly, it would make more sense to add an additional field with the IP address type.
IMHO all devices using any kind of IP connection can have either
set as address in their EID.
If the IP address is dynamically assigned using DHCP / DHCPv6, there are a few approaches to discover the actual IP address:
I do not see other means to reliably detect a device's IP address, unless the device has a built-in discovery method.
Yep, IMHO thats correct. As example EEBUS would have special pocedures being part of the EEBUS Plug&Play TransportService / configuration layer 6/7 twin setup. Should then be hosted in the EEBUS TransportService class / "LEGO Block".
User Voice
IP default address must support IPV4, IPV6 and DHCP
Suggested Solution
Alternatives (optional)
ideas are welcome
Acceptance Criteria
Must be accpeted by
Additional context Was rised by HeatPump cleaning with manufactures
@ArndGerns @ginoagb @ergo-furrer