Comments (10)
Happy that you find it useful!
It seems to be how I calculate remaining time. Something to do with timezones. I'm trying to fix it now, will return with answer when i have it 😄
from google_home_timers_card.
Should be fixed now. Was a problem with how i displayed the time after subtracting.
Can you please test it and give feedback 😄 Remember to download the new one from master and clear browser cache.
Browser cache can be cleared by activating developer mode for Chrome (Ctrl + Shift + i) and then right clicking the refresh icon in upper left corner and choose the last option.
from google_home_timers_card.
Can you give an example of proper yaml for configuration.yaml ?
what 'type' should be specified? I do not believe that 'javascript-module' is valid in yaml. I tried it with 2021.3.3 and when I restarted HA, it put system into safe mode... and that proceeded to hose up a bunch of stuff that took a number of restarts to straighten out. Thx for your work on this card and your help!
# https://github.com/DurgNomis-drol/google_home_timers_card
# - type: javascript-module # not valid
# - type: module
# - type: js
url: /local/custom-lovelace/google_home_timers_card/googletimers-card.js
from google_home_timers_card.
@deepcoder I don't personally use yaml mode for lovelace. But it should just be like this:
lovelace:
mode: yaml
resources:
- url: /local/googletimers-card.js
type: module
But js modules is on there way out in HA as I understand it. At some point I am gonna rewrite it to be in typescript, but i need to learn it first. 😄
Please post back if it works and i will add it to the readme. 😄
from google_home_timers_card.
@deepcoder Did you find a fix?
from google_home_timers_card.
Thanks for the fix and yaml documentation. I have yet to try it as the underlying google timer add in continue to have problems for me. I will try and post results as soon as I can get the add in running stable.
If the yaml you put above is correct, you should correct the documentation on the github readme.md file:
and then input /local/googletimers-card.js and change resourcetype to javascript-module
because when I tried :
- type: javascript-module
it put HA into 'safe' mode at next restart of HA. And this caused a cascade of issues that I had to work thru making it difficult to get back to testing your card.....
Thanks again for your work!
from google_home_timers_card.
@deepcoder When you get a chance to test it again, please leave some feedback. In the mean time i will add a note to the readme so people don't run into the same problem as you have done.
Home Assistant calls it a javascript-module
in UI and a module
in the underlaying ui-lovelace.yaml
file.
from google_home_timers_card.
Hi
If had a similar problem with the display. If changed in my local-code the line below from STATE_ON to ...UNKNOWN.
// if (state.state == STATE_ON || state_alarms.state == STATE_ON) {
if ( state.state != STATE_UNKOWN || state_alarms.state != STATE_UNKOWN) {
in the state of my timers is a time and not ON ... so it will never be true
state: 2021-03-26T02:00:17+01:00
Example of my entry:
timers:
- timer_id: timer/15447f01-4190-547e-1c03-d2a0281cb2b3
duration: '0:58:40'
fire_time: 1616720417
label: null
local_time: '2021-03-26 02:00:17'
local_time_iso: '2021-03-26T02:00:17+01:00'
integration: google_home
friendly_name: Living Room pair timers
icon: 'mdi:timer-sand'
device_class: timestamp
from google_home_timers_card.
Thanks for the feedback.
This is because i haven had the time to update it to use the newest version of Google home which was just released last night 🙂 Breaking changes was introduced and I will push a fix very very soon.
@ZWOOKY-Code But you are more then welcome to submit a PR 😁
from google_home_timers_card.
@deepcoder i will close this issue for now. If you are still having this issue you can reopen it again. 😊
@ZWOOKY-Code Please see #11 for updates on your issue.
from google_home_timers_card.
Related Issues (15)
- Adding "fire" time HOT 4
- Card not showing alarms HOT 6
- Uncaught TypeError: Cannot read property 'state' of undefined HOT 1
- Possibility of deleting alarms/timers HOT 6
- Name change to googlehome-card
- Update example image to reflect changes
- Add Do Not disturb toggle
- Add possibility to change Font Size with themes or card-mod HOT 1
- Use card in conditional card HOT 2
- Add visual add/edit card HOT 1
- Fix Numbers showing as NaN on IPAD/ IOS HOT 1
- More functions? HOT 1
- Alarms as well as timers HOT 8
- Inconsistency in font & sizing? HOT 1
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 google_home_timers_card.