Giter Site home page Giter Site logo

sirgoodenough / ha_blueprints Goto Github PK

View Code? Open in Web Editor NEW
112.0 9.0 17.0 52.67 MB

🧯 My Collection of Automation and Script Blueprints for Home Assistant 🧯

License: MIT License

blueprints home-assistant homeassistant automation sirgoodenough whatarewefixingtoday script

ha_blueprints's People

Contributors

a7qg59f2 avatar sirgoodenough avatar valiante avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

ha_blueprints's Issues

[BUG] Cube face 0 is shown in Blueprint but it responds as face 6 in reality

Which Blueprint is This Concern About / Related To?
https://github.com/SirGoodenough/HA_Blueprints/blob/master/Automations/Zigbee2MQTT-Aqara-Magic-Cube-T1-Pro-CTP-R01-Xiaomi-Lumi.yaml

Describe the bug
Descriptions and alias's talk about side 0 which doesn't exist instead of side 6 which does exist.

To Reproduce
https://discord.com/channels/693125294957133844/693156036214915082/1161268909094223902
As reported by CaptNightFlight on my Discord site:
Let me clarify: Yes, my cube is reporting from 1-6, but the issue is that some options from here require "face 0", which my cube does not got the 0 side, therefore I cannot use any event functions which need a 0 to trigger.
Seemed that the script is using 0-5, but the cube is running from 1-6?
image

Expected behavior
Descriptions and aliases should match actual on the cube.

Screenshots
Hi <@518814283170054165> , hope you're doing well! I have been trying to use my newly purchased Magic Cube T1 Pro with the Xiaomi Cube Controller MQTT Triggred Blueprint, but unfortunately, it does not work at the very beginning:
image
What I have done:
-Inputted the topic
-Legacy API Enabled
-Tested 5+ devices/actions but still forced to stop at the "Test template condition" stages
-Confirmed the HA is receiving actions made from the cube.
image
image
I just looked into the prior triggers, and I'm now able to enjoy the joy with the great blueprint scripts. Thank you so much! Just one thing to mention: my cube recognizes the 'Aqara' side as face 1 (instead of face 0). As a result, my face 6 is now not working since there's no field for face 6 in the GUI setting. Are there any ways to fix that?
What version of the blueprint has the issue?
2023-08-07

What was the version of Home Assistant Core?
current

What type of installation are you running?
Open your Home Assistant instance and show health information about your system.

YAML snippets INCLUDING the Script or Automation that you built to call the blueprint
(use 3 backticks before and after your code to format it properly)
See here for example: https://docs.github.com/en/get-started/writing-on-github/working-with-advanced-formatting/creating-and-highlighting-code-blocks

Additional context
This issue was translated from messages on my Discord.

[FR] Volume Control via cube

Is your feature request related to a problem? Please describe.
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]

Request from the BluePrint Exchange from https://community.home-assistant.io/u/seffyroff/summary

https://community.home-assistant.io/t/zha-xiaomi-cube-controller/495975/18?u=sir_goodenough

As it stands now I plan to use a version of this script BP:
https://github.com/SirGoodenough/HA_Blueprints/blob/master/Scripts/long_short_toggle_4_magic_cube.yaml
and set the short to a settable number like 1% volume and the long to a settable number like 10%.

Any Comments, concerns, suggestions?

HA_Blueprints/Automations /Zigbee2MQTT-Aqara-Magic-Cube-T1-Pro-CTP-R01-Xiaomi-Lumi.md

HA_Blueprints/Automations
/Zigbee2MQTT-Aqara-Magic-Cube-T1-Pro-CTP-R01-Xiaomi-Lumi.md

Hi, I have installed the subject Blueprint. I enter a trial automatism as in the picture, if I run it next to the specified part, it works. In the drop-down menu in the upper right corner of the screen, I don't think the run anymore works.
Last run indicates that it has never been run before and cannot be run manually. If I create automation with the cube elsewhere, either with the controlled device or with MQTT, it works. But the opportunity is much more than your development, which is why I insist on you. Thank you for looking at it: László
aqara
aqara2
aqara3

[FR] 0-100% for fan blueprint

I use a Zigbee 0-10v dimmer to control my hvac. Your fan blueprint works great but it would be cool if you could control it seamlessly between 0-100%.

A similar blueprint that is supposed to work like that, but couldn’t get it to work:

Request to add voice option to door_open_tts_cloud_say_announcer_nabu_casa_required

Hi,

Love the blueprint works great, just a small? Request or I hope it is, I’m not a developer 😛

But is it possible to add the voice option, like in the play media service?
Creating a setup for my brother and my niece likes this voice for her room, but the parents don’t want to have it as the default voice for the rest of the house 😉

image

FYI: Language support - Speech service - Azure AI services | Microsoft Learn

Thanks in advance!

Kind regards,

D

Case Sensitive issue in Zone and look-up list

Ground Rules
Before you report a 'Bug', you need to make sure you have read the accompanying *.md file or Community Exchange post main file completely and followed all the settings required there.
This is important as if these instructions are not followed, you will likely have a bad day and be forced to contact me for help. Not that I don't want to help, but personal interaction takes me a while to respond and is generally non-productive.

Issues are not a place to ask questions, see the Discord links below for that. This is for broken things. If you are not sure, PLEASE go to Discord and ask the question first.

If you have a general question, I prefer them to be asked on Discord. Ping me in the channel, I don't often respond to DM's... @SirGoodenough

I also monitor the Blueprint Exchange post related to each Blueprint and will respond there.

There are 3 places on Discord that I monitor, in preference order:

My personal Discord HA Channel: https://discord.gg/EqtsKMHAhv
DrZzs Blueprint channel: https://discord.gg/jvk7yEFyX3
Homa Assistant Blueprint Channel: https://discord.gg/jPPvqsWwzh

Do if you think you found a bug where the text points you wrong, or something is just broken, continue here. If you have a Feature Request, see the other Issue Template...

Describe the bug
I was experiencing the same thing. It turned out to be the case-sensitive nature of YAML, and the condition deciding Home <> home. https://community.home-assistant.io/t/person-alert-blueprint/542209/8?u=sir_goodenough

To Reproduce
Steps to reproduce the behavior:
On Discord here: https://discord.com/channels/693125294957133844/693156036214915082/1105419979827974165

Expected behavior
Home pulled from the zone matches Zine in the users status

Screenshots
If applicable, add screenshots to help explain your problem.

What version of the blueprint has the issue?
2023-03-01.1

What was the version of Home Assistant Core?
Open your Home Assistant instance and show health information about your system.

What type of installation are you running?
Open your Home Assistant instance and show health information about your system.

YAML snippets INCLUDING the Script or Automation that you built to call the blueprint
(use 3 backticks before and after your code to format it properly)
See here for example: https://docs.github.com/en/get-started/writing-on-github/working-with-advanced-formatting/creating-and-highlighting-code-blocks

Additional context
Add any other context about the problem here.
PR created containing proposed code.

[FR] Magic Cube Pro - Flip to side X action

Which Blueprint is This Concern About / Related To?
🧯 Zigbee2MQTT Aqara Magic Cube T1-Pro CTP-R01 Xiaomi Lumi

Is your feature request related to a problem? Please describe.
I'd like to be able to trigger an action when I move the dice to a side. Just have a “Flip to side 1” action instead of 5 actions.

Describe the solution you'd like
6 news actions: Flip to side 1, 2, 3, 4, 5 and 6.

Describe alternatives you've considered
I've tried adding them 6 times each, but this doesn't help maintainability on the user's end.

Aqara Magic Cube

Hey. First off thanks for making the HA templates. I am using the Aqara Cube one and it's been great.
But I ran into an issue today that I don't know if it even is an issue.
I had the template working well to control a TV and so on but after some error with Zigbee2MQTT (z2m) that kept devices from reporting their state to HA, and an well timed z2n update release that fixed this, suddenly the template won't function.
I'm guessing it's the template because if I set up an automation manually everything works fine. Only that which used, and or newly uses, the Aqara Cube blueprint won't function.
I tried a new Automation based off the blueprint, and I tried deleting the blueprint and re adding it from GitHub. Neither helped.
Any ideas?

What version of the blueprint has the issue?
Aqara Magic Cube Zigbee2MQTT - 2022-05-05

What was the version of Home Assistant Core?
core-2022.7.7

What type of installation are you running?
Home Assistant Supervised

YAML snippets INCLUDING the Script or Automation that you built to call the blueprint

- id: '1659285890446'
  alias: Aqara Magic Cube LR
  description: ''
  use_blueprint:
    path: SirGoodenough/Zigbee2MQTT - Xiaomi Cube Controller.yaml
    input:
      remote: sensor.aqara_smart_cube_lr_action
      doubletap_any: []
      rotate_ccw_any: []
      doubletap_face_0:
      - service: media_player.media_play_pause
        data: {}
        target:
          entity_id: media_player.android_tv_192_168_1_21
      rotate_cw_face_0:
      - service: media_player.volume_up
        data: {}
        target:
          entity_id: media_player.android_tv_192_168_1_21
      - service: media_player.volume_up
        data: {}
        target:
          entity_id: media_player.android_tv_192_168_1_21
      rotate_ccw_face_0:
      - service: media_player.volume_down
        data: {}
        target:
          entity_id: media_player.android_tv_192_168_1_21
      - service: media_player.volume_down
        data: {}
        target:
          entity_id: media_player.android_tv_192_168_1_21
      slide_face_0:
      - service: media_player.volume_mute
        data:
          is_volume_muted: false
        target:
          entity_id: media_player.android_tv_192_168_1_21
      doubletap_face_3:
      - if:
        - condition: device
          device_id: 42f26eca0268c27680edb01d86860ea7
          domain: media_player
          entity_id: media_player.android_tv_192_168_1_21
          type: is_on
        then:
        - service: media_player.turn_off
          data: {}
          target:
            entity_id: media_player.android_tv_192_168_1_21
        else:
        - service: media_player.turn_on
          data: {}
          target:
            entity_id: media_player.android_tv_192_168_1_21

Additional context
Add any other context about the problem here.

[FR] Add transition value to dimmer script

Which Blueprint is This Concern About / Related To?
https://github.com/SirGoodenough/HA_Blueprints/blob/master/Scripts/dimmer_control_4_magic_cube.yaml

Is your feature request related to a problem? Please describe.
Transition happens really jerkily while dimming with a rotation of the cube.

Describe the solution you'd like
A customizable input field where you can specify how long the transition should last.

Describe alternatives you've considered
None

Additional context
I added a static transition value in your blueprint, works well.

[FR] Change empty input statements various

Is your feature request related to a problem? Please describe.
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]

Describe the solution you'd like
A clear and concise description of what you want to happen.

Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.

Additional context
Add any other context or screenshots about the feature request here.

Find similar:

    - alias: Do something when the fan stop condition triggers
      if: '{{ not my_off_action in (''none'', ''null'', ''unavailable'', '''') }}'
      then: !input 'off_action'

and change to:

    - alias: Do something when the fan stop condition triggers
      if: "{{ my_off_action | default('') }}"
      then: !input 'off_action'

extended example on colorchange script aqara cube

Can you provide a more complete example on the color change section please?
If i copy paste it in an empty script it generates errors.
This is probably very logical but i can't figure out how to use it.
thanks a lot by the way for this addon!

[BUG] Conflict with Awtrix & topic 'cube' with last_side variable.

Which Blueprint is This Concern About / Related To?
All 3 cube blueprints

Describe the bug
Reported on Discord:
https://discord.com/channels/693125294957133844/693156036214915082/1161720199670673448
madmax — Yesterday at 12:41 PM
In fact, I've figured out why the "last side" variable created by your blueprint suddenly stopped working. It turns out that when I added an Awtrix Light and activated it in Home Assistant, the "last side" variable gave me the message "This entity is no longer provided by the MQTT integration." However, when I deactivate this MQTT device (Awtrix Light), it starts working again.

So, the root of my issue seems to be that having both MQTT streams active at the same time is causing a problem for this variable provided by your code. I apologize for any language confusion. Do you have any ideas on where to look in Home Assistant to resolve this?

To Reproduce
install a cube BP with Awtrix installed.

Expected behavior
They should work happy, even if the cube is named cube.
Once the name of the cube was changed, the conflict went away.

Additional context
Add any other context about the problem here.

Shake not working

Hello,
I'm trying a simple action (shake) to trigger a scene, but it's not working.

id: '1657894243328'
alias: Aqara Magic Cube Zigbee2MQTT - 2022-05-05
description: ''
use_blueprint:
path: SirGoodenough/Zigbee2MQTT - Xiaomi Cube Controller.yaml
input:
shake:
- service: scene.turn_on
target:
entity_id: scene.zolder_zolder_oranje
metadata: {}
remote: sensor.aqara_cube_action

The trace timeline shows:
Triggered by the state of sensor.aqara_cube_action at July 15, 2022 at 4:22:26 PM
Test template condition
Stopped because a condition failed at July 15, 2022 at 4:22:26 PM (runtime: 0.00 seconds)

[User issue] Action that calls an unknown service

Hi,
i am sorry to bother you, but i can't get the dimmer control to work. Following error occurs:
image

the scripts part:
image

and the actions in the automation:
image

All parts were just copy & pasted, no personal adoptions.

Other stuff like tapping sides to turn on/off the selected light work porperly.
Do you have an idea, what is going wrong?

warning: 'dict object' has no attribute[BUG]

Blueprint: Aqara Magic Cube Zigbee2MQTT MQTT Triggered - 2023-10-20
get this every time i use the cube.
Template variable warning: 'dict object' has no attribute 'operation_mode' when rendering '{{ trigger.payload_json.operation_mode }}'

Helper not capturing last cube side

Describe the bug
Helper not capturing the Last side. it's seem to skip passed it, yet I noticed the automation runs twice within a few millseconds. I'm not sure if this is normal.

To Reproduce
Steps to reproduce the behavior:

  1. Go to '....'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

Expected behavior
Helper created from the blueprint should be capturing the last side the cube was on, as per the blueprint settings

Screenshots
https://imgur.com/a/9vXopOd
this is taken from MQTT explore
https://imgur.com/9KPJXod
taken of the automation trace showing it skipping the last side element
https://imgur.com/a/gqrpKwH
the blank helper

What version of the blueprint has the issue?
2023.3.0

What was the version of Home Assistant Core?
core-2023.3.3

What type of installation are you running?
Home Assistant OS

YAML snippets INCLUDING the Script or Automation that you built to call the blueprint

- id: '1679165451196'
  alias: test
  description: ''
  use_blueprint:
    path: SirGoodenough/Zigbee2MQTT-Aqara-Magic-Cube-T1-Pro-CTP-R01-Xiaomi-Lumi.yaml
    input:
      topic: zigbee2mqtt/Cube_Desk
      action_doubletap_face_1:
      - service: light.toggle
        entity_id: light.desk_lamp
      action_rotate_cw_face_1:
      - service: light.turn_on
        entity_id: light.desk_lamp
        data_template:
          brightness: '{{states.light.desk_lamp.attributes.brightness + 30}}'
      action_rotate_ccw_face_1:
      - service: light.turn_on
        entity_id: light.desk_lamp
        data_template:
          brightness: '{{states.light.desk_lamp.attributes.brightness - 30}}'
      action_doubletap_face_2:
      - service: script.turn_on
        entity_id: script.lg_playroom_pc_on
      action_flipped90_face_3:
      - service: light.turn_on
        entity_id: light.games_room
      action_doubletap_face_3:
      - service: light.turn_on
        entity_id: light.games_room
        data:
            brightness: 76
      action_rotate_cw_face_3:
      - service: light.turn_on
        entity_id: light.games_room
        data_template:
          brightness: '{{states.light.games_room.attributes.brightness + 30}}'
      action_rotate_ccw_face_3:
      - service: light.turn_on
        entity_id: light.games_room
        data_template:
          brightness: '{{states.light.games_room.attributes.brightness - 30}}'
      action_flipped90_face_5:
      - service: media_player.turn_on
        data: {}
        target:
          entity_id: media_player.alexander_tv
      action_doubletap_face_5:
      - service: media_player.select_source
        entity_id: media_player.alexander_tv
        data:
          source: YouTube

Additional context
Add any other context about the problem here.

[FR] Add Markdown to script Descriptions

Is your feature request related to a problem? Please describe.
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]

Markdown for Script Blueprints has been extended to Scripts as a feature parody. Review Script BP's and put the Markdown in where you wanted to before.

Describe the solution you'd like
A clear and concise description of what you want to happen.

Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.

Additional context
Add any other context or screenshots about the feature request here.

[BUG] ZHA Cube BP reports side 0 on event sensor

Which Blueprint is This Concern About / Related To?
ZHA-Xiaomi_Cube_Controller

Describe the bug
No matter what side the cube is on, the BP's event sensor reports side 0 as the side when rotating.
Cube action works as expected, but the event sensor reports wrong.

To Reproduce
Steps to reproduce the behavior:
Watch the sensor results, it reports wrong.

Expected behavior
Reports the rotate side that the action is actually occurring on

Screenshots
If applicable, add screenshots to help explain your problem.

What version of the blueprint has the issue?

  • 2023-08-07: Updates for Home Assistant 2023.8

What was the version of Home Assistant Core?
Open your Home Assistant instance and show health information about your system.
any

What type of installation are you running?
Open your Home Assistant instance and show health information about your system.
haos

YAML snippets INCLUDING the Script or Automation that you built to call the blueprint
(use 3 backticks before and after your code to format it properly)
See here for example: https://docs.github.com/en/get-started/writing-on-github/working-with-advanced-formatting/creating-and-highlighting-code-blocks

Additional context
Add any other context about the problem here.

[FR] Temp off variable for fan blueprint

Would it be possible to add an offset for the off temperature? For example: I set the desired temp to 23 degrees. When my HVAC starts it cools down my temp sensors so quickly that it turns off after a very short time. And then starts again and so on. It would be great if it could set it to turn off at maybe 22.5 and then start again at 23. Like a hysteresis.

This blueprint uses separate temp off but can’t get it to work:

https://community.home-assistant.io/t/multi-speed-fan-control-based-on-temperature/552322

Person_alert_Blueprint mixed with some water :-)

Sir,

many thanks for sharing all this !

please have a look at the links under the Person_alert_Blueprint item.
They are copy and past from the water and not updated :-(

Minor, I know, but felt should report it to you.

Keep up the good work!

Frank

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.