Diff
checker
文本
文本
图像
文档
Excel
文件夹
Legal
Enterprise
桌面版
定价
登录
下载 Diffchecker 桌面版
比较文本
查找两个文本文件之间的差异
工具
历史
实时编辑器
隐藏空白更改
折叠未更改行
关闭换行
视图
拆分
统一
比对精度
智能
单词
字符
文本样式
更改外观
语法高亮
选择语法
忽略
文本转换
转到第一个差异
编辑输入
Diffchecker Desktop
运行Diffchecker最安全的方式。获取Diffchecker桌面应用:您的差异永远不会离开您的电脑!
获取桌面版
Untitled Diff
创建于
5年前
差异永不过期
清除
导出
分享
解释
17 删除
行
总计
删除
字符
总计
删除
要继续使用此功能,请升级到
Diff
checker
Pro
查看价格
70 行
全部复制
87 添加
行
总计
添加
字符
总计
添加
要继续使用此功能,请升级到
Diff
checker
Pro
查看价格
128 行
全部复制
复制
已复制
复制
已复制
tasmota_info
:
decl_test_david_4
:
card:
card:
type: 'custom:config-template-card'
type: 'custom:config-template-card'
variables:
variables:
复制
已复制
复制
已复制
varDEVICE: 'parseFloat(states[''sensor.[[
device
]]_rssi''].state)'
varDEVICE: 'parseFloat(states[''sensor.[[
DEVICE
]]_rssi''].state)'
entities:
entities:
复制
已复制
复制
已复制
- 'sensor.[[
device
]]_rssi'
- 'sensor.[[
DEVICE
]]_rssi'
- 'sensor.[[
device
]]_signal'
- 'sensor.[[
DEVICE
]]_signal'
- 'sensor.[[
device
]]_mqtt_connect_count'
- 'sensor.[[
DEVICE
]]_mqtt_connect_count'
- 'sensor.[[
device
]]_wifi_connect_count'
- 'sensor.[[
DEVICE
]]_wifi_connect_count'
card:
card:
type: 'custom:mod-card'
type: 'custom:mod-card'
style:
style:
multiple-entity-row:
multiple-entity-row:
$:
$:
hui-generic-entity-row: |
hui-generic-entity-row: |
.entities-row div.entity:nth-child(1) div::before {
.entities-row div.entity:nth-child(1) div::before {
复制
已复制
复制
已复制
{% if states('sensor.[[
device
]]_rssi')|int >= 100 %}
{% if states('sensor.[[
DEVICE
]]_rssi')|int >= 100 %}
color: green;
color: green;
content: "Excellent\A";
content: "Excellent\A";
复制
已复制
复制
已复制
{% elif states('sensor.[[
device
]]_rssi')|int >= 80 %}
{% elif states('sensor.[[
DEVICE
]]_rssi')|int >= 80 %}
color: orange;
color: orange;
content: "Good\A";
content: "Good\A";
复制
已复制
复制
已复制
{% elif states('sensor.[[
device
]]_rssi')|int >= 60 %}
{% elif states('sensor.[[
DEVICE
]]_rssi')|int >= 60 %}
color: red;
color: red;
content: "Fair\A";
content: "Fair\A";
复制
已复制
复制
已复制
{% elif states('sensor.[[DEVICE]]_rssi') in ['unavailable','unknown'] %}
color: brown;
content: "N/A\A";
{% else %}
{% else %}
color: magenta;
color: magenta;
content: "Weak\A";
content: "Weak\A";
{% endif %}
{% endif %}
line-height: var(--mdc-typography-body1-line-height, 1.5rem);
line-height: var(--mdc-typography-body1-line-height, 1.5rem);
text-align: center;
text-align: center;
white-space: pre;
white-space: pre;
}
}
.entities-row div.entity:nth-child(1) div {
.entities-row div.entity:nth-child(1) div {
color: transparent;
color: transparent;
line-height: 0px;
line-height: 0px;
}
}
复制
已复制
复制
已复制
.entities-row div.entity:nth-child(2) div::before {
{% if states('sensor.[[DEVICE]]_mqtt_connect_count') in ['unavailable','unknown'] %}
color: brown;
content: "N/A\A";
line-height: var(--mdc-typography-body1-line-height, 1.5rem);
{% endif %}
}
.entities-row div.entity:nth-child(2) div {
{% if states('sensor.[[DEVICE]]_mqtt_connect_count') in ['unavailable','unknown'] %}
color: transparent;
line-height: 0px;
{% endif %}
}
.entities-row div.entity:nth-child(3) div::before {
{% if states('sensor.[[DEVICE]]_wifi_connect_count') in ['unavailable','unknown'] %}
color: brown;
content: "N/A\A";
line-height: var(--mdc-typography-body1-line-height, 1.5rem);
{% endif %}
}
.entities-row div.entity:nth-child(3) div {
{% if states('sensor.[[DEVICE]]_wifi_connect_count') in ['unavailable','unknown'] %}
color: transparent;
line-height: 0px;
{% endif %}
}
.entities-row div.entity:nth-child(4) div::before {
{% if states('sensor.[[DEVICE]]_signal') in ['unavailable','unknown'] %}
color: brown;
content: "N/A\A";
line-height: var(--mdc-typography-body1-line-height, 1.5rem);
{% endif %}
}
.entities-row div.entity:nth-child(4) div {
{% if states('sensor.[[DEVICE]]_signal') in ['unavailable','unknown'] %}
color: transparent;
line-height: 0px;
{% endif %}
}
.entities-row div.entity:nth-child(5) div::before {
{% if states('sensor.[[DEVICE]]_rssi') in ['unavailable','unknown'] %}
color: brown;
content: "N/A\A";
line-height: var(--mdc-typography-body1-line-height, 1.5rem);
{% endif %}
}
.entities-row div.entity:nth-child(5) div {
{% if states('sensor.[[DEVICE]]_rssi') in ['unavailable','unknown'] %}
color: transparent;
line-height: 0px;
{% endif %}
}
.entities-row {
justify-content: flex-start;
align-items: unset;
}
card:
card:
type: 'custom:multiple-entity-row'
type: 'custom:multiple-entity-row'
复制
已复制
复制
已复制
entity:
sensor.[[
device
]]_rssi
entity:
'
sensor.[[
DEVICE
]]_rssi
'
show_state: false
show_state: false
复制
已复制
复制
已复制
name: '[[
device_name
]]'
name: '[[
DEVICE_NAME
]]'
icon: >-
icon: >-
${varDEVICE >= 100 ? "mdi:wifi-strength-4" : (varDEVICE >= 80 ?
${varDEVICE >= 100 ? "mdi:wifi-strength-4" : (varDEVICE >= 80 ?
"mdi:wifi-strength-3" : (varDEVICE >= 60 ? "mdi:wifi-strength-2" :
"mdi:wifi-strength-3" : (varDEVICE >= 60 ? "mdi:wifi-strength-2" :
"mdi:wifi-strength-1")) }
"mdi:wifi-strength-1")) }
复制
已复制
复制
已复制
secondary_info: last-changed
entities:
entities:
复制
已复制
复制
已复制
- entity:
sensor.[[
device
]]_rssi
- entity:
'
sensor.[[
DEVICE
]]_rssi
'
name: Quality
name: Quality
styles:
styles:
width: 55px
width: 55px
复制
已复制
复制
已复制
- entity:
sensor.[[
device
]]_mqtt_connect_count
- entity:
'
sensor.[[
DEVICE
]]_mqtt_connect_count
'
name: MQTT
name: MQTT
styles:
styles:
width: 23px
width: 23px
复制
已复制
复制
已复制
- entity:
sensor.[[
device
]]_wifi_connect_count
- entity:
'
sensor.[[
DEVICE
]]_wifi_connect_count
'
name: WiFi
name: WiFi
styles:
styles:
width: 23px
width: 23px
复制
已复制
复制
已复制
- entity:
sensor.[[
device
]]_signal
- entity:
'
sensor.[[
DEVICE
]]_signal
'
name: Signal
name: Signal
styles:
styles:
width: 48px
width: 48px
复制
已复制
复制
已复制
- entity:
sensor.[[
device
]]_rssi
- entity:
'
sensor.[[
DEVICE
]]_rssi
'
name: RSSI
name: RSSI
styles:
styles:
width: 38px
width: 38px
已保存差异
原始文本
打开文件
tasmota_info: card: type: 'custom:config-template-card' variables: varDEVICE: 'parseFloat(states[''sensor.[[device]]_rssi''].state)' entities: - 'sensor.[[device]]_rssi' - 'sensor.[[device]]_signal' - 'sensor.[[device]]_mqtt_connect_count' - 'sensor.[[device]]_wifi_connect_count' card: type: 'custom:mod-card' style: multiple-entity-row: $: hui-generic-entity-row: | .entities-row div.entity:nth-child(1) div::before { {% if states('sensor.[[device]]_rssi')|int >= 100 %} color: green; content: "Excellent\A"; {% elif states('sensor.[[device]]_rssi')|int >= 80 %} color: orange; content: "Good\A"; {% elif states('sensor.[[device]]_rssi')|int >= 60 %} color: red; content: "Fair\A"; {% else %} color: magenta; content: "Weak\A"; {% endif %} line-height: var(--mdc-typography-body1-line-height, 1.5rem); text-align: center; white-space: pre; } .entities-row div.entity:nth-child(1) div { color: transparent; line-height: 0px; } card: type: 'custom:multiple-entity-row' entity: sensor.[[device]]_rssi show_state: false name: '[[device_name]]' icon: >- ${varDEVICE >= 100 ? "mdi:wifi-strength-4" : (varDEVICE >= 80 ? "mdi:wifi-strength-3" : (varDEVICE >= 60 ? "mdi:wifi-strength-2" : "mdi:wifi-strength-1")) } secondary_info: last-changed entities: - entity: sensor.[[device]]_rssi name: Quality styles: width: 55px - entity: sensor.[[device]]_mqtt_connect_count name: MQTT styles: width: 23px - entity: sensor.[[device]]_wifi_connect_count name: WiFi styles: width: 23px - entity: sensor.[[device]]_signal name: Signal styles: width: 48px - entity: sensor.[[device]]_rssi name: RSSI styles: width: 38px
更改后文本
打开文件
decl_test_david_4: card: type: 'custom:config-template-card' variables: varDEVICE: 'parseFloat(states[''sensor.[[DEVICE]]_rssi''].state)' entities: - 'sensor.[[DEVICE]]_rssi' - 'sensor.[[DEVICE]]_signal' - 'sensor.[[DEVICE]]_mqtt_connect_count' - 'sensor.[[DEVICE]]_wifi_connect_count' card: type: 'custom:mod-card' style: multiple-entity-row: $: hui-generic-entity-row: | .entities-row div.entity:nth-child(1) div::before { {% if states('sensor.[[DEVICE]]_rssi')|int >= 100 %} color: green; content: "Excellent\A"; {% elif states('sensor.[[DEVICE]]_rssi')|int >= 80 %} color: orange; content: "Good\A"; {% elif states('sensor.[[DEVICE]]_rssi')|int >= 60 %} color: red; content: "Fair\A"; {% elif states('sensor.[[DEVICE]]_rssi') in ['unavailable','unknown'] %} color: brown; content: "N/A\A"; {% else %} color: magenta; content: "Weak\A"; {% endif %} line-height: var(--mdc-typography-body1-line-height, 1.5rem); text-align: center; white-space: pre; } .entities-row div.entity:nth-child(1) div { color: transparent; line-height: 0px; } .entities-row div.entity:nth-child(2) div::before { {% if states('sensor.[[DEVICE]]_mqtt_connect_count') in ['unavailable','unknown'] %} color: brown; content: "N/A\A"; line-height: var(--mdc-typography-body1-line-height, 1.5rem); {% endif %} } .entities-row div.entity:nth-child(2) div { {% if states('sensor.[[DEVICE]]_mqtt_connect_count') in ['unavailable','unknown'] %} color: transparent; line-height: 0px; {% endif %} } .entities-row div.entity:nth-child(3) div::before { {% if states('sensor.[[DEVICE]]_wifi_connect_count') in ['unavailable','unknown'] %} color: brown; content: "N/A\A"; line-height: var(--mdc-typography-body1-line-height, 1.5rem); {% endif %} } .entities-row div.entity:nth-child(3) div { {% if states('sensor.[[DEVICE]]_wifi_connect_count') in ['unavailable','unknown'] %} color: transparent; line-height: 0px; {% endif %} } .entities-row div.entity:nth-child(4) div::before { {% if states('sensor.[[DEVICE]]_signal') in ['unavailable','unknown'] %} color: brown; content: "N/A\A"; line-height: var(--mdc-typography-body1-line-height, 1.5rem); {% endif %} } .entities-row div.entity:nth-child(4) div { {% if states('sensor.[[DEVICE]]_signal') in ['unavailable','unknown'] %} color: transparent; line-height: 0px; {% endif %} } .entities-row div.entity:nth-child(5) div::before { {% if states('sensor.[[DEVICE]]_rssi') in ['unavailable','unknown'] %} color: brown; content: "N/A\A"; line-height: var(--mdc-typography-body1-line-height, 1.5rem); {% endif %} } .entities-row div.entity:nth-child(5) div { {% if states('sensor.[[DEVICE]]_rssi') in ['unavailable','unknown'] %} color: transparent; line-height: 0px; {% endif %} } .entities-row { justify-content: flex-start; align-items: unset; } card: type: 'custom:multiple-entity-row' entity: 'sensor.[[DEVICE]]_rssi' show_state: false name: '[[DEVICE_NAME]]' icon: >- ${varDEVICE >= 100 ? "mdi:wifi-strength-4" : (varDEVICE >= 80 ? "mdi:wifi-strength-3" : (varDEVICE >= 60 ? "mdi:wifi-strength-2" : "mdi:wifi-strength-1")) } entities: - entity: 'sensor.[[DEVICE]]_rssi' name: Quality styles: width: 55px - entity: 'sensor.[[DEVICE]]_mqtt_connect_count' name: MQTT styles: width: 23px - entity: 'sensor.[[DEVICE]]_wifi_connect_count' name: WiFi styles: width: 23px - entity: 'sensor.[[DEVICE]]_signal' name: Signal styles: width: 48px - entity: 'sensor.[[DEVICE]]_rssi' name: RSSI styles: width: 38px
查找差异