找回密码
 立即注册
查看: 338|回复: 3

[技术探讨] Response error: 500的解决办法不知道有没有后遗症

[复制链接]

76

主题

249

回帖

1452

积分

金牌会员

积分
1452
金钱
1127
HASS币
0
发表于 2025-2-11 01:29:18 | 显示全部楼层 |阅读模式
今天突然出现无法修改自动化,无法创建。一动,一修改,一建新的就提示错误Response error: 500上谷歌找了一下资料
就打开文本编辑器编辑了一下automations.yaml
然后找到所有自动化前面和其他人不一样的比如

- &id001
- *id001
把带这种的自动删除掉,重启,重新创建一个之前因为有错误的
- &id001
- *id001

的自动化。现在都可以了
但是我很奇怪,为什么会有一些有问题的自动化
- &id001
- *id001

会带这个开头?

- &id001
  id: '1733759688051'
  alias: 0车库前红外打开
  description: 0车库
  triggers:
  - trigger: state
    entity_id:
    - sensor.broadlink_s1c_0chekuqian
    - sensor.broadlink_s1c_0chekuqian2
    from: motion_detected
    to: no_motion
  - trigger: state
    entity_id:
    - input_boolean.che_ku_qian_hong_wai
    from: 'on'
    to: 'off'
    for:
      hours: 0
      minutes: 3
      seconds: 0
  conditions:
  - condition: state
    entity_id: input_boolean.che_ku_qian_hong_wai
    state: 'off'
  actions:
  - action: input_boolean.turn_on
    metadata: {}
    data: {}
    target:
      entity_id:
      - input_boolean.che_ku_qian_hong_wai
  mode: single
- *id001
- id: '1733759975689'
  alias: 0车库中红外打开
  description: 0车库
  triggers:
  - trigger: state
    entity_id:
    - sensor.broadlink_s1c_0chekuzhong
    - sensor.broadlink_s1c_0chekuzhong2
    from: motion_detected
    to: no_motion
  - trigger: state
    entity_id:
    - input_boolean.che_ku_zhong_hong_wai
    from: 'on'
    to: 'off'
    for:
      hours: 0
      minutes: 3
      seconds: 0
  conditions:
  - condition: state
    entity_id: input_boolean.che_ku_zhong_hong_wai
    state: 'off'
  actions:
  - action: input_boolean.turn_on
    metadata: {}
    data: {}
    target:
      entity_id:
      - input_boolean.che_ku_zhong_hong_wai
  mode: single


回复

使用道具 举报

76

主题

249

回帖

1452

积分

金牌会员

积分
1452
金钱
1127
HASS币
0
 楼主| 发表于 2025-2-11 01:53:33 | 显示全部楼层
正确的语句是不会有
- &id001

- *id001
我很好奇为什么我的自动化里面会添加这些字屎进去。我之前也没有编辑的了
回复

使用道具 举报

0

主题

13

回帖

379

积分

中级会员

积分
379
金钱
366
HASS币
0
发表于 2025-2-15 17:30:43 | 显示全部楼层
我的没有这样的语句怎么也会报500的错误
回复

使用道具 举报

3

主题

317

回帖

3547

积分

论坛元老

积分
3547
金钱
3227
HASS币
0
发表于 2025-2-18 19:24:23 | 显示全部楼层
我的最近也是报这个错,系统是2025.2.4
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

Archiver|手机版|小黑屋|Hassbian

GMT+8, 2025-5-4 21:09 , Processed in 0.167903 second(s), 22 queries .

Powered by Discuz! X3.5

© 2001-2025 Discuz! Team.

快速回复 返回顶部 返回列表