Quantcast
Channel: Configuration - Home Assistant Community
Viewing all articles
Browse latest Browse all 109086

Nest HVAC Fan Dynamic Timer

$
0
0

Hi all, I am looking to create a card which has a dynamic timer for my furnace fan allowing me to increase or decrease the runtime as well as show a countdown for the time remaining. Admittedly, my YAML skills are fairly underwhelming however have been able to fumble along through modification of some existing YAML code on the forums. I have been able to setup the dashboard card showing what I would like, however I am having difficulties with the corresponding timer / integration between the timer and card. Here is the code that I currently have for the card, can someone please help me with the timer YAML code as well as corresponding integration into the card YAML code?

type: custom:button-card
variables:
  my-timer:
    - x
styles:
  grid:
    - grid-template-areas: "\"time plus\" \"time minus\""
    - grid-template-columns: 3fr 1fr
    - grid-template-rows: 1fr 1fr
custom_fields:
  time:
    card:
      type: custom:button-card
      entity:
        - x
      layout: icon_name_state2nd
      icon: mdi:fan
      show_name: true
      show_icon: true
      show_state: true
      show_label: true
      name: Furnace Fan Timer
      tap_action:
        action: call-service
        service: timer.start
        service_data:
          entity_id:
            - x
          duration: "00:10:00"
      hold_action:
        action: more-info
      card_mod:
        style: |
          ha-card {
            border: none;
            margin-top: 0px;
            margin-left: 0px;
          }
  plus:
    card:
      type: custom:mushroom-template-card
      entity:
        - x
      icon: mdi:plus
      primary: 2 Min
      tap_action:
        action: call-service
        service: script.add_time_to_timer
        service_data:
          timer_entity:
            - x
          minutes: 2
      icon_color: blue
      card_mod:
        style: |
          ha-card {
           border: none;
             }
  minus:
    card:
      type: custom:mushroom-template-card
      entity:
        - x
      icon: mdi:minus
      primary: 2 Min
      tap_action:
        action: call-service
        service: timer.change
        target:
          entity_id:
            - x
        service_data:
          duration: "-00:2:00"
      icon_color: red
      card_mod:
        style: |
          ha-card {
           border: none;

2 posts - 2 participants

Read full topic


Viewing all articles
Browse latest Browse all 109086

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>