c0ffeeca7 40c0c10b29
F and G integrations: apply sentence-style in categories (#29902)
* F and G integrations: apply sentence-style in categories

* Apply suggestions from code review

Co-authored-by: Joakim Sørensen <joasoe@gmail.com>

---------

Co-authored-by: Joakim Sørensen <joasoe@gmail.com>
2023-11-19 14:29:05 +01:00

3.0 KiB

title, description, ha_category, ha_iot_class, ha_release, ha_config_flow, ha_codeowners, ha_domain, ha_dhcp, ha_platforms, ha_integration_type
title description ha_category ha_iot_class ha_release ha_config_flow ha_codeowners ha_domain ha_dhcp ha_platforms ha_integration_type
Flume Documentation about the flume sensor.
Binary sensor
Sensor
Cloud Polling 0.103 true
@ChrisMandich
@bdraco
@jeeftor
flume true
binary_sensor
sensor
integration

The Flume integration will show you the current Flume status for the given Device ID.

Flume monitors the real-time status of your home water meter. Allowing the end-user to detect small leaks, gain real-time information on household water consumption, set water goals and budgets, and receive push notifications when suspicious water activities occur.

{% include integrations/config_flow.md %}

You can find your Client ID and Client Secret under "API Access" on the settings page.

To add Flume to your installation, go to Settings -> Devices & Services in the UI, click the button with + sign and from the list of integrations select Flume.

Notifications

Flume notifications are fetched every 5 minutes and are available via the service flume.list_notifications. Some notifications are available via the following binary sensors:

  • Bridge disconnected
  • High flow
  • Leak detected
  • Low battery

To clear the notifications, you will need to use your Flume app or go to: https://portal.flumewater.com/notifications and clear the notification in question.

Example of an automation that sends a Home Assistant notification of the most recent usage alert:

{% raw %}

alias: "Notify: flume"
trigger:
  - platform: time_pattern
    minutes: /5
action:
  - service: flume.list_notifications
    data:
      config_entry: 1234 # replace this with your config entry id
    response_variable: notifications
  - if:
      - condition: template
        value_template: >-
          {{ notifications.notifications | selectattr('type', 'equalto', 1) | 
          sort(attribute == ('created_datetime', reverse == true) | length > 0 }}
    then:
      - service: notify.all
        data:
          message: >-
            {%- set usage_alert == notifications.notifications |
            selectattr('type', 'equalto', 1) |
            sort(attribute == 'created_datetime', reverse == true) | first %}
            {{ usage_alert.message }}
          title: >-
            {%- set usage_alert == notifications.notifications |
            selectattr('type', 'equalto', 1) |
            sort(attribute == 'created_datetime', reverse=true) | first %}
            {{ usage_alert.title }}

{% endraw %}

Configuration for binary sensor

The following YAML creates a binary sensor. This requires the default sensor to be configured successfully.

{% raw %}

# Example configuration.yaml entry
template:
  - binary_sensor:
    - name: "Flume Flow Status"
      state: >-
        {{ states('sensor.flume_sensor') != "0" }}

{% endraw %}