Comments (3)
You should use platform template for this, or I will add an infinite numbers of attributes.
Here an example (assuming that the name of your washer is "washer"):
sensor:
- platform: template
sensors:
washer_remain_time_in_minutes:
friendly_name: Remaining Minutes
value_template: >-
{% if is_state('sensor.washer', 'on') %}
{{(state_attr('sensor.washer', 'remain_time').split(':')[0]|int*60) +
(state_attr('sensor.washer', 'remain_time').split(':')[1]|int)
}}
{%endif%}
from ha-smartthinq-sensors.
Thank you for the solution. This code is how I did it for the automation script. The solution with the sensor is perfect and I can use the locelace circle card.
from ha-smartthinq-sensors.
Hi @dieneuser can you please share how you used it into automations?
from ha-smartthinq-sensors.
Related Issues (20)
- Failed to set up HOT 2
- Washing machine - run completed not update HOT 21
- LG Washer: new "pause" button logic is not quite right HOT 25
- Download gets stuck HOT 7
- I cannot log in HOT 1
- HA update from 2023.9.x to 2024.2.1 throws warnings - LG Minisplit AC HOT 3
- No `door_open` for `RC90V9_AUS-Dryer` (DRYER) or `F_VA_Y___W.B__QEUK-FL` (WASHER) HOT 2
- LG hood fan control HOT 1
- Stopped working after last HA 2024.2.2 update
- Error on Reboot - No Startup HOT 5
- Ducted air con Zones not available. HOT 18
- Integration stopped working HOT 4
- Error in Home Assistant Log HOT 1
- Issues with smartthinq sensors after core update to 24.2.3 HOT 1
- Refrigerator and Freezer temperatures not accurate HOT 1
- Can't start washer - "expecting property name enclosed in double quotes" HOT 6
- OVEN COOKTOP STATE not working? HOT 16
- ClimateEntityFeature.TURN_OFF implements the turn_off method HOT 1
- Display Light switch not working (Airco) HOT 2
- Support for power saving mode on AC HOT 2
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 ha-smartthinq-sensors.