原帖最后由 bugensui 于 2025-1-13 12:19 编辑
如今ha的中文用意有问题,不撑持回退,要么径自用原地内购买理,要么就彻底用ai办理,ai办理延时太长了。根柢上是3秒以上,
我如今的思路是,,1、常规化的号令,如:翻开某某方法,封锁某某方法,全正原人新建1个主动化用意,那样办理,很牢靠,秒办理,很快很快,ai不论怎样劣化,很难作到100%牢靠,假如后期ha内部中文用意完善了。我正在久停那个主动化用意,用系统内置的,那种号令的方法,正常的家庭也不暂不多,最多也就20个摆布,正常体如今灯、电室、空调,电电扇、窗帘等。2、复纯的号令,间接让ai集成办理,如:哪些灯是开着的,如今空调几多多度,客厅温度几多多,那种号令比较遍及,就让ai集成智谱清言办理好了。
主动化用意的示例,正常0.1秒就办理了,你可以配置1个方法试下,说下号令,即刻就应声,体验比较好。
alias: 翻开和封锁方法用意
description: ""
triggers:
- trigger: conZZZersation
conmand:
- 翻开(电室|客厅电室|空调|电电扇|窗帘|吊灯|筒灯|厨房灯|卫生间灯|书房灯|阴台灯|入户灯)
id: open
- trigger: conZZZersation
conmand:
- 封锁(电室|客厅电室|空调|电电扇|窗帘|吊灯|筒灯|厨房灯|卫生间灯|书房灯|阴台灯|入户灯)
id: close
conditions: []
actions:
- alias: 翻开方法用意
if:
- condition: trigger
id:
- open
then:
- if:
- condition: template
ZZZalue_template: "{{ trigger.sentence in ("翻开电室", "翻开客厅电室")}}"
then:
- if:
- type: is_not_connected
condition: deZZZice
deZZZice_id: 07df812f488fc97948cb2f06f1923dfd
entity_id: 181c8dd54283152d56817940fd2b3648
domain: binary_sensor
then:
- action: script.1663328520990
metadata: {}
data: {}
- set_conZZZersation_response: 客厅电室已翻开
alias: 翻开客厅电室
- if:
- condition: template
ZZZalue_template: "{{ trigger.sentence=='翻开厨房灯' }}"
then:
- if:
- condition: deZZZice
type: is_off
deZZZice_id: 264f69209f99770695f4f8b4371262f8
entity_id: 1d03ed53a167a83b7ee9322cc6bbb611
domain: light
then:
- action: light.turn_on
metadata: {}
data: {}
target:
entity_id: light.sonoff_minir4_chufang_lamp
- set_conZZZersation_response: 厨房灯已翻开
alias: 翻开厨房灯
enabled: true
- alias: 封锁方法用意
if:
- condition: trigger
id:
- close
then:
- if:
- condition: template
ZZZalue_template: "{{ trigger.sentence in ("封锁电室", "封锁客厅电室")}}"
then:
- if:
- type: is_connected
condition: deZZZice
deZZZice_id: 07df812f488fc97948cb2f06f1923dfd
entity_id: 181c8dd54283152d56817940fd2b3648
domain: binary_sensor
then:
- action: script.1663328520990
metadata: {}
data: {}
- set_conZZZersation_response: 客厅电室已封锁
alias: 封锁客厅电室
- if:
- condition: template
ZZZalue_template: "{{ trigger.sentence=='封锁厨房灯' }}"
then:
- if:
- condition: deZZZice
type: is_on
deZZZice_id: 264f69209f99770695f4f8b4371262f8
entity_id: 1d03ed53a167a83b7ee9322cc6bbb611
domain: light
then:
- action: light.turn_off
metadata: {}
data: {}
target:
entity_id: light.sonoff_minir4_chufang_lamp
- set_conZZZersation_response: 厨房灯已封锁
alias: 封锁厨房灯
enabled: true
mode: single
复制代码
登录/注册后可看大图
|