Comments (2)
Just my two cents, but I think this enhancement would be better suited to the Conditional Lovelace card as its the one with the limitation, it probably should have an "operator: and/or" option or something. That said, you can get this to work by creating a binary_sensor that toggles based on both states, with the template platform in configuration.yaml like so:
- platform: template
sensors:
kitchen_timers:
friendly_name: "Kitchen Alarms/Timers"
value_template: '{{ states("sensor.kitchen_speaker_timers") != "unavailable" or states("sensor.kitchen_speaker_alarms") != "unavailable" }}'
Then set your card to use the binary_sensor like so:
type: conditional
conditions:
- entity: binary_sensor.kitchen_timers
state: 'on'
card:
type: custom:googletimers-card
entity: sensor.kitchen_speaker_timers
alarms_entity: sensor.kitchen_speaker_alarms
title: Kitchen
from google_home_timers_card.
Sorry for the late answer. I am not able to continue this project, though i would love to. But the underlying integration does not work for me unfortunately anymore.
@ejpenney Solution should work and i agree that the built in conditional card should be updated to handle the and/or scenario. I was working on a solution for this card, but the hole thing came to a stand still because of the problems i have.
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
- Add visual add/edit card HOT 1
- Fix Numbers showing as NaN on IPAD/ IOS HOT 1
- More functions? HOT 1
- Display problem, possibly due to 24 hour clock setting HOT 10
- 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.