'Return the state attributes of the device.'

@property
def device_state_attributes(self):

    attr = {}
    if self.vera_device.has_battery:
        attr[ATTR_BATTERY_LEVEL] = self.vera_device.battery_level
    if self.vera_device.is_armable:
        armed = self.vera_device.is_armed
        attr[ATTR_ARMED] = ('True' if armed else 'False')
    if self.vera_device.is_trippable:
        last_tripped = self.vera_device.last_trip
        if (last_tripped is not None):
            utc_time = utc_from_timestamp(int(last_tripped))
            attr[ATTR_LAST_TRIP_TIME] = utc_time.isoformat()
        else:
            attr[ATTR_LAST_TRIP_TIME] = None
        tripped = self.vera_device.is_tripped
        attr[ATTR_TRIPPED] = ('True' if tripped else 'False')
    power = self.vera_device.power
    if power:
        attr[ATTR_CURRENT_POWER_W] = convert(power, float, 0.0)
    energy = self.vera_device.energy
    if energy:
        attr[ATTR_CURRENT_ENERGY_KWH] = convert(energy, float, 0.0)
    attr['Vera    Device    Id'] = self.vera_device.vera_device_id
    return attr
