『瀚思彼岸』» 智能家居技术论坛

 找回密码
 立即注册
查看: 121|回复: 0

[技术探讨] scan_interval 不生效怎么办?

[复制链接]

35

主题

286

帖子

2063

积分

金牌会员

Rank: 6Rank: 6

积分
2063
金钱
1777
HASS币
0
发表于 2025-1-15 11:52:50 | 显示全部楼层 |阅读模式
sensor:
  - platform: rest
    name: short_part_of_poem
    method: GET
    resource: https://v2.jinrishici.com/sentence
    headers:
      Content-Type: application/json
      X-User-Token: PWnzpYpTdCPoaMKtPLOGEHWm5PvkwGjs
    value_template: "{{ value_json.data.content }}"
    json_attributes:
      - id
      - content
      - origin
      - warning
      - title
      - dynasty
      - author
    json_attributes_path: "$.data"
    scan_interval: 300


定时发送新闻通知的,scan_interval好像取到的还是昨天的?是缓存没更新吗?

回复

使用道具 举报

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

本版积分规则

Archiver|手机版|小黑屋|Hassbian

GMT+8, 2025-2-2 20:45 , Processed in 0.042576 second(s), 22 queries .

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

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