我目前唯一看到的好处是,您的自动化依赖性较小。即使您仅使用ha节点除了HA节点外,还使用了节点红色的核心节点,您在后台也对许多外部LIB都有依赖性。而且,您还必须确保,节点红色的HA节点一直在使用当前HA版本。

大家好,

我可以绝对了解你。我通过大型自动化更改从节点红色转换为家庭助理自动化,发现19463331伟德国际它还可以。
节点红更加灵活,更重要,非常容易调试。
我第一次尝试使用蓝图和调试功能并不是那么好。

我喜欢蓝桥的想法,但现在缺少一些东西。我真的认为将添加大多数这些内容(例如一个好的文档,版本控制)www.19463331.com

我会分叉您的(真的很喜欢场景,不需要环境,但它已经在那里),并且会做一些适合我需求的更改。

@Iroquai我将制作一个没有Lux传感器的版本,如果您需要

1喜欢

嗨,喜欢这个蓝图,它涵盖了我对运动传感器的90%:liticle_smile:
我唯一需要的是能够添加条件,因此当用户更改灯光时,我可以禁用自动化。
现在,我使用了一个物理色调按钮来完成此操作,我可以为此自动化。
但是,我遇到的问题是,当我进行自动化以禁用运动自动化时,当用户更改色调应用程序中的场景时,当运动传感器更改场景时,它也会触发。

So, i’m in need of a way to add a condition where i can utilize a boolean (toggle) helper, to pre-set if it was the motion sensor or the user that triggered the event, so the automation does not accidentally disable itself when it changes the scene.

这可能是可能的吗?我在家中有点新的助手,所以我还没有19463331伟德国际真正解决所有逻辑。

根据所有权利,默认值为没有任何应该允许。在自动化或脚本中使用时,这是指定未指定服务或entity_id的接受方法。但是,在蓝图中(无论出于何种原因)都不被接受。:man_shrugging:

我在用着作为蓝图中的默认值,但名称“无”并不神奇。ENTITY_ID只需要引用不存在的实体即可。

:+1:

希望第一代蓝图作者遇到的困难将有助于引入未来版本的改进。

小补充,我对自己的蓝图进行了一些扩展,以便允许这样的布尔助手。
旁边我添加了每个时间段的等待时间,以便何时应再次关闭灯

我在您的蓝图(第201和203和205行)中注意到了这一点:

!输入!输入no_motion_wait_night

可能是产生翻倍的搜索和替代的结果!输入钥匙。

是的,我看到了并修复了:liticle_smile:谢谢
仍然没有完全工作,因为

{%if(states.sensor.time.state> time_scene_night)和(states.sensor.time.state 

if语句内部的输入变量没有返回值,

!输入time_scene_night

在陈述中,没有什么区别,关于如何解决这个问题的任何线索?我有点难过,Google并没有真正帮助我

你好,
您必须说明!输入time_scene_night在变量之前,然后在模板中使用varibale。

variables: no_motion_wait_night: !input no_motion_wait_night no_motion_wait_morning: !input no_motion_wait_morning no_motion_wait_day: !input no_motion_wait_day {% if (states.sensor.time.state > time_scene_night) and (states.sensor.time.state < time_scene_morning) %} {{no_motion_wait_night}}{%elif(states.sensor.time.state> time_scene_morning)和(states.sensor.time.state 

但这只是一个假设

!输入YAML处理器使用标签来执行替代。它是设计的将值分配给密钥

以下示例中的关键是ENTITY_ID

entity_id:!输入任何内容

你没有用过!输入这样。您将它独自站在模板中。

您必须做DKOEHLER建议的事情,因为它使用了!输入标签将值分配给密钥。创建一个变量,将选择器值分配给它,然后使用模板中的变量。

好的,抓了:lyly_smiling_face:
我会再有更多

您是否与运动传感器组一起工作了?是否只需要扩大选择器上的过滤器MOTION_ENTITY

嗨,不幸的是,我切换回节点红色。更舒适的调试和更快的结果。

疯狂的很棒。做得好。

感谢您对此的辛勤工作。

是否有人设法消除了具有轻型传感器的需求?

你可以试试YAMA-又有另一个运动自动化(场景,环境光和某些条件)

这是这个蓝图的叉子

2个喜欢

谢谢,我会看看

首先:非常感谢这个蓝图!使运动控制的灯自动化变得轻而易举。

我只有一个问题:是否有可能创建向场景的过渡,以使灯逐渐启动?我的YAML技能不足以了解如何在此蓝图中做到这一点……

你好,

当涉及到光通量计时,我简单地删除了与该实体相对应的所有线路,但是……似乎根本不起作用…

蓝图:名称:带有光级检查和可选环境场景的运动激活的光场描述:检测到运动时打开光场。可以根据一天中的时间来定义三个不同的场景。此外,只有在足够黑暗的情况下,才可以定义用于检查探测光的来源。domain: automation source_url: https://gist.github.com/incapable/f43f74a0c5f9554b86f31ad0c0584180 input: motion_entity: name: Motion Sensor selector: entity: domain: binary_sensor device_class: motion # lightsensor_entity: # name: Illuminance Sensor # selector: # entity:#域:传感器#device_class:照明#Illuminace_level:#名称:Max Illuminance#描述:Lux中的最大无限级别。如果照明率更高,则不会启用灯#默认值:600#selector:#number:#min:0.0#max:5000.0#unit_of_measurement:lux##模式:slider#step:1.0 light_target:light_target:name:light selector:light selector:target:target:target:target:target:stem:实体:域:灯场景_ambient:名称:环境场景(可选)描述:环境状态的场景。当未检测到运动时,将被激活,并且光级在阈值下。默认值=场景。没有默认值:场景。无选择器:entity:domain:scene time_scene_ambient_start:name:ambient时间框架启动描述:将在环境场景上激活默认值:00:00:00:00 selector:time:{}时间:{}time_scene_ambient_end:名称:环境时间框架结束说明:未激活环境场景的时间:00:00:00 selector:time:{} castic_morning:name:name:name for Morning默认值:scene.scene.scene.noone selector:none selector:entey:Entity:Entity:enterity: domain: scene time_scene_morning: name: Time for the morning scene description: A time input which defines the time from which on the scene will be activated if motion is detected. Default value = scene.none default: 00:00:00 selector: time: {} no_motion_wait_morning: name: Wait time morning description: Time to leave the light on after last motion is detected. default: 120 selector: number: min: 0.0 max: 3600.0 unit_of_measurement: seconds mode: slider step: 1.0 scene_day: name: Scene for the bright day default: scene.none selector: entity: domain: scene time_scene_day: name: Time for the day scene description: A time input which defines the time from which on the scene will be activated if motion is detected. Default value = scene.none default: 00:00:00 selector: time: {} no_motion_wait_day: name: Wait time day description: Time to leave the light on after last motion is detected. default: 120 selector: number: min: 0.0 max: 3600.0 unit_of_measurement: seconds mode: slider step: 1.0 scene_evening: name: Scene for the evening default: scene.none selector: entity: domain: scene time_scene_evening: name: Time for the evening scene description: A time input which defines the time from which on the scene will be activated if motion is detected. Default value = scene.none default: 00:00:00 selector: time: {} no_motion_wait_evening: name: Wait time evening description: Time to leave the light on after last motion is detected. default: 120 selector: number: min: 0.0 max: 3600.0 unit_of_measurement: seconds mode: slider step: 1.0 scene_night: name: Scene for the dark night default: scene.none selector: entity: domain: scene time_scene_night: name: Time for the night scene description: A time input which defines the time from which on the scene will be activated if motion is detectedd. Default value = scene.none default: 00:00:00 selector: time: {} no_motion_wait_night: name: Wait time night description: Time to leave the light on after last motion is detected. default: 120 selector: number: min: 0.0 max: 3600.0 unit_of_measurement: seconds mode: slider step: 1.0 mode: restart max_exceeded: silent variables: scene_ambient: !input 'scene_ambient' trigger: platform: state entity_id: !input 'motion_entity' from: 'off' to: 'on' action: - choose: - conditions: - condition: time after: !input 'time_scene_morning' before: !input 'time_scene_day' # - condition: numeric_state # entity_id: !input 'lightsensor_entity' # below: !input 'illuminace_level' sequence: - scene: !input 'scene_morning' - conditions: - condition: time after: !input 'time_scene_day' before: !input 'time_scene_evening' # - condition: numeric_state # entity_id: !input 'lightsensor_entity' # below: !input 'illuminace_level' sequence: - scene: !input 'scene_day' - conditions: - condition: time after: !input 'time_scene_evening' before: !input 'time_scene_night' # - condition: numeric_state # entity_id: !input 'lightsensor_entity' # below: !input 'illuminace_level' sequence: - scene: !input 'scene_evening' - conditions: - condition: time after: !input 'time_scene_night' before: !input 'time_scene_morning' # - condition: numeric_state # entity_id: !input 'lightsensor_entity' # below: !input 'illuminace_level' sequence: - scene: !input 'scene_night' - service: input_boolean.turn_off data: {} entity_id: input_boolean.user_changed_lights - delay: 00:00:05 - service: input_boolean.turn_on data: {} entity_id: input_boolean.user_changed_lights - wait_for_trigger: platform: state entity_id: !input 'motion_entity' from: 'on' to: 'off' - delay: "{% if (states.sensor.time.state > time_scene_night) and (states.sensor.time.state\ \ < time_scene_morning) %} \n !input no_motion_wait_night\n{% elif (states.sensor.time.state\ \ > time_scene_morning) and (states.sensor.time.state < time_scene_evening) %}\n\ \ !input no_motion_wait_morning\n{% else %}\n !input no_motion_wait_day\n{%\ \ endif %}" - choose: - conditions: - '{{ scene_ambient != ''scene.none''}}' - condition: time after: !input 'time_scene_ambient_start' before: !input 'time_scene_ambient_end' # - condition: numeric_state # entity_id: !input 'lightsensor_entity' # below: !input 'illuminace_level' sequence: - scene: !input 'scene_ambient' default: - service: light.turn_off target: !input 'light_target'

我有一个问题:
如果我想根据运动和时间选择场景,为什么我需要选择光源?
场景应该激活我想要的那些灯,那么?还是只是关闭所有这些灯?
至少,这是我的理解,因为输入和光线之间没有其他联系。