Code Monkey home page Code Monkey logo

Comments (3)

Carve avatar Carve commented on July 17, 2024

@SgtBatten is this possible?

from ha_blueprints.

SgtBatten avatar SgtBatten commented on July 17, 2024

I believe it's possible. Either through changing the cooldown to have the ability to reference other entities or reworking the trigger in some fashion.

I just haven't had time to try it yet, sorry everyone.

from ha_blueprints.

KHV8 avatar KHV8 commented on July 17, 2024

@SgtBatten, I have made a small and easy to implement change, expanding the silence function to two/more camera automations.

I have never tried to make a pull request, and could not figure out. Hence a super simple description below. Fell free to implemented if deemed needed/OK.

First part is a input in the blueprint. Include the following.

list_of_cameras_to_disable:
  name: List of related cameras to silience
  description: Chose the automation created for the related camera. Chose all relevant. Do not include this automation
  default: []
  selector:
    entity:
      domain: automation
      multiple: true

Then a change in the action part, during the first chose for "id: silience". Replace all of the sequence part with the below

    sequence:
      - service: automation.turn_off
        target:
          entity_id: !input list_of_cameras_to_disable
        data:
          stop_actions: false
      - service: automation.turn_off
        target:
          entity_id: '{{ this.entity_id }}'
        data:
          stop_actions: false
      - delay:
          minutes: !input silence_timer
      - service: automation.turn_on
        target:
          entity_id: !input list_of_cameras_to_disable
      - service: automation.turn_on
        target:
          entity_id: '{{ this.entity_id }}'

from ha_blueprints.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.