Git Product home page Git Product logo

Comments (18)

MatteGary avatar MatteGary commented on September 13, 2024 1

same behavior with daikin when the device was set to "only fan" mode.

from simple-thermostat.

stickystyle avatar stickystyle commented on September 13, 2024

I'm seeing the same behaviour with my Nest thermostat when it goes into 'Eco' mode.

Duplicate of #4

from simple-thermostat.

hohenstaufen avatar hohenstaufen commented on September 13, 2024

Same behaviour with KNX thermostat.

from simple-thermostat.

MatteGary avatar MatteGary commented on September 13, 2024

@FlashGordon7 can you please explain where to apply your fix? i don't find the line of code you suggest

from simple-thermostat.

nervetattoo avatar nervetattoo commented on September 13, 2024

Is this really a duplicate of #4?
Does the thermostat use a single temp control when not in Eco mode and then switches to range based when in eco?

from simple-thermostat.

MatteGary avatar MatteGary commented on September 13, 2024

@nervetattoo wouldn't it be easier just to do something like "not showing anything" in case target temp is null? every climate device has his own different behavior, I think it's easier to just don't show NULL at least

from simple-thermostat.

anthonym21 avatar anthonym21 commented on September 13, 2024

the code is all obsfucated now can't even fix it

from simple-thermostat.

nervetattoo avatar nervetattoo commented on September 13, 2024

Yes @MatteGary, there needs to be better handling. It could fall back to N/A, but that and all other solutions that doesn't show the target temperature will be bad and cause confusion. I mean, if the entire temperature control disappears people will start reporting bugs on that as well.

What would help a lot is to see some examples of what the entity attributes look like when this happens. You can get that from the /dev-state page in HA. As you mention different devices/platforms work in different ways and without having the devices myself its hard to know what potential attribute combinations can exist.

@anthonym21 The actual source is in index.js but you need to run yarn build to produce the actual card file. Its strictly not obfuscated but transpiled for compatibility and minimized for size. It is still the same JS just a lot harder to read and modify :D

from simple-thermostat.

MatteGary avatar MatteGary commented on September 13, 2024

@nervetattoo here's my entity attributes.
I have a Daikin Climate unit

{
"current_temperature": 21,
"min_temp": 7,
"max_temp": 35,
"temperature": null,
"target_temp_step": 1,
"fan_mode": "Auto",
"fan_list": [
"1",
"2",
"3",
"4",
"5",
"Auto",
"Silence"
],
"operation_mode": "off",
"operation_list": [
"fan_only",
"dry",
"cool",
"heat",
"auto",
"off"
],
"swing_mode": "Off",
"swing_list": [
"3D",
"Horizontal",
"Off",
"Vertical"
],
"friendly_name": "Camera",
"supported_features": 705,
"icon": "mdi:hotel"
}

from simple-thermostat.

hohenstaufen avatar hohenstaufen commented on September 13, 2024

@nervetattoo here is the entity attributes for a KNX thermostat, maybe it can be useful.

{
  "current_temperature": 22.2,
  "min_temp": null,
  "max_temp": null,
  "temperature": null,
  "target_temp_step": 0.5,
  "operation_mode": "Comfort",
  "operation_list": [
    "Auto",
    "Comfort",
    "Standby",
    "Night",
    "Frost Protection"
  ],
  "friendly_name": "Room",
  "supported_features": 129
}

from simple-thermostat.

nervetattoo avatar nervetattoo commented on September 13, 2024

@nervetattoo here is the entity attributes for a KNX thermostat, maybe it can be useful.

Do you mind showing what it looks like when it is in other modes @hohenstaufen ? I think that is the source of some issues

from simple-thermostat.

jamesw4 avatar jamesw4 commented on September 13, 2024

I am getting same issue with nest when its in eco mode. When in eco mode the temperature value of the climate entity is null. In all other modes it shows what the temperature is set to.

from simple-thermostat.

dheath73 avatar dheath73 commented on September 13, 2024

I'm also getting same issue with nest when its in eco mode. When eco mode is set the temperature value of the climate entity is 'null'.

from simple-thermostat.

crzykidd avatar crzykidd commented on September 13, 2024

I see the same issue on ecobee 4 when the thermostat is in mode "off"

from simple-thermostat.

jamesw4 avatar jamesw4 commented on September 13, 2024

This logic seems broken, N/A will never be returned because of the statements that follow...........

function formatNumber(number, decimals = 1) {
const [int, dec] = String(number).split('.')
if (Number.isNaN(int)) {
return 'N/A'
}
if (decimals) {
return ${int}.${dec || '0'}
} else {
return Math.round(int)
}
}

from simple-thermostat.

jamesw4 avatar jamesw4 commented on September 13, 2024

In addition to my last comment I'm finding Number.isNaN to not work how I would expect. I've changed my copy slightly by just checking to start with if its null, if so display N/A otherwise carry out the other logic for decimals.

With the latest version I have replaced the section of code

function ct(t,e=1){const[s,i]=String(t).split(".");return Number.isNaN(s)?"N/A":e?${s}.${i||"0"}:Math.round(s)}

with

function ct(t,e=1){const[s,i]=String(t).split(".");return null==t?"N/A":e?${s}.${i||"0"}:Math.round(s)}

from simple-thermostat.

dustins1983 avatar dustins1983 commented on September 13, 2024

I absolutely love this card, but I cant use it until this is fixed. Not very wife friendly. PLEASE fix or show us how to!! It used to display set temp, even when off.

from simple-thermostat.

nervetattoo avatar nervetattoo commented on September 13, 2024

This should be fixed in 0.22. Please reopen the issue if the problem persists

from simple-thermostat.

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.