Closed badgertastic closed 9 months ago
That message is only displayed once at plugin start-up.
The Home Connect API provides two lists of appliance programs - the complete list of all programs supported by the appliance, and those that can currently be selected. Many appliances do not correctly report the details of a program (e.g. the supported options) unless the program is currently selected. Hence, the plugin needs to select each program to read its details.
The log message is a warning that some of the programs that the API says are supported by the appliance cannot be selected to read their options. This will limit some of the plugin functionality - notably the ability to configure options for those programs (in Homebridge Config UI) or to select/start those programs.
There are many reasons why programs might not be selectable at a particular time. In many cases it is a dynamic issue, e.g. due to the appliance being busy (e.g. performing start-up operations or another program is active), requiring maintenance (e.g. emptying a drip tray), or requiring supplies (e.g. cleaning products). In those cases this message is especially important because it provides the user will need to do something to rectify the situation, e.g. performing any pending maintenance and then restarting the plugin (or triggering an Identify operation). However, there are some cases where this is a (semi-)permanent restriction, e.g. my Oven reports that it supports a Sabbath program, but I have it disabled in the appliance settings so it is not available to be selected.
I have no idea why your appliance does not allow those two programs to be selected. You would need to ask the Home Connect team about that. Maybe it is similar to the Sabbath program on my Oven and requires some setting to be changed. Or it could just be a limitation of the current appliance firmware that prevents those programs being selected via the API. Regardless, there is no way for this plugin to determine whether it is a temporary or permanent issue that prevents those programs being selected. Either way, that log message is an important warning, and will not be removed.
Ok thanks for info.
The log messages are too chatty IMO. And connection attempts nag constantly if you start the plugin with the device off (but on at the mains state -- which it's in 90% of the time).
I just want a simple plugin that reports the end of a program and when I need to do something (like refill the iDOS drawers).
I appreciate the effort so thanks, but the plugin seems is not a good fit for the Apple home and I guess I'll just use the native app in future.
Just having a setting to push all the chatty log message to say warning level, that user can turn off, would help. But Ok.
No idea what Sabbath is or why programs are not on the appliance. They are not documented in the manual, written as functions on the device so assume it's an oversight in the API. I wouldn't even be aware of them if were not for your plugin.
Those "chatty" log messages are at Info
level, which is lower-priority than the Warning
level that you propose. Hence, that suggested change would make them harder to filter.
They are "chatty" because users did not understand what the previous terse messages meant or what they were expected to do in response. The fact that you appear to have misunderstood them suggests that I actually need to make them more verbose with additional explanation. As I said, they only occur once at start-up, so I really don't see what the problem is.
There was previous discussion about not being able to select programs in #224.
There was previous discussion about the "nag" messages in #234.
I do not intend to repeat either discussion or change the log usage.
Description of Enhancement
I'd like to stop seeing the messages when Dryer programs are not available. See below:
I performed the 'Identify' to no avail
Home Connect Mapping
No response
HomeKit Mapping
No response
Home Connect Appliance(s)
BOSCH-WTX88RH9GB