Code Monkey home page Code Monkey logo

Comments (29)

rroller avatar rroller commented on July 17, 2024 1

I just tested this, works great and is exactly what I need. Would greatly appreciate it if this was merged back into main. Thanks for this!

from ha_blueprints.

SgtBatten avatar SgtBatten commented on July 17, 2024 1

Thanks for the feedback all. Will merge when I get a minute. Hopefully not long

from ha_blueprints.

SgtBatten avatar SgtBatten commented on July 17, 2024 1

Yes I've been meaning to for a long time. I need to not merge all the beta functions but most are stable now.

from ha_blueprints.

SgtBatten avatar SgtBatten commented on July 17, 2024

There is a seperate branch called custom action. I built in months ago as many people requested this. But no-one is providing feedback on it.

Please try it and let me know what can be improved for your use case

from ha_blueprints.

bmck0118 avatar bmck0118 commented on July 17, 2024

Perfect. I'll check it out and let you know. Thanks.

from ha_blueprints.

reesion avatar reesion commented on July 17, 2024

There is a seperate branch called custom action. I built in months ago as many people requested this. But no-one is providing feedback on it.

Please try it and let me know what can be improved for your use case

Hi,

I am using the custom action branch but am unable to see the additional options. Am i missing anything?

from ha_blueprints.

SgtBatten avatar SgtBatten commented on July 17, 2024

Please use the beta

from ha_blueprints.

SgtBatten avatar SgtBatten commented on July 17, 2024

Any feedback @reesion ?

from ha_blueprints.

reesion avatar reesion commented on July 17, 2024

Any feedback @reesion ?

Hi, unfortunately I am unable to get it to work. I added a condition for after sunset and before sunrise to trigger a light switch but it doesn’t seem to work.

from ha_blueprints.

SgtBatten avatar SgtBatten commented on July 17, 2024

it doesn’t seem to work.

It had been a while since I created it so after reviewing the code, I have reworked it just now. You will see 3 custom action fields now with some guidance

from ha_blueprints.

reesion avatar reesion commented on July 17, 2024

C

I have reworked it just now.

can’t seem to find the beta codes.
Is this the correct url?
https://github.com/SgtBatten/HA_blueprints/blob/beta/Frigate%20Camera%20Notifications/Beta ?

from ha_blueprints.

SgtBatten avatar SgtBatten commented on July 17, 2024

Is this the correct url?

https://github.com/SgtBatten/HA_blueprints/blob/custom_action/Frigate%20Camera%20Notifications/Beta

from ha_blueprints.

reesion avatar reesion commented on July 17, 2024

https://github.com/SgtBatten/HA_blueprints/blob/custom_action/Frigate%20Camera%20Notifications/Beta

this doesn’t seem to work. I am using the ‘Auto trigger’ and have removed the conditions to eliminate the issue and just put a service Switch: Toggle to turn on a switch but still not working.

from ha_blueprints.

SgtBatten avatar SgtBatten commented on July 17, 2024

Okay I will try to test soon

The manual trigger is working for me. Tested that yesterday to toggle a light

from ha_blueprints.

reesion avatar reesion commented on July 17, 2024

The manual trigger is working for me. Tested that yesterday to toggle a light

I have tested the manual trigger and can confirm it worked as well. Just couldn't get the 'Auto trigger' working

from ha_blueprints.

krystiancharubin avatar krystiancharubin commented on July 17, 2024

I've also been trying to get auto actions working but they are not triggering. Commented out most of the conditions leaving jus the length condition and it seems to still evaluate to false. Also tried to redefine it as a sequence variable since blueprint inputs are said to not work in template, but that also evaluated to false.

- alias: "Custom Action Auto"
  choose:
  - conditions:
      - "{{ custom_action_auto |length}}"
      # - "{{ not zone_only or (not zone_multi and zones|select('in', entered_zones)|list|length > 0) or (zone_multi and entered_zones|length > 0 and zones |reject('in', entered_zones) |list |length == 0) }}"
      # - "{{ not initial_home }}"
      # - "{{ not state_only or states(input_entity) in states_filter }}"
    sequence: !input "custom_action_auto"

from ha_blueprints.

SgtBatten avatar SgtBatten commented on July 17, 2024

I haven't had a chance to try yet. When looking at the trace tree and clicking on the conditions step for this does it say condition 0 is false?

from ha_blueprints.

krystiancharubin avatar krystiancharubin commented on July 17, 2024
Executed: August 28, 2023 at 7:58:28 AM
Result:
result: false
conditions/0
Executed: August 28, 2023 at 7:58:28 AM
Result:
result: false
entities: []

Creating action_auto variable from the input and changing the conditions to the following seems to make it enter the branch but it still did not seem to fire the action properly.

conditions:
  - '{{ action_auto |length > 0 }}'

btw this is the custom action I am trying to execute.

custom_action_auto:
  - service: notify.alexa_media
    data:
      message: Person detected at Front Door
      title: Frigate
      target:
        - media_player.living_room
      data:
        type: tts

EDIT: Retested with the variable and its working now.

from ha_blueprints.

SgtBatten avatar SgtBatten commented on July 17, 2024

Oh I know what it is.

Edit; you were on to it. I wasn't reading the input before testing how long it was. So always false as the variable didn't exist. I'll fix it later today.

from ha_blueprints.

SgtBatten avatar SgtBatten commented on July 17, 2024

Updated the custom action branch.

I have the looped action working fine now implementing a version of your fix @krystiancharubin so thanks.

from ha_blueprints.

krystiancharubin avatar krystiancharubin commented on July 17, 2024

Confirmed the new beta is working. Merging of variables in the custom action appears to work as well.

from ha_blueprints.

reesion avatar reesion commented on July 17, 2024

Confirmed the new beta is working for me as well. Thank you

from ha_blueprints.

rroller avatar rroller commented on July 17, 2024

Does the custom action fire after the notification is sent or before?
I'm asking because I'd like to make sure the custom action is fired as quickly as possible and am wondering if there's any delay currently because of the execution order?

from ha_blueprints.

SgtBatten avatar SgtBatten commented on July 17, 2024

Before from memory

from ha_blueprints.

SgtBatten avatar SgtBatten commented on July 17, 2024

closed with #96

from ha_blueprints.

rroller avatar rroller commented on July 17, 2024

Looks like there's no new release created?

from ha_blueprints.

SgtBatten avatar SgtBatten commented on July 17, 2024

The releases don't do anything, it's just a snapshot in time.

from ha_blueprints.

rroller avatar rroller commented on July 17, 2024

Will this be merged to the stable branch?

from ha_blueprints.

rroller avatar rroller commented on July 17, 2024

I copied it into my local stable copy and it works fine.

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.