[APP][Pro] Home Assistant - Community App

New test version 0.1.9:

It adds the possibility to use entity attributes in compound devices.

Example:

my_device_tracker:
  name: Device Name
  capabilities:
    measure_generic: device_tracker.entity_id
    measure_generic.ip: device_tracker.entity_id.ip
    measure_generic.mac: device_tracker.entity_id.mac
    measure_generic.wired: device_tracker.entity_id.is_wired
  capabilitiesTitles:
    measure_generic: State
    measure_generic.ip: IP
    measure_generic.mac: MAC

You can see the possible attributes in entity details:


Some attributes can be hidden based in the state.

First entry is the entity itself. In this case, the entity state is used for the device capability.
For the other entries, the attribute id is added as suffix.
The device capability is filled with the attribute content. Please use a compatible capability (measure_generic for text, other measure* for numbers, alarm* for boolean). But you can use measure_generic for all. The content will be converted to text.
You can set titles for these attributes using the capabilitiesTitles statement.

It adds the support for own units, too.
This can be useful if you are using an attribute which has no own unit like entities.
Attention: You need to update the custom_component and restart HS before you can add the units in the YAML file. Source: See link below.

Example:

temperature:
  name: Outside temperature
  icon: measure_temperature
  capabilities:
    measure_temperature.temp1: your entity
    measure_temperature.temp2: your entity
  capabilitiesTitles:
    measure_temperature.temp1: "Temperature 1 title"
    measure_temperature.temp2: "Temperature 2 title"
  capabilitiesUnits:
    measure_temperature.temp1: "°C"
    measure_temperature.temp2: "°C"

For details please check the readme here: https://github.com/RonnyWinkler/homeassistant.homey

1 Like