-
-
Notifications
You must be signed in to change notification settings - Fork 100
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Climate 1.0: Restore on/off functionality #261
Comments
I agree with this. I think the key thing I want to highlight is the loss of functionality. This isn't a complaint about having to adapt to the new schema, it's a gap in our model. |
From 48 climate platform, there are currently 5 platforms they support also ON as recovery the latest state from off -> Because most of the platforms they support The biggest mistake on old climate was that the on/off as state because a climate is bounded to HVAC states and don't represent only 2 (binary) states. on/off is not the primary function of a climate. |
@pvizeli I agree with most of what you said except for the last sentence. For A/C systems, being on or off is the primary state as the mode rarely changes (if at all). |
@OnFreund well, you can filter for things they are not in off state. If we go back that every platform can self select what should be the state, we end up in the same issue as before. |
Once we restore on/off functionality, the mode would no longer be off - it would be the actual mode.
|
We need cover external interfaces like alexa/google and follow the way that we need have a very static and fix model they don't try to implement all the functions from hardware, instead of the platform implement and call the function on their API they are needed. That mean, if the device is on cool, they is on and you need to implement that. There was so many possible states with old model, that you end up in wired things like a device was off but in heating. |
Google assistant does suggest implementing the on/off trait for some types of HVACs. |
we can reintegrate on/off function but never as state like before. If the user select heating, you device going on and into heating modus. To turn it first and as second call into heating is wired for an application. At the end we need a model they work for most hardware. Your view is that HA should integrate and cover your device and not the platform should represent simplify the model they need to work for so many hardware. |
My view is that HA should support HVAC systems, and many of them have independent on/off functionality. It seems to me that the opposite view is the one that's trying to adapt to a specific kind of device rather than support many of them. Also, counting platforms and counting devices is very different - CoolMasterNet by itself supports about a dozen different vendors and supports on/off for all. Re-iterating - my proposal preserves state, but lets Once again, and as @andrewsayre mentioned, this is important functionality that existed before climate 1.0, and can be implemented while preserving backwards compatibility with 1.0. |
There are lights out there that allow to change the brightness and color without turning on the light. We don't support those either. I don't see an issue with a device returning The only gap I see with the new model is the |
Small correction: I do propose that specifically lovelace does display |
@balloob as mentioned in the PR, I don't think the comparison to light is a good one. Additionally, the brightness is similar to temperature, which we do allow to change while the device is off, not to its Your suggestion covers the first use case I mentioned, but not the other two. |
I add a draft to show what I mean and what I think is the best for every exists integration/platform: home-assistant/core#25026 |
@balloob @pvizeli
Most modern systems also support temperature, and some have additional controls (e.g. fan direction), but all of them have those basic 3. Given the insistence for climate to not support this mode of operation, I propose A/C becomes a new component. Climate will mostly support heating systems, and could potentially be simplified as a result. |
=
! Yes, the benefit of new model is that we protect the climate to go in such weird state. Everthing is |
"Yes, the benefit of new model is that we protect the climate to go in such weird state" Once again, if this is not what you want for climate, I propose a new A/C component. |
You want a new AC component because you can't change the mode when a device is off. We're not doing that. This issue has been resolved with home-assistant/core#25026 |
@balloob I don't want an A/C component - I'm proposing one because central heating and A/C work fundamentally differently and there seems to be no appetite to have climate support the latter. I'm also not the only one proposing it (for example, #260 (comment)). This issue has not been resolved. I've listed 3 use cases that are critical to A/C systems, and only one of them was addressed. I'm also not sure what the big harm is in a property that gets/sets the desired mode of operation detached from on/off. How is that fundamentally different from temperature, or preset, or fan mode, or fan speed, that we do allow to get/set when off? |
Context
Now that home-assistant/core#23899 is merged, we've lost important functionality in the shape of simple on/off functionality (detached from
hvac_mode
) for climate platforms. This was requested by several people in the original arch topic, and in the PR, but was eventually left out.The reasons I think this is a good idea:
Proposal
I propose re-adding
SUPPORT_ON_OFF
to climate, and using the following logic in clients of the component:If the platform has the
SUPPORT_ON_OFF
flag set, it will call uponturn_on
,turn_off
, andis_on
. Otherwise, to turn off it will callset_hvac_mode
withHVAC_MODE_OFF
to turn off, and in case there's only one more available mode, it will set that in order to turn on. This will preserve the current functionality for all platforms, and allow gradual migration of platforms that want/need distinct on/off.Consequences
All current functionality will be preserved. Platforms with distinct on/off support will be easier to work with and support more functionality.
The text was updated successfully, but these errors were encountered: