mirror of
https://github.com/CeeWeasel/fresh-home.git
synced 2026-08-09 18:40:14 -04:00
Bunches of fixes nd changes
This commit is contained in:
@@ -425,6 +425,27 @@ cards:
|
||||
return "temp-unknown";
|
||||
'
|
||||
|
||||
# The HVAC Delta can be positive or negative, depending on if the furnace, heat pump, or ac is running
|
||||
- entities:
|
||||
- sensor.hvac_multisensor_delta
|
||||
# An example of rounding up a number, i.e. a temperature of 90.1 becomes 91
|
||||
text_template: '${entity.state ? Math.ceil(entity.state) : "undefined"} F'
|
||||
class_template: '
|
||||
var temp = parseFloat(entity.state.replace("°", ""));
|
||||
if (temp < -30)
|
||||
return "temp-freeze";
|
||||
else if (temp < -20)
|
||||
return "temp-low";
|
||||
else if (temp < 10)
|
||||
return "temp-medium";
|
||||
else if (temp < 30)
|
||||
return "temp-high";
|
||||
else if (temp >= 100)
|
||||
return "temp-hot";
|
||||
else
|
||||
return "hidden-entity";
|
||||
'
|
||||
|
||||
- entities:
|
||||
- sensor.kitchen_fridge_thermostat_temperature
|
||||
text_template: '${entity.state ? Math.floor(entity.state) : "unknown"}'
|
||||
@@ -547,7 +568,8 @@ cards:
|
||||
'
|
||||
|
||||
- entities:
|
||||
- sensor.hvac_multisensor_salt_level_in_bags
|
||||
- sensor.water_softener_multisensor_salt_level_in_bags
|
||||
text_template: '${entity.state ? Math.floor(entity.state) : "undefined"}'
|
||||
class_template: '
|
||||
var bags = parseFloat(entity.state);
|
||||
if (bags > 4)
|
||||
@@ -729,7 +751,7 @@ cards:
|
||||
- binary_sensor.storage_room_door_contact
|
||||
- binary_sensor.mancave_door_contact
|
||||
- binary_sensor.boys_room_door_contact
|
||||
- binary_sensor.hvac_multisensor_door
|
||||
- binary_sensor.water_softener_multisensor_door
|
||||
#- binary_sensor.furnace_room_door_contact
|
||||
- binary_sensor.utility_room_door_contact
|
||||
states:
|
||||
|
||||
Reference in New Issue
Block a user