Open CFenner opened 1 year ago
This issue can be closed because with the merged PR it should be fixed, right?
Not sure, the log from above is from Home Assistant Integration. In there the serial is currently fetched with deviceConfig.getConfig().serial which always gives the gateway serial. Instead the integration should use device.getSerial() which should now also be possible for the gateways with the PR merged.
To me it's unclear if the behavior is correct that deviceConfig.getConfig().serial gives the gateway serial.
@CFenner returning the gateway is correct as this value returns the accessor id which is the gateway. It also returns the device id. That method is basically an implementation detail how the url for the rest call is constructed.
We could argue if the method should be renamed to make this more obvious.
When I print the serials of my device, I get two times the same number for the heating device and the gateway. Is this due to the missing autodetect and fallback to HeatingDevice? Would a dedicated gateway class as in #334 help?
API gives these values: