diff --git a/enoceanmqtt/overlays/homeassistant/mapping.yaml b/enoceanmqtt/overlays/homeassistant/mapping.yaml index e09432d..e602818 100644 --- a/enoceanmqtt/overlays/homeassistant/mapping.yaml +++ b/enoceanmqtt/overlays/homeassistant/mapping.yaml @@ -1329,6 +1329,97 @@ {% else %}Error {% endif %} icon: "mdi:weather-windy" + 0x41: + device_config: + command: "" + channel: "" + log_learn: "" + direction: "" + answer: "" + entities: + - component: "sensor" + name: "t_raw" + config: + state_topic: "" + value_template: "{{ value_json.TMP }}" + device_class: "temperature" + state_class: "measurement" + unit_of_measurement: "°C" + enabled_by_default: "false" + - component: "sensor" + name: "tempC" + config: + state_topic: "" + value_template: "{{ value_json.TMP | round(1) }}" + device_class: "temperature" + state_class: "measurement" + unit_of_measurement: "°C" + - component: "sensor" + name: "h_raw" + config: + state_topic: "" + value_template: "{{ value_json.HUM }}" + device_class: "humidity" + state_class: "measurement" + unit_of_measurement: "%" + enabled_by_default: "false" + - component: "sensor" + name: "hum" + config: + state_topic: "" + value_template: "{{ value_json.HUM | round(1) }}" + device_class: "humidity" + state_class: "measurement" + unit_of_measurement: "%" + - component: "sensor" + name: "lux" + config: + state_topic: "" + value_template: "{{ value_json.ILL }}" + device_class: "illuminance" + state_class: "measurement" + unit_of_measurement: "lx" + - component: "sensor" + name: "acceleration" + config: + state_topic: "" + value_template: >- + {% if value_json.ACC == 0 %}Periodic Update + {% elif value_json.ACC == 1 %}Threshold 1 exceeded + {% elif value_json.ACC == 2 %}Threshold 2 exceeded + {% else %}Error + {% endif %} + - component: "sensor" + name: "ACX" + config: + state_topic: "" + value_template: "{{ value_json.ACX }}" + device_class: "weight" + state_class: "measurement" + unit_of_measurement: "g" + - component: "sensor" + name: "ACY" + config: + state_topic: "" + value_template: "{{ value_json.ACY }}" + device_class: "weight" + state_class: "measurement" + unit_of_measurement: "g" + - component: "sensor" + name: "ACZ" + config: + state_topic: "" + value_template: "{{ value_json.ACZ }}" + device_class: "weight" + state_class: "measurement" + unit_of_measurement: "g" + - component: binary_sensor + name: "contact" + config: + state_topic: "" + value_template: "{{ value_json.CO }}" + payload_on: "0" + payload_off: "1" 0x50: 0x00: device_config: