lishishao
发表于 2023-7-5 15:28:15
厉害厉害
diy2008
发表于 2023-7-5 16:28:04
谢谢 分享
kkk123
发表于 2023-7-6 11:26:01
本帖最后由 kkk123 于 2023-7-6 11:42 编辑
为什么那个图不更新了,固定在某些日期
后台是能获取到这几天的数值的
今天已经不能正常使用了,后台报错
2023-07-06 11:27:21.762 ERROR (MainThread) TemplateError('TypeError: unsupported operand type(s) for +: 'NoneType' and 'NoneType'') while processing template 'Template<template=({% set last_month1 = state_attr('sensor.041000xxxxx_last_month_total_usage', 'last_month_by_day') %} {% set this_month1 = state_attr('sensor.041000xxxx_this_month_total_usage', 'this_month_by_day') %} {% set history1 = last_month1 + this_month1 %} {{ history1 }}) renders=4>' for attribute 'history_day_value1' in entity 'sensor.history_day1'
dzy780104547
发表于 2023-7-6 11:49:45
6666
66666
shiniv
发表于 2023-7-6 12:42:32
kkk123 发表于 2023-7-6 11:26
为什么那个图不更新了,固定在某些日期
后台是能获取到这几天的数值的
不显示最近几天是图表的设置问题
你将 offset: '-30d' 改为比如 offset: '-27d' 就应该能看到了
当然今天南网网站是已经蹦了 等修复吧
daxiong828
发表于 2023-7-6 15:27:14
有没有国网的?
lovett
发表于 2023-7-6 15:57:22
感谢楼主分享
kl79612
发表于 2023-7-6 16:09:29
试试看看
skylan
发表于 2023-7-6 16:48:21
观摩大佬 学习一下
hunl1986
发表于 2023-7-6 22:23:29
kkk123 发表于 2023-7-6 11:26
为什么那个图不更新了,固定在某些日期
后台是能获取到这几天的数值的
把month改为day就行了,我已经更新了。错误是因为今天南方电网挂了
页:
1
2
3
4
[5]
6
7
8
9
10
11
12
13
14