Coder Social home page Coder Social logo

jumping2000 / ha-templates Goto Github PK

View Code? Open in Web Editor NEW
12.0 4.0 0.0 722 KB

Home Assistant Template, Blueprint, Jinja, Appdaemon

License: GNU General Public License v3.0

appdaemon appdaemon-apps automation blueprint blueprints home-assistant home-automation jinja jinja-template jinja2

ha-templates's Introduction

Hi there ๐Ÿ‘‹

  • ๐Ÿ”ญ Iโ€™m currently working on:
    • DIY presence sensor based on LD2410C
    • YAML packages for Home Assistant
  • ๐Ÿ“ซ How to reach me:

Websitebadge Forum telegrambadge facebookbadge

โšก Recent Activity

  1. ๐Ÿ”’ Closed issue #67 in jumping2000/notifier
  2. ๐Ÿ—ฃ Commented on #67 in jumping2000/notifier
  3. ๐Ÿš€ Published release Minor Fix in jumping2000/notifier
  4. ๐Ÿš€ Published release Minor Fix in jumping2000/notifier
  5. ๐Ÿ”’ Closed issue #66 in jumping2000/notifier

Main projects

Centro notifiche

Appdaemon Notifier

Home Assistant Packages & other

HA Packages HA Templates

Repo Stats

Gianpit Gianpit



Websitebadge Forum telegrambadge facebookbadge

ha-templates's People

Contributors

jumping2000 avatar

Stargazers

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

Watchers

 avatar  avatar  avatar  avatar

ha-templates's Issues

Error while processing template

Blueprint name

Blueprint

Description

Errore segnalato dal Core

2023-10-13 10:16:56.277 WARNING (MainThread) [homeassistant.components.template.trigger] Error initializing 'template' trigger for 'CN FSM Elettrodomestici 2023.9.0 Asciugatrice': ZeroDivisionError: integer modulo by zero
2023-10-13 10:16:56.280 ERROR (MainThread) [homeassistant.helpers.event] Error while processing template: Template<template=({{ states(counter_sensor)|int(default=0) % states(helper_maintenance_alert)|int(default=0) == 0 }}) renders=3>
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/template.py", line 568, in async_render
    render_result = _render_with_context(self.template, compiled, **kwargs)
                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/helpers/template.py", line 2196, in _render_with_context
    return template.render(**kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/jinja2/environment.py", line 1301, in render
    self.environment.handle_exception()
  File "/usr/local/lib/python3.11/site-packages/jinja2/environment.py", line 936, in handle_exception
    raise rewrite_traceback_stack(source=source)
  File "<template>", line 1, in top-level template code
ZeroDivisionError: integer modulo by zero
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/template.py", line 694, in async_render_to_info
    render_info._result = self.async_render(
                          ^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/helpers/template.py", line 570, in async_render
    raise TemplateError(err) from err
homeassistant.exceptions.TemplateError: ZeroDivisionError: integer modulo by zero

Automation YAML config

No response

Implementation

No response

Additional Details

  • I'd like to help developing this feature/improvement.

Useful resources

No response

Additional context

No response

Bug - Message malformed: Unknown device 'False'

Blueprint name

CN FSM Elettrodomestici 2023.12.0

Home Assistant Core Version

2023.12

Home Assistant Installation Type

Home Assistant Core

Description

when saving the blueprint i got Message malformed: Unknown device 'False'

Automation YAML config

description: ""
alias: CN FSM Elettrodomestici 2023.12.0
use_blueprint:
  path: jumping2000/cn_fsm_appliances.yaml
  input:
    power_plug: sensor.prese_forno_power
    energy_plug: sensor.prese_forno_energy
    status: input_select.oven_status
    status_sensor: sensor.oven_status
    counter_sensor: counter.cicli_cottura_forno
    helper_runtime: input_boolean.forno_runtime
    helper_total_energy: input_number.forno_runtime
    helper_maintenance_alert: input_number.forno_avviso_manutenzione
    appliance: forno
    media_player_google:
      - media_player.bagno
    delay_start: 53
    power_start: 5
    power_warm_up: 346
    power_cool_down: 83
    delay_middle: 3
    power_end: 7
    delay_finale: 10
    send_intermediate_notification: true
    use_centro_notifiche: true

To Reproduce

use this yaml than save

Expected behavior

should save the blueprint

Actual Behaviour

cannot save

Additional Details

  • I'd like to help developing a fix for this issue.

Screenshots

No response

Additional context

No response

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.