Add icon translations to KNX (#111852)
* Add icon translations to KNX * Update homeassistant/components/knx/icons.json Co-authored-by: Matthias Alphart <farmio@alphart.net> * Update homeassistant/components/knx/icons.json Co-authored-by: Matthias Alphart <farmio@alphart.net> * Update homeassistant/components/knx/icons.json Co-authored-by: Matthias Alphart <farmio@alphart.net> * Update homeassistant/components/knx/icons.json Co-authored-by: Matthias Alphart <farmio@alphart.net> * Update homeassistant/components/knx/icons.json Co-authored-by: Matthias Alphart <farmio@alphart.net> --------- Co-authored-by: Matthias Alphart <farmio@alphart.net>pull/111878/head
parent
f0deae319e
commit
cac2c46a42
|
@ -0,0 +1,31 @@
|
|||
{
|
||||
"entity": {
|
||||
"sensor": {
|
||||
"individual_address": {
|
||||
"default": "mdi:router-network"
|
||||
},
|
||||
"telegrams_incoming": {
|
||||
"default": "mdi:upload-network"
|
||||
},
|
||||
"telegrams_incoming_error": {
|
||||
"default": "mdi:help-network"
|
||||
},
|
||||
"telegrams_outgoing": {
|
||||
"default": "mdi:download-network"
|
||||
},
|
||||
"telegrams_outgoing_error": {
|
||||
"default": "mdi:close-network"
|
||||
},
|
||||
"telegram_count": {
|
||||
"default": "mdi:plus-network"
|
||||
}
|
||||
}
|
||||
},
|
||||
"services": {
|
||||
"send": "mdi:email-arrow-right",
|
||||
"read": "mdi:email-search",
|
||||
"event_register": "mdi:home-import-outline",
|
||||
"exposure_register": "mdi:home-export-outline",
|
||||
"reload": "mdi:reload"
|
||||
}
|
||||
}
|
|
@ -55,7 +55,6 @@ SYSTEM_ENTITY_DESCRIPTIONS = (
|
|||
KNXSystemEntityDescription(
|
||||
key="individual_address",
|
||||
always_available=False,
|
||||
icon="mdi:router-network",
|
||||
should_poll=False,
|
||||
value_fn=lambda knx: str(knx.xknx.current_address),
|
||||
),
|
||||
|
@ -76,7 +75,6 @@ SYSTEM_ENTITY_DESCRIPTIONS = (
|
|||
),
|
||||
KNXSystemEntityDescription(
|
||||
key="telegrams_incoming",
|
||||
icon="mdi:upload-network",
|
||||
entity_registry_enabled_default=False,
|
||||
force_update=True,
|
||||
state_class=SensorStateClass.TOTAL_INCREASING,
|
||||
|
@ -84,13 +82,11 @@ SYSTEM_ENTITY_DESCRIPTIONS = (
|
|||
),
|
||||
KNXSystemEntityDescription(
|
||||
key="telegrams_incoming_error",
|
||||
icon="mdi:help-network",
|
||||
state_class=SensorStateClass.TOTAL_INCREASING,
|
||||
value_fn=lambda knx: knx.xknx.connection_manager.cemi_count_incoming_error,
|
||||
),
|
||||
KNXSystemEntityDescription(
|
||||
key="telegrams_outgoing",
|
||||
icon="mdi:download-network",
|
||||
entity_registry_enabled_default=False,
|
||||
force_update=True,
|
||||
state_class=SensorStateClass.TOTAL_INCREASING,
|
||||
|
@ -98,13 +94,11 @@ SYSTEM_ENTITY_DESCRIPTIONS = (
|
|||
),
|
||||
KNXSystemEntityDescription(
|
||||
key="telegrams_outgoing_error",
|
||||
icon="mdi:close-network",
|
||||
state_class=SensorStateClass.TOTAL_INCREASING,
|
||||
value_fn=lambda knx: knx.xknx.connection_manager.cemi_count_outgoing_error,
|
||||
),
|
||||
KNXSystemEntityDescription(
|
||||
key="telegram_count",
|
||||
icon="mdi:plus-network",
|
||||
force_update=True,
|
||||
state_class=SensorStateClass.TOTAL_INCREASING,
|
||||
value_fn=lambda knx: knx.xknx.connection_manager.cemi_count_outgoing
|
||||
|
|
Loading…
Reference in New Issue