Hi,
I have the Aeotec multisensor 6 integrated with Home Assitant (HASSIO setup) and working fine.
I need to display the remaining battery of the sensor in a group, but I can’t find how to get only the “battery property” from this entity:
I need only this specific value in order to create a group that list all the remaining battery of all my sensors so I can create an alert when any of them is below a specific %.
Any ideas?
Thanks a lot!
Autoresponding myself with this thread:
Hello Sebastian,
I’m getting all sorts of errors setting up the template for 2 fgms001 sensors.
When restarting HA my whole group layout is messed up.
I am getting a value from the template.
Do you know what is wrong with:
batterij_sensor_hal:
friendly_name: 'Batterij Sensor Hal'
value_template: '{{ states.zwave.hal_3.attributes.battery_level }}'
unit_of_measurement: '%'
entity_id: zwave.hal_3
batterij_sensor_achterkantgoot:
friendly_name: 'Batterij Sensor Achterkan…
1 Like
Tinkerer
(aka DubhAd on GitHub)
May 26, 2018, 6:52pm
3
For what it’s worth, I create a template sensor to extract the battery level and then automations to use that .
sensor:
- platform: template
sensors:
zwave_battery_nodon_crc3100_octan_remote:
value_template: '{{ states.zwave.nodon_crc3100_octan_remote.attributes.battery_level|default(0) }}'
unit_of_measurement: "%"
icon_template: >
{% set battery_level = states.zwave.nodon_crc3100_octan_remote.attributes.battery_level | default(0) | int %}
{% set battery_round = (battery_level / 10) |int * 10 %}
{% if battery_round >= 100 %}
mdi:battery
{% elif battery_round > 0 %}
mdi:battery-{{ battery_round }}
{% else %}
mdi:battery-alert
{% endif %}
And
automation:
- initial_state: 'on'
alias: 'Battery remote'
trigger:
- platform: numeric_state
entity_id: sensor.zwave_battery_nodon_crc3100_octan_remote
below: 25
- platform: numeric_state
entity_id: sensor.zwave_battery_nodon_crc3100_octan_remote
below: 10
- platform: numeric_state
entity_id: sensor.zwave_battery_nodon_crc3100_octan_remote
below: 5
action:
service: notify.person2
data:
message: "The remote is at {{ states('sensor.zwave_battery_nodon_crc3100_octan_remote') }}% battery, it uses a CR2032 coin cell"
2 Likes