Files
ha_config/sensors.yaml
T

42 lines
1.1 KiB
YAML

#- platform: template
# sensors:
# Gaszähler, kommend von ESPHome, aufbereiten für Energy
# gasincubicmeter:
# value_template: >
# {% if states('sensor.gasverbrauch') | float == 0 %}
# {{ states('sensor.gasincubicmeter') }}
# {% else %}
# {{ states('sensor.gasverbrauch') | float }}
# {% endif %}
# unit_of_measurement: m³
# device_class: gas
# attribute_templates:
# state_class: total_increasing
- platform: snmp
name: "HPE Switch Uptime"
host: 192.168.0.4
community: realm_local
baseoid: 1.3.6.1.2.1.1.3.0
value_template: "{{ (value | float / 6000) | round(1) }}"
unit_of_measurement: "Minuten"
- platform: snmp
name: "HPE Switch Port 1 Status"
host: 192.168.0.4
community: realm_local
baseoid: 1.3.6.1.2.1.2.2.1.7.1
value_template: >
{% if value == '1' %}
Connected
{% else %}
Disconnected
{% endif %}
- platform: snmp
name: "HPE Switch Port 1 Traffic In"
host: 192.168.0.4
community: realm_local
baseoid: 1.3.6.1.2.1.2.2.1.10.1
unit_of_measurement: "Bytes"