CraftComputing / ProjectAxeEffect

42 stars 2 forks source link

Home Assistant Config Template #27

Open Teila opened 3 months ago

Teila commented 3 months ago
# Example configuration.yaml entry
sensor:
  - platform: snmp
    host: 192.168.1.185
    community: public
    baseoid: 1.3.6.1.2.1.99.1.1.1.4.0
    device_class: Temperature
    name: AXE1
    unit_of_measurement: "C"
    unique_id: 1234.0
    value_template: "{{((value | float) / 100) | float}}"

  - platform: snmp
    host: 192.168.1.185
    community: public
    baseoid: 1.3.6.1.2.1.99.1.1.2.4.0
    device_class: Humidity
    name: AXE1
    unit_of_measurement: "%RH"
    unique_id: 1234.1
    value_template: "{{((value | float) / 1000) | float}}"

  - platform: snmp
    host: 192.168.1.186
    community: public
    baseoid: 1.3.6.1.2.1.99.1.1.1.4.0
    device_class: Temperature
    name: AXE2
    unit_of_measurement: "C"
    unique_id: 1235.0
    value_template: "{{((value | float) / 100) | float}}"

  - platform: snmp
    host: 192.168.1.186
    community: public
    baseoid: 1.3.6.1.2.1.99.1.1.2.4.0
    device_class: Humidity
    name: AXE2
    unit_of_measurement: "%RH"
    unique_id: 1235.1
    value_template: "{{((value | float) / 1000) | float}}"

This will setup 4 devices (2 sensors per AxeEffect)

image

Cheers!

Teila commented 3 months ago

Let me know if I missed anything.