Comments (18)
same behavior with daikin when the device was set to "only fan" mode.
from simple-thermostat.
I'm seeing the same behaviour with my Nest thermostat when it goes into 'Eco' mode.
Duplicate of #4
from simple-thermostat.
Same behaviour with KNX thermostat.
from simple-thermostat.
@FlashGordon7 can you please explain where to apply your fix? i don't find the line of code you suggest
from simple-thermostat.
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.
@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.
the code is all obsfucated now can't even fix it
from simple-thermostat.
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.
@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.
@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 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.
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.
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.
I see the same issue on ecobee 4 when the thermostat is in mode "off"
from simple-thermostat.
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.
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.
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.
This should be fixed in 0.22. Please reopen the issue if the problem persists
from simple-thermostat.
Related Issues (20)
- Updating color
- Enable Follow Me mode on the Cielo Breez units (Breez Max)
- Localization for modes none, eco, away, sleep, home, comfort HOT 4
- Project status HOT 2
- Translate State HOT 1
- Canβt find a way to change font size or background colour HOT 4
- Enable use of template sensors
- Weird layout with none parsed texts for preset and control HOT 4
- invert property for faults
- Water-heater entity support
- Please help to fix config screen have something wrong to can't adjust card
- Unwanted text before hvac modes HOT 5
- Error viewing card HOT 4
- How change color fan-only icon on aqua?
- custom element doesnt exist simple thermostat - on my ipad HOT 1
- away_indefinitely being displayed HOT 1
- Using Ecobee via Homekit displays "ui.card.climate.operation" header for modes HOT 1
- add buttons for vane_horizontal
- Heat/Cool missing button
- Minimal temperature threshold option
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from simple-thermostat.