Giter VIP home page Giter VIP logo

Comments (13)

nielsfaber avatar nielsfaber commented on May 16, 2024 1

I see that the thermostat doesn't check for the hvac_mode parameter in the set_temperature service:
https://github.com/home-assistant/core/blob/8868028dcdc99b5272cb100f26367eb785b426ef/homeassistant/components/generic_thermostat/climate.py#L342

The fix is quite easy, it's a matter of calling async_set_hvac_mode as well (which is defined 10 lines above it), with the provided ATTR_HVAC_MODE.

I recommend to make a PR with this change or open an issue about it in HA/core.

from scheduler-component.

nelim avatar nelim commented on May 16, 2024 1

@nelim Could you expand on how you fixed or got around the Generic Thermostat bug? I am seeing the same issues.

@andreipopovici workaround, i'm not turning it off, scheduler just switching temperature and i'm using 17 instead of turn off :)

@nielsfaber thanks :)

from scheduler-component.

issue-label-bot avatar issue-label-bot commented on May 16, 2024

Issue Label Bot is not confident enough to auto-label this issue. See dashboard for more details.

from scheduler-component.

nielsfaber avatar nielsfaber commented on May 16, 2024

I'm not sure what is the problem exactly.

Generic Thermostat, which is working fine, but Scheduler only set_temperature for hvac_mode: heat to 23, without switching mode with set_hvac_mode: heat

In your actions list i see the complete service call, which sets hvac_mode: heat and temperature: 23.
Is this wrong?

from scheduler-component.

nelim avatar nelim commented on May 16, 2024

It only sets temperature to 23 for hvac_mode heat, but does not switch mode to Heat.

I'm not very sure but can we use
service: set_hvac_mode // instead of set_temperature
entity: climate.stove
hvac_mode: heat
temperature: 23

from scheduler-component.

nielsfaber avatar nielsfaber commented on May 16, 2024

okay.
That sounds more like a problem with your thermostat then.
Did you try making normal service call?
I mean, go to Developer tools -> Services
And then choose set_temperature
with the hvac_mode and temperature as service_data

Does this work?
Because that's what scheduler does..

from scheduler-component.

nelim avatar nelim commented on May 16, 2024

okay.
That sounds more like a problem with your thermostat then.
Did you try making normal service call?
I mean, go to Developer tools -> Services
And then choose set_temperature
with the hvac_mode and temperature as service_data

Does this work?
Because that's what scheduler does..

It is working just fine, but only Set Temperature of Mode Heat to 21/22/23 , but not switching from Off to Heat mode.
How can i Turn back Generic Thermostat from Off to Heat with Scheduler ?
Screenshot from 2020-10-30 20-18-23

from scheduler-component.

nelim avatar nelim commented on May 16, 2024

service: set_temperature --> this one change temperature of heat mode to 23 (ot whatever) without switching thermostat mode from OFF to Heat
entity: climate.stove
hvac_mode: 'heat"
temperature: 23

service: set_hvac_mode --> this one turn thermostat from Off to Heat
entity: climate.stove
hvac_mode: 'heat"

Both work from developer tools, but how can i make set_hvac_mode: 'heat' from Scheduler, it only change temperature ?

from scheduler-component.

nielsfaber avatar nielsfaber commented on May 16, 2024

If you really want it, you can add this to the card config:

customize:
  climate.stove:
    actions:
      - service: climate.set_hvac_mode
         name: set hvac mode manually
         variable:
           field: hvac_mode
           options:
             - value: off
                icon: power
             - value: heat
                icon: flame

But the idea is that HVAC_mode is automatically switched when using the set_temperature action.
That's why it is shown in HA as an option for the set_temperature service (and that option is set by scheduler).
It seems that your climate entity has a limitation here.

from scheduler-component.

nelim avatar nelim commented on May 16, 2024

Sorry, it is not general but generic thermostat :)

  • platform: generic_thermostat
    And yes.. i've tried with maxcube thermostat, if you are Off and set_temperature, it turn it back to heat.. but on generic thermostat it does not work, i'm also using Slider from card and thermostat always stay at Off, no matter i'm changing temperature, will try with that customize (i'm not sure it can work ont generic_thermostat) and will write you back.
    Thanks in advance.
    https://www.home-assistant.io/integrations/generic_thermostat/

This is my thermostat:

climate:

  • platform: generic_thermostat
    name: Stove
    heater: switch.stove
    target_sensor: sensor.livingroom_temperature
    min_temp: 17
    max_temp: 32
    ac_mode: false
    target_temp: 21
    cold_tolerance: 0.3
    hot_tolerance: 0.5
    initial_hvac_mode: "off"
    away_temp: 16

from scheduler-component.

nelim avatar nelim commented on May 16, 2024

Do I need to post this on "scheduler-card" now?

Modes not show up for variable hvac_mode, can you help please?
I also tried with example from github - does not work also i can choose "set mode" but nothing shows up after

customize:
climate.stove:
name: My thermostat
icon: thermometer
actions:
- service: set_hvac_mode
name: Set mode
icon:
variable:
field: hvac_mode
name: Operation mode
options:
- value: heat
icon: fire
- value: cool
icon: snowflake
- value: 'off'
icon: power
Maybe there is problem with Generic Thermostat on scheduler-card also?
ps. no, this does not work with maxcube thermostat also.. without this - there is "Set Mode" with Auto, after i try to customize, no modes available.

Screenshot from 2020-10-30 21-34-18
Screenshot from 2020-10-30 21-38-34

from scheduler-component.

nelim avatar nelim commented on May 16, 2024

Ok, looks like there is a bug in Generic Thermostat, i cannot set temperature and change mode with one action/call and need 2 separate.
Thanks, i'm closing this.

from scheduler-component.

andreipopovici avatar andreipopovici commented on May 16, 2024

@nelim Could you expand on how you fixed or got around the Generic Thermostat bug? I am seeing the same issues.

from scheduler-component.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.