Giter Club home page Giter Club logo

hass-blueprints's Introduction

Home-Assistant blueprints

My personnal collection of Home-Assistant's blueprints

Advanced medication reminder

Get advanced notification and history for medication reminder

Android version

medication_reminder_android.yaml

Open your Home Assistant instance and show the blueprint import dialog with a specific blueprint pre-filled.

iOS version

medication_reminder_ios.yaml

Open your Home Assistant instance and show the blueprint import dialog with a specific blueprint pre-filled.


Vacuum maintenance reminder

Get a notification when your Xiaomi vacuum needs maintenance (tested with Roborock S5 Max)

vacuum_maintenance_reminder.yaml

Open your Home Assistant instance and show the blueprint import dialog with a specific blueprint pre-filled.


Window and temperature

Watch and alert on window state according to temperature

window_temperature.yaml

Open your Home Assistant instance and show the blueprint import dialog with a specific blueprint pre-filled.


Nodon Z-Wave Remote (with Z-Wave JS)

Run action on Nodon Remote actions

nodon-zwave-remote.yaml

Open your Home Assistant instance and show the blueprint import dialog with a specific blueprint pre-filled.

hass-blueprints's People

Contributors

aohzan avatar kreene1987 avatar ryanneufeld avatar

Stargazers

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

Watchers

 avatar

hass-blueprints's Issues

Error in 'choose[0]' evaluation: In 'template' condition: UndefinedError: 'None' has no attribute 'event'

@Logger: homeassistant.helpers.script
Source: helpers/script.py:409
 First occurred: 22:30:00 (3 occurrences)
Last logged: 22:30:00

 Error in 'choose[0]' evaluation: In 'template' condition: UndefinedError: 'None' has no attribute 'event' 
Logger: homeassistant.helpers.template
Source: helpers/template.py:536
First occurred: 22:30:00 (3 occurrences)
Last logged: 22:30:00

Template variable error: 'None' has no attribute 'event' when rendering '{{ wait.trigger.event.data.actionName == 'taken' }}'
Template variable error: 'None' has no attribute 'event' when rendering '{{ wait.trigger.event.data.actionName == 'later' }}'
Template variable error: 'None' has no attribute 'event' when rendering '{{ wait.trigger.event.data.actionName == 'skip' }}'

My Automation

- id: '1667946269544'
  alias: medication jon
  description: ''
  use_blueprint:
    path: Aohzan/medication_reminder_ios.yaml
    input:
      reminder_time: '22:25:00'
      notify_device: 930fc2b96b822afa942def34c7d2ad88
      input_boolean: input_boolean.medicationjon
      ask_later_wait_time: 5

Using the blueprint IOS

Notifications do not work in latest home assistant.

I've setup the automation using your blueprint, but when it activates, the notifications come back immediately

homeassistant    | 2022-12-12 15:35:47.753 INFO (MainThread) [homeassistant.components.automation.medication_reminder_ryan] Medication reminder (Ryan): Notify until the medication has been take: Choose at step 5: default: Running automation actions
homeassistant    | 2022-12-12 15:35:47.753 INFO (MainThread) [homeassistant.components.automation.medication_reminder_ryan] Medication reminder (Ryan): Notify until the medication has been take: Choose at step 5: default: Executing step device automation
homeassistant    | 2022-12-12 15:35:47.915 INFO (MainThread) [homeassistant.components.mobile_app.notify] mobile_app push notification rate limits for Ryans phone: 10 sent, 500 allowed, 0 errors, resets in 0:24:12
homeassistant    | 2022-12-12 15:35:47.915 INFO (MainThread) [homeassistant.components.automation.medication_reminder_ryan] Medication reminder (Ryan): Notify until the medication has been take: Choose at step 5: default: Executing step call service
homeassistant    | 2022-12-12 15:35:47.916 INFO (MainThread) [homeassistant.components.automation.medication_reminder_ryan] Medication reminder (Ryan): Repeating Notify until the medication has been take: Iteration 2
homeassistant    | 2022-12-12 15:35:47.917 INFO (MainThread) [homeassistant.components.automation.medication_reminder_ryan] Medication reminder (Ryan): Notify until the medication has been take: Running automation actions
homeassistant    | 2022-12-12 15:35:47.917 INFO (MainThread) [homeassistant.components.automation.medication_reminder_ryan] Medication reminder (Ryan): Notify until the medication has been take: Executing step call service
homeassistant    | 2022-12-12 15:35:47.918 INFO (MainThread) [homeassistant.components.automation.medication_reminder_ryan] Medication reminder (Ryan): Notify until the medication has been take: Choose at step 2: choice 1: Running automation actions
homeassistant    | 2022-12-12 15:35:47.919 INFO (MainThread) [homeassistant.components.automation.medication_reminder_ryan] Medication reminder (Ryan): Notify until the medication has been take: Executing step device automation
homeassistant    | 2022-12-12 15:35:48.132 INFO (MainThread) [homeassistant.components.mobile_app.notify] mobile_app push notification rate limits for Ryans phone: 10 sent, 500 allowed, 0 errors, resets in 0:24:11
homeassistant    | 2022-12-12 15:35:48.132 INFO (MainThread) [homeassistant.components.automation.medication_reminder_ryan] Medication reminder (Ryan): Notify until the medication has been take: Executing step wait for trigger (timeout: 0:30:00)
homeassistant    | 2022-12-12 15:35:48.133 INFO (MainThread) [homeassistant.components.automation.medication_reminder_ryan] Medication reminder (Ryan): Notify until the medication has been take: Initialized trigger
homeassistant    | 2022-12-12 15:37:35.308 INFO (MainThread) [homeassistant.helpers.entity_registry] Registered new automation.automation entity: automation.advanced_medication_reminder_android
homeassistant    | 2022-12-12 15:37:35.312 INFO (MainThread) [homeassistant.components.automation.advanced_medication_reminder_android] Initialized trigger Advanced medication reminder (Android)

If I tap on the notification and open the HomeAssistant app it will clear. But when I select "taken" or "remind" or "skip" it just comes back immediately.

notification does not show options

Thanks for the blueprints, @Aohzan. I imported the latest blueprint for medication reminders. It notifies me, but when I click on the notification, it simply opens the HA app on my iPhone and there are no options to choose. I'm using iOS 17.0.3 with the latest HA iOS app. Home Assistant 2023.4.4 Frontend 20230411.1.

Maybe it's not a specific problem to this blueprint but something else? It's the first time I'm using notifications with HA, other than just testing.

Fails to add to GUI after creating automation

This creates the entry into the automation.yaml file but the automation does not show up in the GUI or trigger when running. Home Assistant provides the following error:

Blueprint Advanced medication reminder generated invalid automation with inputs OrderedDict([('reminder_time', '10:00:00'), ('notify_device', '65f01c64a9dd6df8fe29a1521c3cc3a7'), ('input_boolean', 'ammedskeith'), ('optional_action', [])]): not a valid value for dictionary value @ data['action'][0]['target']['entity_id']. Got None

I am not sure what the problem is - can you please advise?

Notification actions not doing anything (Android)

Heya,

It seems that the notification actions aren't doing anything on Android (OnePlus).

It doesn't open the app if I click on the options (only on the main notifications), and I can't see anything in the logs that would indicate that those actions are being logged.

image

alias: Medication reminder (Alex)
description: ""
use_blueprint:
  path: Aohzan/medication_reminder_android.yaml
  input:
    reminder_time: "23:00:00"
    notify_device: c04a27331390c64d531ab2d188a49e2e
    input_boolean: input_boolean.alex_medication_boolean
    optional_action: []

Two different phones are having this particular behaviour.

FR: Recommended Combining Blueprints into One

From another blueprint if you add a toggle;

  input:
    is_ios:
      name: Is it an iOS device?
      description: Toggle if your selected device runs iOS, default is Android
      selector:
        boolean: {}
      default: false

Then variable:

variables:
  is_ios: !input 'is_ios'

Then define the data based on:

- device_id: !input 'notify_device'
  domain: mobile_app
  type: notify
  title: '{{ notification_title }}'
  message: '{{ notification_message }}'
  data: '{% set android_data = {"image": "%s"} | format(snapshot_access_file_path)
    %} {% set ios_data = {"attachment": {"url": "%s", "content_type": "JPEG"}} | format(snapshot_access_file_path)
    %} {{ ios_data if is_ios else android_data }}'

Advanced Medication Reminder: Error: In 'template' condition: UndefinedError: 'None' has no attribute 'event'

Firstly, thank you for writing this blueprint. I love it.

I am experiencing a slight issue when using it and I am hoping you can help. The automation works fine but I cannot respond to the event notifications. No matter what option I choose for the notification (taken, skip, delay) there is an error in the log during the choose condition and the automation defaults to dismissing the notification.

I have set-up a button to manually set the input boolean to "on" and mark the medication as taken but it would be nice to use the event notifications that you included.

The error is: Error: In 'template' condition: UndefinedError: 'None' has no attribute 'event'

Here is a screenshot of the automation timeline showing the error:
Screenshot 2022-07-05 at 12 04 00

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.